Commit 42b8bb14 by Richard Kenner

(strdup): Delete.

(float_label):  xstrdup instead of strdup.

From-SVN: r11413
parent f6127c6a
...@@ -125,25 +125,6 @@ function_arg (cum, mode, type, named) ...@@ -125,25 +125,6 @@ function_arg (cum, mode, type, named)
} }
#ifndef STRDUP
char *
strdup (str)
char *str;
{
char *p;
if (str == NULL)
return NULL;
if ((p = (char *) malloc (strlen (str) + 1)) == NULL)
{
fprintf (stderr, "dynamic memory exhausted");
abort ();
}
return strcpy (p, str);
}
#endif
double double
get_double (x) get_double (x)
rtx x; rtx x;
...@@ -178,7 +159,7 @@ float_label (code, value) ...@@ -178,7 +159,7 @@ float_label (code, value)
(*p == '-') ? 'm' : *p; (*p == '-') ? 'm' : *p;
p++; p++;
} }
return strdup (label); return xstrdup (label);
} }
......
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