+2004-10-06 Akim Demaille <akim@epita.fr>
+
+ * src/parse-gram.y (add_param): Fix the truncation of trailing
+ spaces.
+
2004-10-05 Akim Demaille <akim@epita.fr>
In Bison 1.875's yacc.c, YYLLOC_DEFAULT was called regardless
char const *name_start = NULL;
char *p;
- for (p = decl; *p; p++)
+ for (p = decl; p[1]; p++)
if ((p == decl
|| ! memchr (alphanum, p[-1], sizeof alphanum))
&& memchr (alphanum, p[0], sizeof alphanum - 10))
name_start = p;
-
+ fprintf (stderr, "DECLI: {%s}(%c)\n", decl, *p);
/* Strip the surrounding '{' and '}', and any blanks just inside
the braces. */
while (*--p == ' ' || *p == '\t')
continue;
- *p = '\0';
+ p[1] = '\0';
+ fprintf (stderr, "DECLO: {%s}\n", decl);
while (*++decl == ' ' || *decl == '\t')
continue;
char const *name_start = NULL;
char *p;
- for (p = decl; *p; p++)
+ /* Stop on last actual character. */
+ for (p = decl; p[1]; p++)
if ((p == decl
|| ! memchr (alphanum, p[-1], sizeof alphanum))
&& memchr (alphanum, p[0], sizeof alphanum - 10))
the braces. */
while (*--p == ' ' || *p == '\t')
continue;
- *p = '\0';
+ p[1] = '\0';
while (*++decl == ' ' || *decl == '\t')
continue;