style changes.

* src/parse-gram.y (add_param): Scope changes.
This commit is contained in:
Akim Demaille
2009-09-09 15:36:02 +02:00
parent eaca4c1103
commit f71db70bce
2 changed files with 22 additions and 15 deletions

View File

@@ -1,3 +1,8 @@
2009-09-09 Akim Demaille <demaille@gostai.com>
style changes.
* src/parse-gram.y (add_param): Scope changes.
2009-09-09 Akim Demaille <demaille@gostai.com> 2009-09-09 Akim Demaille <demaille@gostai.com>
%parse: support several arguments. %parse: support several arguments.

View File

@@ -727,9 +727,10 @@ add_param (param_type type, char *decl, location loc)
"ABCDEFGHIJKLMNOPQRSTUVWXYZ" "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"_" "_"
"0123456789"; "0123456789";
char const *name_start = NULL;
char *p;
char const *name_start = NULL;
{
char *p;
/* Stop on last actual character. */ /* Stop on last actual character. */
for (p = decl; p[1]; p++) for (p = decl; p[1]; p++)
if ((p == decl if ((p == decl
@@ -744,6 +745,7 @@ add_param (param_type type, char *decl, location loc)
p[1] = '\0'; p[1] = '\0';
while (*++decl == ' ' || *decl == '\t') while (*++decl == ' ' || *decl == '\t')
continue; continue;
}
if (! name_start) if (! name_start)
complain_at (loc, _("missing identifier in parameter declaration")); complain_at (loc, _("missing identifier in parameter declaration"));