ref: c1c6db84269708d87a5b8d0e78225768c36b36ed
parent: 56114f333a1bf506d457033591b0101f3dc958b4
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed May 20 08:43:51 EDT 2015
Remove non needed variable in parseargs() This variable had the same meaning and use than the parameter, so it is better to use the parameter.
--- a/cc1/cpp.c
+++ b/cc1/cpp.c
@@ -21,7 +21,7 @@
{
unsigned n ;
size_t len;
- char **bp, *endp, c;
+ char *endp, c;
if (*s != '(') {
*nargs = -1;
@@ -33,7 +33,7 @@
}
- for (bp = args, n = 1; n <= NR_MACROARG; ++bp, ++n) {
+ for (n = 1; n <= NR_MACROARG; ++n) {
while (isspace(*s))
++s;
if (!isalnum(*s) && *s != '_')
@@ -42,7 +42,7 @@
/* nothing */;
if ((len = endp - s) > IDENTSIZ)
error("macro argument too long");
- *bp = s;
+ *args++ = s;
for (s = endp; isspace(*s); ++s)
*s = '\0';
c = *s;