summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_cmd.h
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2020-02-01 07:07:28 +0100
committerkocsismate <kocsismate@woohoolabs.com>2020-02-01 14:21:53 +0100
commit4cbffd89d9e82d81a26746aadca27ad061cab43a (patch)
tree5758a2142048208443671c486f0855cd2c72855c /sapi/phpdbg/phpdbg_cmd.h
parent2127a37b833a863e28a4692e7394613b89c89290 (diff)
downloadphp-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/phpdbg_cmd.h')
-rw-r--r--sapi/phpdbg/phpdbg_cmd.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/sapi/phpdbg/phpdbg_cmd.h b/sapi/phpdbg/phpdbg_cmd.h
index 56c8681c59..dd80e61db3 100644
--- a/sapi/phpdbg/phpdbg_cmd.h
+++ b/sapi/phpdbg/phpdbg_cmd.h
@@ -81,10 +81,6 @@ struct _phpdbg_param {
(v)->top = NULL; \
} while(0)
-#ifndef YYSTYPE
-#define YYSTYPE phpdbg_param_t
-#endif
-
#define PHPDBG_ASYNC_SAFE 1
typedef int (*phpdbg_command_handler_t)(const phpdbg_param_t*);