Commit 3d8e9bc2 by Richard Kenner

(bc_strdup): Delete.

(bc_load_externaddr_id): Use xstrdup instead of bc_xstrdup.

From-SVN: r11411
parent e3b79a32
...@@ -10862,16 +10862,6 @@ bc_load_externaddr (externaddr) ...@@ -10862,16 +10862,6 @@ bc_load_externaddr (externaddr)
} }
static char *
bc_strdup (s)
char *s;
{
char *new = (char *) xmalloc ((strlen (s) + 1) * sizeof *s);
strcpy (new, s);
return new;
}
/* Like above, but expects an IDENTIFIER. */ /* Like above, but expects an IDENTIFIER. */
void void
bc_load_externaddr_id (id, offset) bc_load_externaddr_id (id, offset)
...@@ -10882,7 +10872,7 @@ bc_load_externaddr_id (id, offset) ...@@ -10882,7 +10872,7 @@ bc_load_externaddr_id (id, offset)
abort (); abort ();
bc_emit_bytecode (constP); bc_emit_bytecode (constP);
bc_emit_code_labelref (bc_xstrdup (IDENTIFIER_POINTER (id)), offset); bc_emit_code_labelref (xstrdup (IDENTIFIER_POINTER (id)), offset);
#ifdef DEBUG_PRINT_CODE #ifdef DEBUG_PRINT_CODE
fputc ('\n', stderr); fputc ('\n', stderr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment