diff options
| author | Akim Demaille <akim.demaille@gmail.com> | 2020-02-01 07:07:28 +0100 |
|---|---|---|
| committer | kocsismate <kocsismate@woohoolabs.com> | 2020-02-01 14:21:53 +0100 |
| commit | 4cbffd89d9e82d81a26746aadca27ad061cab43a (patch) | |
| tree | 5758a2142048208443671c486f0855cd2c72855c /sapi/phpdbg/Makefile.frag | |
| parent | 2127a37b833a863e28a4692e7394613b89c89290 (diff) | |
| download | php-git-4cbffd89d9e82d81a26746aadca27ad061cab43a.tar.gz | |
Clean up the generation of the parsers
Prefer '%define api.value.type' to '#define YYSTYPE', so that Bison
know the type.
Use '%code requires' to declare what is needed to define the api.value.type
(that code is output in the generated header before the generated
definition of YYSTYPE).
Prefer '%define api.prefix' inside the grammar file to '-p' outside,
as anyway the functions defined in the file actually use this prefix.
Prefer `%param` to both `%parse-param` and `%lex-param`.
Closes GH-5138
Diffstat (limited to 'sapi/phpdbg/Makefile.frag')
| -rw-r--r-- | sapi/phpdbg/Makefile.frag | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/phpdbg/Makefile.frag b/sapi/phpdbg/Makefile.frag index 448cc3676b..1572bfd9f0 100644 --- a/sapi/phpdbg/Makefile.frag +++ b/sapi/phpdbg/Makefile.frag @@ -18,7 +18,7 @@ $(srcdir)/phpdbg_lexer.c: $(srcdir)/phpdbg_lexer.l $(srcdir)/phpdbg_parser.h: $(srcdir)/phpdbg_parser.c $(srcdir)/phpdbg_parser.c: $(srcdir)/phpdbg_parser.y - @$(YACC) $(YFLAGS) -p phpdbg_ -v -d $(srcdir)/phpdbg_parser.y -o $@ + @$(YACC) $(YFLAGS) -v -d $(srcdir)/phpdbg_parser.y -o $@ install-phpdbg: $(BUILD_BINARY) @echo "Installing phpdbg binary: $(INSTALL_ROOT)$(bindir)/" |
