parse.c (match): Enclosed macro in do...while(0) and braces.
2005-08-14 Asher Langton <langton2@llnl.gov> * parse.c (match): Enclosed macro in do...while(0) and braces. Also fix formatting of a few previous ChangeLog entries From-SVN: r103086
This commit is contained in:
parent
21d7d31f71
commit
2b22401b5a
|
@ -1,3 +1,7 @@
|
|||
2005-08-14 Asher Langton <langton2@llnl.gov>
|
||||
|
||||
* parse.c (match): Enclosed macro in do...while(0) and braces.
|
||||
|
||||
2005-08-14 Paul Thomas <pault@gcc.gnu.org>
|
||||
|
||||
PR fortran/21432.
|
||||
|
|
|
@ -75,13 +75,16 @@ match_word (const char *str, match (*subr) (void), locus * old_locus)
|
|||
|
||||
|
||||
/* Figure out what the next statement is, (mostly) regardless of
|
||||
proper ordering. */
|
||||
proper ordering. The do...while(0) is there to prevent if/else
|
||||
ambiguity. */
|
||||
|
||||
#define match(keyword, subr, st) \
|
||||
do { \
|
||||
if (match_word(keyword, subr, &old_locus) == MATCH_YES) \
|
||||
return st; \
|
||||
else \
|
||||
undo_new_statement ();
|
||||
undo_new_statement (); \
|
||||
} while (0);
|
||||
|
||||
static gfc_statement
|
||||
decode_statement (void)
|
||||
|
|
Loading…
Reference in New Issue