mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 01:03:04 +00:00
Also mention that %union can depend on prerequisite types.
This commit is contained in:
@@ -3745,10 +3745,12 @@ If the parser output file is named @file{@var{name}.c} then this file
|
|||||||
is named @file{@var{name}.h}.
|
is named @file{@var{name}.h}.
|
||||||
|
|
||||||
Unless @code{YYSTYPE} is already defined as a macro, the output header
|
Unless @code{YYSTYPE} is already defined as a macro, the output header
|
||||||
declares @code{YYSTYPE}. Therefore, if you have defined a
|
declares @code{YYSTYPE}. Therefore, if you are using a @code{%union}
|
||||||
|
(@pxref{Multiple Types, ,More Than One Value Type}) with components
|
||||||
|
that require other definitions, or if you have defined a
|
||||||
@code{YYSTYPE} macro (@pxref{Value Type, ,Data Types of Semantic
|
@code{YYSTYPE} macro (@pxref{Value Type, ,Data Types of Semantic
|
||||||
Values}) you need to arrange for this definition to be propagated to
|
Values}), you need to arrange for these definitions to be propagated to
|
||||||
all modules, e.g., by putting the macro definition in another,
|
all modules, e.g., by putting them in a
|
||||||
prerequisite header that is included both by your parser and by any
|
prerequisite header that is included both by your parser and by any
|
||||||
other module that needs @code{YYSTYPE}.
|
other module that needs @code{YYSTYPE}.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user