* src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty

if body instead of `;' to pacify GCC's warnings.
This commit is contained in:
Akim Demaille
2001-11-30 13:14:10 +00:00
parent 0ffdf37212
commit fc7ddd2818
3 changed files with 219 additions and 145 deletions

View File

@@ -693,7 +693,7 @@ arrange for it to call @code{yyparse} or the parser will never run.
@xref{Interface, ,Parser C-Language Interface}.
Aside from the token type names and the symbols in the actions you
write, all variable and function names used in the Bison parser file
write, all symbols defined in the Bison parser file itself
begin with @samp{yy} or @samp{YY}. This includes interface functions
such as the lexical analyzer function @code{yylex}, the error reporting
function @code{yyerror} and the parser function @code{yyparse} itself.
@@ -702,6 +702,14 @@ Therefore, you should avoid using C identifiers starting with @samp{yy}
or @samp{YY} in the Bison grammar file except for the ones defined in
this manual.
In some cases the Bison parser file includes system headers, and in
those cases your code should respect the identifiers reserved by those
headers. On some non-@sc{gnu} hosts, @code{<alloca.h>},
@code{<stddef.h>}, and @code{<stdlib.h>} are included as needed to
declare memory allocators and related types. On all hosts,
@code{<stdio.h>} is included if you define @code{YYDEBUG}
(@pxref{Debugging, ,Debugging Your Parser}).
@node Stages
@section Stages in Using Bison
@cindex stages in using Bison

View File

@@ -1,4 +1,4 @@
@set UPDATED 27 November 2001
@set UPDATED 30 November 2001
@set UPDATED-MONTH November 2001
@set EDITION 1.30f
@set VERSION 1.30f