aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-exp.y
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1991-11-19 15:59:55 +0000
committerFred Fish <fnf@specifix.com>1991-11-19 15:59:55 +0000
commitd018c8a6e1c03b8f220445f9de5af8ba4b3a4199 (patch)
treea79e51cdd5d25fc277ade0a367ecc2a2a892d280 /gdb/c-exp.y
parent61af01bc7065b6aa740b0a9cccdcf43ed9c28803 (diff)
downloadgdb-d018c8a6e1c03b8f220445f9de5af8ba4b3a4199.zip
gdb-d018c8a6e1c03b8f220445f9de5af8ba4b3a4199.tar.gz
gdb-d018c8a6e1c03b8f220445f9de5af8ba4b3a4199.tar.bz2
Add defines so that parsers produced by SVR4 versions of yacc can coexist
in the same executable without collision (c-exp.y, m2-exp.y). Add forward delaration of function returning pointer to shut up compiler warnings about conversion of int to pointer (symtab.h).
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r--gdb/c-exp.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index bea0463..d3703cb 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -41,6 +41,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* These MUST be included in any grammar file!!!!
Please choose unique names! */
+#define yymaxdepth c_maxdepth
#define yyparse c_parse
#define yylex c_lex
#define yyerror c_error
@@ -60,9 +61,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define yyps c_ps
#define yypv c_pv
#define yys c_s
+#define yy_yys c_yys
#define yystate c_state
#define yytmp c_tmp
#define yyv c_v
+#define yy_yyv c_yyv
#define yyval c_val
#define yylloc c_lloc