Commit a74d78dd by Kaveh R. Ghazi Committed by Kaveh Ghazi

fini.c: Rename variable `spaces' to `xspaces' to avoid conflicting with function...

        * fini.c: Rename variable `spaces' to `xspaces' to avoid
        conflicting with function `spaces' from libiberty.
        * g77spec.c: Don't prototype libiberty functions.
        * malloc.c: Likewise.

From-SVN: r23933
parent 9d483bc4
Fri Nov 27 13:10:32 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* fini.c: Rename variable `spaces' to `xspaces' to avoid
conflicting with function `spaces' from libiberty.
* g77spec.c: Don't prototype libiberty functions.
* malloc.c: Likewise.
1998-11-20 Dave Love <d.love@dl.ac.uk> 1998-11-20 Dave Love <d.love@dl.ac.uk>
* g77.texi: Assorted minor changes. * g77.texi: Assorted minor changes.
......
...@@ -62,7 +62,7 @@ static FILE *out; ...@@ -62,7 +62,7 @@ static FILE *out;
static char prefix[32]; static char prefix[32];
static char postfix[32]; static char postfix[32];
static char storage[32]; static char storage[32];
static char *spaces[] static char *xspaces[]
= =
{ {
"", /* 0 */ "", /* 0 */
...@@ -636,7 +636,7 @@ testname (bool nested, int indent, name first, name last) ...@@ -636,7 +636,7 @@ testname (bool nested, int indent, name first, name last)
int numhalf; int numhalf;
assert (!nested || indent >= 2); assert (!nested || indent >= 2);
assert (((size_t) indent) + 4 < ARRAY_SIZE (spaces)); assert (((size_t) indent) + 4 < ARRAY_SIZE (xspaces));
num = 0; num = 0;
numhalf = 0; numhalf = 0;
...@@ -654,15 +654,15 @@ testname (bool nested, int indent, name first, name last) ...@@ -654,15 +654,15 @@ testname (bool nested, int indent, name first, name last)
"\ "\
%s{\n\ %s{\n\
", ",
spaces[indent - 2]); xspaces[indent - 2]);
fprintf (out, fprintf (out,
"\ "\
%sif ((c = ffesrc_strcmp_2c (ffe_case_match (), p, \"%s\", \"%s\", \"%s\")) == 0)\n\ %sif ((c = ffesrc_strcmp_2c (ffe_case_match (), p, \"%s\", \"%s\", \"%s\")) == 0)\n\
%sreturn %s%s%s;\n\ %sreturn %s%s%s;\n\
", ",
spaces[indent], nhalf->name_uc, nhalf->name_lc, nhalf->name_ic, xspaces[indent], nhalf->name_uc, nhalf->name_lc, nhalf->name_ic,
spaces[indent + 2], prefix, nhalf->kwname, postfix); xspaces[indent + 2], prefix, nhalf->kwname, postfix);
if (num != 1) if (num != 1)
{ {
...@@ -670,14 +670,14 @@ testname (bool nested, int indent, name first, name last) ...@@ -670,14 +670,14 @@ testname (bool nested, int indent, name first, name last)
"\ "\
%selse if (c < 0)\n\ %selse if (c < 0)\n\
", ",
spaces[indent]); xspaces[indent]);
if (numhalf == 0) if (numhalf == 0)
fprintf (out, fprintf (out,
"\ "\
%s;\n\ %s;\n\
", ",
spaces[indent + 2]); xspaces[indent + 2]);
else else
testname (TRUE, indent + 4, first, nhalf->previous); testname (TRUE, indent + 4, first, nhalf->previous);
...@@ -687,7 +687,7 @@ testname (bool nested, int indent, name first, name last) ...@@ -687,7 +687,7 @@ testname (bool nested, int indent, name first, name last)
"\ "\
%selse\n\ %selse\n\
", ",
spaces[indent]); xspaces[indent]);
testname (TRUE, indent + 4, nhalf->next, last); testname (TRUE, indent + 4, nhalf->next, last);
} }
...@@ -698,7 +698,7 @@ testname (bool nested, int indent, name first, name last) ...@@ -698,7 +698,7 @@ testname (bool nested, int indent, name first, name last)
"\ "\
%s}\n\ %s}\n\
", ",
spaces[indent - 2]); xspaces[indent - 2]);
} }
void void
...@@ -710,7 +710,7 @@ testnames (bool nested, int indent, int len, name first, name last) ...@@ -710,7 +710,7 @@ testnames (bool nested, int indent, int len, name first, name last)
int numhalf; int numhalf;
assert (!nested || indent >= 2); assert (!nested || indent >= 2);
assert (((size_t) indent) + 4 < ARRAY_SIZE (spaces)); assert (((size_t) indent) + 4 < ARRAY_SIZE (xspaces));
num = 0; num = 0;
numhalf = 0; numhalf = 0;
...@@ -728,15 +728,15 @@ testnames (bool nested, int indent, int len, name first, name last) ...@@ -728,15 +728,15 @@ testnames (bool nested, int indent, int len, name first, name last)
"\ "\
%s{\n\ %s{\n\
", ",
spaces[indent - 2]); xspaces[indent - 2]);
fprintf (out, fprintf (out,
"\ "\
%sif ((c = ffesrc_strncmp_2c (ffe_case_match (), p, \"%s\", \"%s\", \"%s\", %d)) == 0)\n\ %sif ((c = ffesrc_strncmp_2c (ffe_case_match (), p, \"%s\", \"%s\", \"%s\", %d)) == 0)\n\
%sreturn %s%s%s;\n\ %sreturn %s%s%s;\n\
", ",
spaces[indent], nhalf->name_uc, nhalf->name_lc, nhalf->name_ic, xspaces[indent], nhalf->name_uc, nhalf->name_lc, nhalf->name_ic,
len, spaces[indent + 2], prefix, nhalf->kwname, postfix); len, xspaces[indent + 2], prefix, nhalf->kwname, postfix);
if (num != 1) if (num != 1)
{ {
...@@ -744,14 +744,14 @@ testnames (bool nested, int indent, int len, name first, name last) ...@@ -744,14 +744,14 @@ testnames (bool nested, int indent, int len, name first, name last)
"\ "\
%selse if (c < 0)\n\ %selse if (c < 0)\n\
", ",
spaces[indent]); xspaces[indent]);
if (numhalf == 0) if (numhalf == 0)
fprintf (out, fprintf (out,
"\ "\
%s;\n\ %s;\n\
", ",
spaces[indent + 2]); xspaces[indent + 2]);
else else
testnames (TRUE, indent + 4, len, first, nhalf->previous); testnames (TRUE, indent + 4, len, first, nhalf->previous);
...@@ -761,7 +761,7 @@ testnames (bool nested, int indent, int len, name first, name last) ...@@ -761,7 +761,7 @@ testnames (bool nested, int indent, int len, name first, name last)
"\ "\
%selse\n\ %selse\n\
", ",
spaces[indent]); xspaces[indent]);
testnames (TRUE, indent + 4, len, nhalf->next, last); testnames (TRUE, indent + 4, len, nhalf->next, last);
} }
...@@ -772,5 +772,5 @@ testnames (bool nested, int indent, int len, name first, name last) ...@@ -772,5 +772,5 @@ testnames (bool nested, int indent, int len, name first, name last)
"\ "\
%s}\n\ %s}\n\
", ",
spaces[indent - 2]); xspaces[indent - 2]);
} }
...@@ -92,8 +92,6 @@ static void (*g77_fn)(); ...@@ -92,8 +92,6 @@ static void (*g77_fn)();
static int g77_newargc; static int g77_newargc;
static char **g77_newargv; static char **g77_newargv;
extern char *xmalloc PROTO((size_t));
extern char *version_string; extern char *version_string;
/* --- This comes from gcc.c (2.8.1) verbatim: */ /* --- This comes from gcc.c (2.8.1) verbatim: */
......
...@@ -33,10 +33,6 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -33,10 +33,6 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "proj.h" #include "proj.h"
#include "malloc.h" #include "malloc.h"
/* Assume gcc/toplev.o is linked in. */
void *xmalloc (unsigned size);
void *xrealloc (void *ptr, int size);
/* Externals defined here. */ /* Externals defined here. */
struct _malloc_root_ malloc_root_ struct _malloc_root_ malloc_root_
......
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