diff options
author | YamaArashi <shadow962@live.com> | 2016-02-12 22:30:42 -0800 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-02-12 22:30:42 -0800 |
commit | 09f3893dbdbd3010cca49e0440bef81ea5ff8d4c (patch) | |
tree | a2e9e1e8b0a3e668b137db0915d85a528d0227e2 /gcc/c-aux-info.c | |
parent | ef3a1796662108f019de5d018269abb28250934f (diff) |
remove standalone preprocessor
Diffstat (limited to 'gcc/c-aux-info.c')
-rwxr-xr-x | gcc/c-aux-info.c | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/gcc/c-aux-info.c b/gcc/c-aux-info.c index d86d445..aa00448 100755 --- a/gcc/c-aux-info.c +++ b/gcc/c-aux-info.c @@ -43,67 +43,6 @@ static int deserves_ellipsis PROTO((tree)); static char *gen_formal_list_for_func_def PROTO((tree, formals_style)); static char *gen_type PROTO((char *, tree, formals_style)); static char *gen_decl PROTO((tree, int, formals_style)); - -/* Concatenate a sequence of strings, returning the result. - - This function is based on the one in libiberty. */ - -/* This definition will conflict with the one from prefix.c in - libcpp.a when linking cc1 and cc1obj. So only provide it if we are - not using libcpp.a */ -#ifndef USE_CPPLIB -char * -concat VPROTO((const char *first, ...)) -{ - register int length; - register char *newstr; - register char *end; - register const char *arg; - va_list args; -#ifndef ANSI_PROTOTYPES - const char *first; -#endif - - /* First compute the size of the result and get sufficient memory. */ - - VA_START (args, first); -#ifndef ANSI_PROTOTYPES - first = va_arg (args, const char *); -#endif - - arg = first; - length = 0; - - while (arg != 0) - { - length += strlen (arg); - arg = va_arg (args, const char *); - } - - newstr = (char *) malloc (length + 1); - va_end (args); - - /* Now copy the individual pieces to the result string. */ - - VA_START (args, first); -#ifndef ANSI_PROTOTYPES - first = va_arg (args, char *); -#endif - - end = newstr; - arg = first; - while (arg != 0) - { - while (*arg) - *end++ = *arg++; - arg = va_arg (args, const char *); - } - *end = '\000'; - va_end (args); - - return (newstr); -} -#endif /* ! USE_CPPLIB */ /* Given a string representing an entire type or an entire declaration which only lacks the actual "data-type" specifier (at its left end), |