aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-parse.y
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gcc.gnu.org>2000-01-29 18:59:40 +0000
committerUlrich Drepper <drepper@gcc.gnu.org>2000-01-29 18:59:40 +0000
commit3194854770602ec204dbfb8b3d469b56d5ef4d9c (patch)
treee93db4a12bbae12f8654d3ebe3b73a3c32c6088a /gcc/c-parse.y
parent10b52f46188f1e93b43a435c6d2f589a974555fe (diff)
downloadgcc-3194854770602ec204dbfb8b3d469b56d5ef4d9c.zip
gcc-3194854770602ec204dbfb8b3d469b56d5ef4d9c.tar.gz
gcc-3194854770602ec204dbfb8b3d469b56d5ef4d9c.tar.bz2
Adjust variable names, comments, help strings to c99.
From-SVN: r31689
Diffstat (limited to 'gcc/c-parse.y')
-rw-r--r--gcc/c-parse.y12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/c-parse.y b/gcc/c-parse.y
index 11a8751..33dd371 100644
--- a/gcc/c-parse.y
+++ b/gcc/c-parse.y
@@ -474,7 +474,7 @@ cast_expr:
tree type = $2;
finish_init ();
- if (pedantic && ! flag_isoc9x)
+ if (pedantic && ! flag_isoc99)
pedwarn ("ANSI C forbids constructor expressions");
if (TYPE_NAME (type) != 0)
{
@@ -1229,8 +1229,8 @@ parm_declarator:
poplevel (0, 0, 0); } */
| parm_declarator '[' '*' ']' %prec '.'
{ $$ = build_nt (ARRAY_REF, $1, NULL_TREE);
- if (! flag_isoc9x)
- error ("`[*]' in parameter declaration only allowed in ISO C 9x");
+ if (! flag_isoc99)
+ error ("`[*]' in parameter declaration only allowed in ISO C 99");
}
| parm_declarator '[' expr ']' %prec '.'
{ $$ = build_nt (ARRAY_REF, $1, $3); }
@@ -1263,8 +1263,8 @@ notype_declarator:
{ $$ = make_pointer_declarator ($2, $3); }
| notype_declarator '[' '*' ']' %prec '.'
{ $$ = build_nt (ARRAY_REF, $1, NULL_TREE);
- if (! flag_isoc9x)
- error ("`[*]' in parameter declaration only allowed in ISO C 9x");
+ if (! flag_isoc99)
+ error ("`[*]' in parameter declaration only allowed in ISO C 99");
}
| notype_declarator '[' expr ']' %prec '.'
{ $$ = build_nt (ARRAY_REF, $1, $3); }
@@ -1346,7 +1346,7 @@ maybecomma:
maybecomma_warn:
/* empty */
| ','
- { if (pedantic && ! flag_isoc9x)
+ { if (pedantic && ! flag_isoc99)
pedwarn ("comma at end of enumerator list"); }
;