bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
From: Bruno Haible <bruno@clisp.org>
To: "Jose E. Marchesi" <jemarch@gnu.org>
Cc: poke-devel@gnu.org, bug-gnulib@gnu.org, Hannes Domani <ssbssa@yahoo.de>
Subject: Re: Multiple definition errors when linking libpoke into gdb
Date: Wed, 14 Feb 2024 18:19:49 +0100	[thread overview]
Message-ID: <13388606.BaYr0rKQ5T@nimes> (raw)
In-Reply-To: <875xyrkmyn.fsf@gnu.org>

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





      reply	other threads:[~2024-02-14 17:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <480198541.3664126.1707924796027.ref@mail.yahoo.com>
2024-02-14 15:33 ` Multiple definition errors when linking libpoke into gdb Hannes Domani
2024-02-14 16:26   ` Bruno Haible
2024-02-14 16:52     ` Jose E. Marchesi
2024-02-14 17:19       ` Bruno Haible [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=13388606.BaYr0rKQ5T@nimes \
    --to=bruno@clisp.org \
    --cc=bug-gnulib@gnu.org \
    --cc=jemarch@gnu.org \
    --cc=poke-devel@gnu.org \
    --cc=ssbssa@yahoo.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).