diff options
author | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-28 19:27:42 +0000 |
---|---|---|
committer | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-28 19:27:42 +0000 |
commit | 0a75581a37b360542d05fc6560c8a9567b642955 (patch) | |
tree | c269f65ebba51395164a4e45bcc740665ed2152d /ext/syck/gram.c | |
parent | ea837fc6feab1b2f1b5400b79b87879aa160f42b (diff) |
* ext/syck/syck.h: Added 'syck' yacc prefixes.
* ext/syck/gram.c: ditto.
* ext/syck/token.c: ditto.
* ext/syck: Added ruby.h reference to source files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck/gram.c')
-rw-r--r-- | ext/syck/gram.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/ext/syck/gram.c b/ext/syck/gram.c index 69a21b6a8c..df915e5f0a 100644 --- a/ext/syck/gram.c +++ b/ext/syck/gram.c @@ -42,6 +42,15 @@ /* Using locations. */ #define YYLSP_NEEDED 0 +/* If NAME_PREFIX is specified substitute the variables and functions + names. */ +#define yyparse syckparse +#define yylex sycklex +#define yyerror syckerror +#define yylval sycklval +#define yychar syckchar +#define yydebug syckdebug +#define yynerrs sycknerrs /* Tokens. */ @@ -88,7 +97,6 @@ #define YYLEX_PARAM parser - /* Enabling traces. */ #ifndef YYDEBUG # define YYDEBUG 1 @@ -110,7 +118,7 @@ typedef union { char *name; } yystype; /* Line 193 of /usr/local/share/bison/yacc.c. */ -#line 114 "y.tab.c" +#line 123 "y.tab.c" # define YYSTYPE yystype # define YYSTYPE_IS_TRIVIAL 1 #endif @@ -128,10 +136,11 @@ typedef struct yyltype #endif /* Copy the second part of user declarations. */ +int sycklex( YYSTYPE *, SyckParser * ); /* Line 213 of /usr/local/share/bison/yacc.c. */ -#line 135 "y.tab.c" +#line 144 "y.tab.c" #if ! defined (yyoverflow) || YYERROR_VERBOSE @@ -1450,7 +1459,7 @@ yyreduce: } /* Line 1016 of /usr/local/share/bison/yacc.c. */ -#line 1454 "y.tab.c" +#line 1463 "y.tab.c" yyvsp -= yylen; yyssp -= yylen; |