Jose E. Marchesi wrote: > I think in this case it is better to not use the xalloc module in > libpoke at all.
This looks feasible: There are not many references to functions like xmalloc in libpoke. pkl-ast.c:116: PKL_AST_STRING_POINTER (new) = xstrdup (str); pkl-ast.c:131: PKL_AST_IDENTIFIER_POINTER (id) = xstrdup (str); pkl-ast.c:653: ? xstrdup (PKL_AST_STRUCT_TYPE_FIELD_CONSTRAINT_SRC (t)) pkl-ast.c:1847: PKL_AST_DECL_SOURCE (decl) = xstrdup (source); pkl-ast.c:2358: PKL_AST_SRC_FILENAME (src) = filename ? xstrdup (filename) : NULL; pkl-ast.c:2406: bool added = gl_set_add (visitations, ptr); \ pkl-ast.c:2426: added = gl_set_add (visitations, ast); pkl-ast.c:2852: gl_set_t visitations = gl_set_create_empty (GL_LINKEDHASH_SET, pkl-fold.c:153: char *res = xmalloc (strlen (op1) * op2 + 1); pvm-program.c:339: expanded = xmalloc (expanded_size + 1); pvm-program.c:367: char *invalid_token = xstrdup (err->error_token_text); pkl-trans.c:268: = xstrdup (PKL_AST_IDENTIFIER_POINTER (name)); pkl-trans.c:402: new_string_pointer = xmalloc (string_length + 1); pkl-trans.c:991: char *class = xmalloc (strlen (fmt) + 1); pkl-trans.c:1040: new_style_class = end_sc ? xstrdup (class) : class; pkl-trans.c:1058: PKL_AST_FORMAT_ARG_SUFFIX (new_arg) = xstrdup ("%"); pvm-val.c:1298: str_printable = xmalloc (printable_size + 1); Bruno