mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 08:13:02 +00:00
(Bison Parser, Debugging): Remove special mention of C++, as it's
treated like C now.
This commit is contained in:
@@ -707,8 +707,7 @@ In some cases the Bison parser file includes system headers, and in
|
|||||||
those cases your code should respect the identifiers reserved by those
|
those cases your code should respect the identifiers reserved by those
|
||||||
headers. On some non-@sc{gnu} hosts, @code{<alloca.h>},
|
headers. On some non-@sc{gnu} hosts, @code{<alloca.h>},
|
||||||
@code{<stddef.h>}, and @code{<stdlib.h>} are included as needed to
|
@code{<stddef.h>}, and @code{<stdlib.h>} are included as needed to
|
||||||
declare memory allocators and related types. In the same situation,
|
declare memory allocators and related types.
|
||||||
C++ parsers may include @code{<cstddef>} and @code{<cstdlib>} instead.
|
|
||||||
Other system headers may be included if you define @code{YYDEBUG} to a
|
Other system headers may be included if you define @code{YYDEBUG} to a
|
||||||
nonzero value (@pxref{Debugging, ,Debugging Your Parser}).
|
nonzero value (@pxref{Debugging, ,Debugging Your Parser}).
|
||||||
|
|
||||||
@@ -4954,9 +4953,7 @@ The trace facility outputs messages with macro calls of the form
|
|||||||
@var{format} and @var{args} are the usual @code{printf} format and
|
@var{format} and @var{args} are the usual @code{printf} format and
|
||||||
arguments. If you define @code{YYDEBUG} to a nonzero value but do not
|
arguments. If you define @code{YYDEBUG} to a nonzero value but do not
|
||||||
define @code{YYFPRINTF}, @code{<stdio.h>} is automatically included
|
define @code{YYFPRINTF}, @code{<stdio.h>} is automatically included
|
||||||
and @code{YYPRINTF} is defined to @code{fprintf}. In the same
|
and @code{YYPRINTF} is defined to @code{fprintf}.
|
||||||
situation, C++ parsers include @code{<cstdio>} and use
|
|
||||||
@code{std::fprintf} instead.
|
|
||||||
|
|
||||||
Once you have compiled the program with trace facilities, the way to
|
Once you have compiled the program with trace facilities, the way to
|
||||||
request a trace is to store a nonzero value in the variable @code{yydebug}.
|
request a trace is to store a nonzero value in the variable @code{yydebug}.
|
||||||
|
|||||||
Reference in New Issue
Block a user