doc: fix inaccuracies wrt --define and --force-define

The doc says that -Dfoo=bar is the same as %define foo "bar".  It is
not: the quotes are not added (and it makes a difference).

* doc/bison.texi (Tuning the Parser): Fix the definition of -D/-F
* src/getargs.c (usage): Likewise.
This commit is contained in:
Akim Demaille
2019-07-06 09:09:51 +02:00
parent 964c6508b1
commit d90023af5f
2 changed files with 11 additions and 6 deletions

View File

@@ -10694,9 +10694,14 @@ it is not already defined, so that the debugging facilities are compiled.
@itemx --define=@var{name}[=@var{value}]
@itemx -F @var{name}[=@var{value}]
@itemx --force-define=@var{name}[=@var{value}]
Each of these is equivalent to @samp{%define @var{name} "@var{value}"}
(@pxref{%define Summary}) except that Bison processes multiple definitions
for the same @var{name} as follows:
Each of these is equivalent to @samp{%define @var{name} @var{value}}
(@pxref{%define Summary}). Note that the delimiters are part of
@var{value}: @option{-Dapi.value.type=union},
@option{-Dapi.value.type=@{union@}} and @option{-Dapi.value.type="union"}
correspond to @samp{%define api.value.type union}, @samp{%define
api.value.type @{union@}} and @samp{%define api.value.type "union"}.
Bison processes multiple definitions for the same @var{name} as follows:
@itemize
@item