genksym: regen parser
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/* ANSI-C code produced by gperf version 3.0.4 */
|
/* ANSI-C code produced by gperf version 3.0.4 */
|
||||||
/* Command-line: gperf -L ANSI-C -a -C -E -g -H is_reserved_hash -k '1,3,$' -N is_reserved_word -p -t scripts/genksyms/keywords.gperf */
|
/* Command-line: gperf -t --output-file scripts/genksyms/keywords.hash.c_shipped -a -C -E -g -k '1,3,$' -p -t scripts/genksyms/keywords.gperf */
|
||||||
|
|
||||||
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
|
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
|
||||||
&& ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
|
&& ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
|
||||||
@@ -28,11 +28,11 @@
|
|||||||
#error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
|
#error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#line 1 "scripts/genksyms/keywords.gperf"
|
#line 4 "scripts/genksyms/keywords.gperf"
|
||||||
|
|
||||||
struct resword;
|
struct resword;
|
||||||
static const struct resword *is_reserved_word(register const char *str, register unsigned int len);
|
static const struct resword *is_reserved_word(register const char *str, register unsigned int len);
|
||||||
#line 5 "scripts/genksyms/keywords.gperf"
|
#line 8 "scripts/genksyms/keywords.gperf"
|
||||||
struct resword { const char *name; int token; };
|
struct resword { const char *name; int token; };
|
||||||
/* maximum key range = 64, duplicates = 0 */
|
/* maximum key range = 64, duplicates = 0 */
|
||||||
|
|
||||||
@@ -99,108 +99,108 @@ is_reserved_word (register const char *str, register unsigned int len)
|
|||||||
static const struct resword wordlist[] =
|
static const struct resword wordlist[] =
|
||||||
{
|
{
|
||||||
{""}, {""}, {""},
|
{""}, {""}, {""},
|
||||||
#line 30 "scripts/genksyms/keywords.gperf"
|
#line 33 "scripts/genksyms/keywords.gperf"
|
||||||
{"asm", ASM_KEYW},
|
{"asm", ASM_KEYW},
|
||||||
{""},
|
{""},
|
||||||
#line 12 "scripts/genksyms/keywords.gperf"
|
#line 15 "scripts/genksyms/keywords.gperf"
|
||||||
{"__asm", ASM_KEYW},
|
{"__asm", ASM_KEYW},
|
||||||
{""},
|
{""},
|
||||||
#line 13 "scripts/genksyms/keywords.gperf"
|
#line 16 "scripts/genksyms/keywords.gperf"
|
||||||
{"__asm__", ASM_KEYW},
|
{"__asm__", ASM_KEYW},
|
||||||
{""}, {""},
|
{""}, {""},
|
||||||
#line 56 "scripts/genksyms/keywords.gperf"
|
#line 59 "scripts/genksyms/keywords.gperf"
|
||||||
{"__typeof__", TYPEOF_KEYW},
|
{"__typeof__", TYPEOF_KEYW},
|
||||||
{""},
|
{""},
|
||||||
#line 16 "scripts/genksyms/keywords.gperf"
|
#line 19 "scripts/genksyms/keywords.gperf"
|
||||||
{"__const", CONST_KEYW},
|
{"__const", CONST_KEYW},
|
||||||
#line 15 "scripts/genksyms/keywords.gperf"
|
#line 18 "scripts/genksyms/keywords.gperf"
|
||||||
{"__attribute__", ATTRIBUTE_KEYW},
|
{"__attribute__", ATTRIBUTE_KEYW},
|
||||||
#line 17 "scripts/genksyms/keywords.gperf"
|
#line 20 "scripts/genksyms/keywords.gperf"
|
||||||
{"__const__", CONST_KEYW},
|
{"__const__", CONST_KEYW},
|
||||||
#line 22 "scripts/genksyms/keywords.gperf"
|
#line 25 "scripts/genksyms/keywords.gperf"
|
||||||
{"__signed__", SIGNED_KEYW},
|
{"__signed__", SIGNED_KEYW},
|
||||||
#line 48 "scripts/genksyms/keywords.gperf"
|
#line 51 "scripts/genksyms/keywords.gperf"
|
||||||
{"static", STATIC_KEYW},
|
{"static", STATIC_KEYW},
|
||||||
{""},
|
{""},
|
||||||
#line 43 "scripts/genksyms/keywords.gperf"
|
#line 46 "scripts/genksyms/keywords.gperf"
|
||||||
{"int", INT_KEYW},
|
{"int", INT_KEYW},
|
||||||
#line 36 "scripts/genksyms/keywords.gperf"
|
#line 39 "scripts/genksyms/keywords.gperf"
|
||||||
{"char", CHAR_KEYW},
|
{"char", CHAR_KEYW},
|
||||||
#line 37 "scripts/genksyms/keywords.gperf"
|
#line 40 "scripts/genksyms/keywords.gperf"
|
||||||
{"const", CONST_KEYW},
|
{"const", CONST_KEYW},
|
||||||
#line 49 "scripts/genksyms/keywords.gperf"
|
#line 52 "scripts/genksyms/keywords.gperf"
|
||||||
{"struct", STRUCT_KEYW},
|
{"struct", STRUCT_KEYW},
|
||||||
#line 28 "scripts/genksyms/keywords.gperf"
|
#line 31 "scripts/genksyms/keywords.gperf"
|
||||||
{"__restrict__", RESTRICT_KEYW},
|
{"__restrict__", RESTRICT_KEYW},
|
||||||
#line 29 "scripts/genksyms/keywords.gperf"
|
#line 32 "scripts/genksyms/keywords.gperf"
|
||||||
{"restrict", RESTRICT_KEYW},
|
{"restrict", RESTRICT_KEYW},
|
||||||
#line 9 "scripts/genksyms/keywords.gperf"
|
#line 12 "scripts/genksyms/keywords.gperf"
|
||||||
{"EXPORT_SYMBOL_GPL_FUTURE", EXPORT_SYMBOL_KEYW},
|
{"EXPORT_SYMBOL_GPL_FUTURE", EXPORT_SYMBOL_KEYW},
|
||||||
#line 20 "scripts/genksyms/keywords.gperf"
|
#line 23 "scripts/genksyms/keywords.gperf"
|
||||||
{"__inline__", INLINE_KEYW},
|
{"__inline__", INLINE_KEYW},
|
||||||
{""},
|
{""},
|
||||||
#line 24 "scripts/genksyms/keywords.gperf"
|
|
||||||
{"__volatile__", VOLATILE_KEYW},
|
|
||||||
#line 7 "scripts/genksyms/keywords.gperf"
|
|
||||||
{"EXPORT_SYMBOL", EXPORT_SYMBOL_KEYW},
|
|
||||||
#line 27 "scripts/genksyms/keywords.gperf"
|
#line 27 "scripts/genksyms/keywords.gperf"
|
||||||
|
{"__volatile__", VOLATILE_KEYW},
|
||||||
|
#line 10 "scripts/genksyms/keywords.gperf"
|
||||||
|
{"EXPORT_SYMBOL", EXPORT_SYMBOL_KEYW},
|
||||||
|
#line 30 "scripts/genksyms/keywords.gperf"
|
||||||
{"_restrict", RESTRICT_KEYW},
|
{"_restrict", RESTRICT_KEYW},
|
||||||
{""},
|
{""},
|
||||||
#line 14 "scripts/genksyms/keywords.gperf"
|
#line 17 "scripts/genksyms/keywords.gperf"
|
||||||
{"__attribute", ATTRIBUTE_KEYW},
|
{"__attribute", ATTRIBUTE_KEYW},
|
||||||
#line 8 "scripts/genksyms/keywords.gperf"
|
#line 11 "scripts/genksyms/keywords.gperf"
|
||||||
{"EXPORT_SYMBOL_GPL", EXPORT_SYMBOL_KEYW},
|
{"EXPORT_SYMBOL_GPL", EXPORT_SYMBOL_KEYW},
|
||||||
#line 18 "scripts/genksyms/keywords.gperf"
|
#line 21 "scripts/genksyms/keywords.gperf"
|
||||||
{"__extension__", EXTENSION_KEYW},
|
{"__extension__", EXTENSION_KEYW},
|
||||||
#line 39 "scripts/genksyms/keywords.gperf"
|
#line 42 "scripts/genksyms/keywords.gperf"
|
||||||
{"enum", ENUM_KEYW},
|
{"enum", ENUM_KEYW},
|
||||||
#line 10 "scripts/genksyms/keywords.gperf"
|
#line 13 "scripts/genksyms/keywords.gperf"
|
||||||
{"EXPORT_UNUSED_SYMBOL", EXPORT_SYMBOL_KEYW},
|
{"EXPORT_UNUSED_SYMBOL", EXPORT_SYMBOL_KEYW},
|
||||||
#line 40 "scripts/genksyms/keywords.gperf"
|
#line 43 "scripts/genksyms/keywords.gperf"
|
||||||
{"extern", EXTERN_KEYW},
|
{"extern", EXTERN_KEYW},
|
||||||
{""},
|
{""},
|
||||||
#line 21 "scripts/genksyms/keywords.gperf"
|
#line 24 "scripts/genksyms/keywords.gperf"
|
||||||
{"__signed", SIGNED_KEYW},
|
{"__signed", SIGNED_KEYW},
|
||||||
#line 11 "scripts/genksyms/keywords.gperf"
|
#line 14 "scripts/genksyms/keywords.gperf"
|
||||||
{"EXPORT_UNUSED_SYMBOL_GPL", EXPORT_SYMBOL_KEYW},
|
{"EXPORT_UNUSED_SYMBOL_GPL", EXPORT_SYMBOL_KEYW},
|
||||||
#line 51 "scripts/genksyms/keywords.gperf"
|
#line 54 "scripts/genksyms/keywords.gperf"
|
||||||
{"union", UNION_KEYW},
|
{"union", UNION_KEYW},
|
||||||
#line 55 "scripts/genksyms/keywords.gperf"
|
#line 58 "scripts/genksyms/keywords.gperf"
|
||||||
{"typeof", TYPEOF_KEYW},
|
{"typeof", TYPEOF_KEYW},
|
||||||
#line 50 "scripts/genksyms/keywords.gperf"
|
#line 53 "scripts/genksyms/keywords.gperf"
|
||||||
{"typedef", TYPEDEF_KEYW},
|
{"typedef", TYPEDEF_KEYW},
|
||||||
#line 19 "scripts/genksyms/keywords.gperf"
|
#line 22 "scripts/genksyms/keywords.gperf"
|
||||||
{"__inline", INLINE_KEYW},
|
{"__inline", INLINE_KEYW},
|
||||||
#line 35 "scripts/genksyms/keywords.gperf"
|
#line 38 "scripts/genksyms/keywords.gperf"
|
||||||
{"auto", AUTO_KEYW},
|
{"auto", AUTO_KEYW},
|
||||||
#line 23 "scripts/genksyms/keywords.gperf"
|
#line 26 "scripts/genksyms/keywords.gperf"
|
||||||
{"__volatile", VOLATILE_KEYW},
|
{"__volatile", VOLATILE_KEYW},
|
||||||
{""}, {""},
|
{""}, {""},
|
||||||
#line 52 "scripts/genksyms/keywords.gperf"
|
#line 55 "scripts/genksyms/keywords.gperf"
|
||||||
{"unsigned", UNSIGNED_KEYW},
|
{"unsigned", UNSIGNED_KEYW},
|
||||||
{""},
|
{""},
|
||||||
#line 46 "scripts/genksyms/keywords.gperf"
|
#line 49 "scripts/genksyms/keywords.gperf"
|
||||||
{"short", SHORT_KEYW},
|
{"short", SHORT_KEYW},
|
||||||
#line 42 "scripts/genksyms/keywords.gperf"
|
#line 45 "scripts/genksyms/keywords.gperf"
|
||||||
{"inline", INLINE_KEYW},
|
{"inline", INLINE_KEYW},
|
||||||
{""},
|
{""},
|
||||||
#line 54 "scripts/genksyms/keywords.gperf"
|
#line 57 "scripts/genksyms/keywords.gperf"
|
||||||
{"volatile", VOLATILE_KEYW},
|
{"volatile", VOLATILE_KEYW},
|
||||||
#line 44 "scripts/genksyms/keywords.gperf"
|
#line 47 "scripts/genksyms/keywords.gperf"
|
||||||
{"long", LONG_KEYW},
|
{"long", LONG_KEYW},
|
||||||
#line 26 "scripts/genksyms/keywords.gperf"
|
#line 29 "scripts/genksyms/keywords.gperf"
|
||||||
{"_Bool", BOOL_KEYW},
|
{"_Bool", BOOL_KEYW},
|
||||||
{""}, {""},
|
{""}, {""},
|
||||||
#line 45 "scripts/genksyms/keywords.gperf"
|
#line 48 "scripts/genksyms/keywords.gperf"
|
||||||
{"register", REGISTER_KEYW},
|
{"register", REGISTER_KEYW},
|
||||||
#line 53 "scripts/genksyms/keywords.gperf"
|
#line 56 "scripts/genksyms/keywords.gperf"
|
||||||
{"void", VOID_KEYW},
|
{"void", VOID_KEYW},
|
||||||
#line 41 "scripts/genksyms/keywords.gperf"
|
#line 44 "scripts/genksyms/keywords.gperf"
|
||||||
{"float", FLOAT_KEYW},
|
{"float", FLOAT_KEYW},
|
||||||
#line 38 "scripts/genksyms/keywords.gperf"
|
#line 41 "scripts/genksyms/keywords.gperf"
|
||||||
{"double", DOUBLE_KEYW},
|
{"double", DOUBLE_KEYW},
|
||||||
{""}, {""}, {""}, {""},
|
{""}, {""}, {""}, {""},
|
||||||
#line 47 "scripts/genksyms/keywords.gperf"
|
#line 50 "scripts/genksyms/keywords.gperf"
|
||||||
{"signed", SIGNED_KEYW}
|
{"signed", SIGNED_KEYW}
|
||||||
};
|
};
|
||||||
|
|
@@ -1,20 +1,10 @@
|
|||||||
#line 2 "scripts/genksyms/lex.c"
|
|
||||||
|
|
||||||
#line 4 "scripts/genksyms/lex.c"
|
#line 3 "scripts/genksyms/lex.lex.c_shipped"
|
||||||
|
|
||||||
#define YY_INT_ALIGNED short int
|
#define YY_INT_ALIGNED short int
|
||||||
|
|
||||||
/* A lexical scanner generated by flex */
|
/* A lexical scanner generated by flex */
|
||||||
|
|
||||||
/* %not-for-header */
|
|
||||||
|
|
||||||
/* %if-c-only */
|
|
||||||
/* %if-not-reentrant */
|
|
||||||
|
|
||||||
/* %endif */
|
|
||||||
/* %endif */
|
|
||||||
/* %ok-for-header */
|
|
||||||
|
|
||||||
#define FLEX_SCANNER
|
#define FLEX_SCANNER
|
||||||
#define YY_FLEX_MAJOR_VERSION 2
|
#define YY_FLEX_MAJOR_VERSION 2
|
||||||
#define YY_FLEX_MINOR_VERSION 5
|
#define YY_FLEX_MINOR_VERSION 5
|
||||||
@@ -23,32 +13,16 @@
|
|||||||
#define FLEX_BETA
|
#define FLEX_BETA
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* %if-c-only */
|
|
||||||
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* %if-c-only */
|
|
||||||
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* First, we deal with platform-specific or compiler-specific issues. */
|
/* First, we deal with platform-specific or compiler-specific issues. */
|
||||||
|
|
||||||
/* begin standard C headers. */
|
/* begin standard C headers. */
|
||||||
/* %if-c-only */
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* %if-tables-serialization */
|
|
||||||
/* %endif */
|
|
||||||
/* end standard C headers. */
|
/* end standard C headers. */
|
||||||
|
|
||||||
/* %if-c-or-c++ */
|
|
||||||
/* flex integer type definitions */
|
/* flex integer type definitions */
|
||||||
|
|
||||||
#ifndef FLEXINT_H
|
#ifndef FLEXINT_H
|
||||||
@@ -112,11 +86,6 @@ typedef unsigned int flex_uint32_t;
|
|||||||
|
|
||||||
#endif /* ! FLEXINT_H */
|
#endif /* ! FLEXINT_H */
|
||||||
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
||||||
/* The "const" storage-class-modifier is valid. */
|
/* The "const" storage-class-modifier is valid. */
|
||||||
@@ -138,13 +107,8 @@ typedef unsigned int flex_uint32_t;
|
|||||||
#define yyconst
|
#define yyconst
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* %not-for-header */
|
|
||||||
|
|
||||||
/* Returned upon end-of-file. */
|
/* Returned upon end-of-file. */
|
||||||
#define YY_NULL 0
|
#define YY_NULL 0
|
||||||
/* %ok-for-header */
|
|
||||||
|
|
||||||
/* %not-for-header */
|
|
||||||
|
|
||||||
/* Promotes a possibly negative, possibly signed char to an unsigned
|
/* Promotes a possibly negative, possibly signed char to an unsigned
|
||||||
* integer for use as an array index. If the signed char is negative,
|
* integer for use as an array index. If the signed char is negative,
|
||||||
@@ -152,14 +116,6 @@ typedef unsigned int flex_uint32_t;
|
|||||||
* double cast.
|
* double cast.
|
||||||
*/
|
*/
|
||||||
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
|
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
|
||||||
/* %ok-for-header */
|
|
||||||
|
|
||||||
/* %if-reentrant */
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* %if-not-reentrant */
|
|
||||||
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* Enter a start condition. This macro really ought to take a parameter,
|
/* Enter a start condition. This macro really ought to take a parameter,
|
||||||
* but we do it the disgusting crufty way forced on us by the ()-less
|
* but we do it the disgusting crufty way forced on us by the ()-less
|
||||||
@@ -196,15 +152,9 @@ typedef unsigned int flex_uint32_t;
|
|||||||
typedef struct yy_buffer_state *YY_BUFFER_STATE;
|
typedef struct yy_buffer_state *YY_BUFFER_STATE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* %if-not-reentrant */
|
|
||||||
extern int yyleng;
|
extern int yyleng;
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* %if-c-only */
|
|
||||||
/* %if-not-reentrant */
|
|
||||||
extern FILE *yyin, *yyout;
|
extern FILE *yyin, *yyout;
|
||||||
/* %endif */
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
#define EOB_ACT_CONTINUE_SCAN 0
|
#define EOB_ACT_CONTINUE_SCAN 0
|
||||||
#define EOB_ACT_END_OF_FILE 1
|
#define EOB_ACT_END_OF_FILE 1
|
||||||
@@ -237,12 +187,7 @@ typedef size_t yy_size_t;
|
|||||||
#define YY_STRUCT_YY_BUFFER_STATE
|
#define YY_STRUCT_YY_BUFFER_STATE
|
||||||
struct yy_buffer_state
|
struct yy_buffer_state
|
||||||
{
|
{
|
||||||
/* %if-c-only */
|
|
||||||
FILE *yy_input_file;
|
FILE *yy_input_file;
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
char *yy_ch_buf; /* input buffer */
|
char *yy_ch_buf; /* input buffer */
|
||||||
char *yy_buf_pos; /* current position in input buffer */
|
char *yy_buf_pos; /* current position in input buffer */
|
||||||
@@ -303,19 +248,10 @@ struct yy_buffer_state
|
|||||||
};
|
};
|
||||||
#endif /* !YY_STRUCT_YY_BUFFER_STATE */
|
#endif /* !YY_STRUCT_YY_BUFFER_STATE */
|
||||||
|
|
||||||
/* %if-c-only Standard (non-C++) definition */
|
|
||||||
/* %not-for-header */
|
|
||||||
|
|
||||||
/* %if-not-reentrant */
|
|
||||||
|
|
||||||
/* Stack of input buffers. */
|
/* Stack of input buffers. */
|
||||||
static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
|
static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
|
||||||
static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
|
static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
|
||||||
static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
|
static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
|
||||||
/* %endif */
|
|
||||||
/* %ok-for-header */
|
|
||||||
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* We provide macros for accessing buffer states in case in the
|
/* We provide macros for accessing buffer states in case in the
|
||||||
* future we want to put the buffer states in a more general
|
* future we want to put the buffer states in a more general
|
||||||
@@ -332,11 +268,6 @@ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
|
|||||||
*/
|
*/
|
||||||
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
|
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
|
||||||
|
|
||||||
/* %if-c-only Standard (non-C++) definition */
|
|
||||||
|
|
||||||
/* %if-not-reentrant */
|
|
||||||
/* %not-for-header */
|
|
||||||
|
|
||||||
/* yy_hold_char holds the character lost when yytext is formed. */
|
/* yy_hold_char holds the character lost when yytext is formed. */
|
||||||
static char yy_hold_char;
|
static char yy_hold_char;
|
||||||
static int yy_n_chars; /* number of characters read into yy_ch_buf */
|
static int yy_n_chars; /* number of characters read into yy_ch_buf */
|
||||||
@@ -351,9 +282,6 @@ static int yy_start = 0; /* start state number */
|
|||||||
* instead of setting up a fresh yyin. A bit of a hack ...
|
* instead of setting up a fresh yyin. A bit of a hack ...
|
||||||
*/
|
*/
|
||||||
static int yy_did_buffer_switch_on_eof;
|
static int yy_did_buffer_switch_on_eof;
|
||||||
/* %ok-for-header */
|
|
||||||
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
void yyrestart (FILE *input_file );
|
void yyrestart (FILE *input_file );
|
||||||
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
|
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
|
||||||
@@ -373,8 +301,6 @@ YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
|
|||||||
YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
|
YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
|
||||||
YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len );
|
YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len );
|
||||||
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
void *yyalloc (yy_size_t );
|
void *yyalloc (yy_size_t );
|
||||||
void *yyrealloc (void *,yy_size_t );
|
void *yyrealloc (void *,yy_size_t );
|
||||||
void yyfree (void * );
|
void yyfree (void * );
|
||||||
@@ -403,14 +329,11 @@ void yyfree (void * );
|
|||||||
|
|
||||||
#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
|
#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
|
||||||
|
|
||||||
/* %% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here */
|
|
||||||
/* Begin user sect3 */
|
/* Begin user sect3 */
|
||||||
|
|
||||||
#define yywrap(n) 1
|
#define yywrap(n) 1
|
||||||
#define YY_SKIP_YYWRAP
|
#define YY_SKIP_YYWRAP
|
||||||
|
|
||||||
#define FLEX_DEBUG
|
|
||||||
|
|
||||||
typedef unsigned char YY_CHAR;
|
typedef unsigned char YY_CHAR;
|
||||||
|
|
||||||
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
|
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
|
||||||
@@ -424,28 +347,21 @@ int yylineno = 1;
|
|||||||
extern char *yytext;
|
extern char *yytext;
|
||||||
#define yytext_ptr yytext
|
#define yytext_ptr yytext
|
||||||
|
|
||||||
/* %if-c-only Standard (non-C++) definition */
|
|
||||||
|
|
||||||
static yy_state_type yy_get_previous_state (void );
|
static yy_state_type yy_get_previous_state (void );
|
||||||
static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
|
static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
|
||||||
static int yy_get_next_buffer (void );
|
static int yy_get_next_buffer (void );
|
||||||
static void yy_fatal_error (yyconst char msg[] );
|
static void yy_fatal_error (yyconst char msg[] );
|
||||||
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* Done after the current pattern has been matched and before the
|
/* Done after the current pattern has been matched and before the
|
||||||
* corresponding action - sets up yytext.
|
* corresponding action - sets up yytext.
|
||||||
*/
|
*/
|
||||||
#define YY_DO_BEFORE_ACTION \
|
#define YY_DO_BEFORE_ACTION \
|
||||||
(yytext_ptr) = yy_bp; \
|
(yytext_ptr) = yy_bp; \
|
||||||
/* %% [2.0] code to fiddle yytext and yyleng for yymore() goes here \ */\
|
|
||||||
yyleng = (size_t) (yy_cp - yy_bp); \
|
yyleng = (size_t) (yy_cp - yy_bp); \
|
||||||
(yy_hold_char) = *yy_cp; \
|
(yy_hold_char) = *yy_cp; \
|
||||||
*yy_cp = '\0'; \
|
*yy_cp = '\0'; \
|
||||||
/* %% [3.0] code to copy yytext_ptr to yytext[] goes here, if %array \ */\
|
|
||||||
(yy_c_buf_p) = yy_cp;
|
(yy_c_buf_p) = yy_cp;
|
||||||
|
|
||||||
/* %% [4.0] data tables for the DFA and the user's section 1 definitions go here */
|
|
||||||
#define YY_NUM_RULES 13
|
#define YY_NUM_RULES 13
|
||||||
#define YY_END_OF_BUFFER 14
|
#define YY_END_OF_BUFFER 14
|
||||||
/* This struct is not used in this scanner,
|
/* This struct is not used in this scanner,
|
||||||
@@ -610,13 +526,7 @@ static yy_state_type yy_last_accepting_state;
|
|||||||
static char *yy_last_accepting_cpos;
|
static char *yy_last_accepting_cpos;
|
||||||
|
|
||||||
extern int yy_flex_debug;
|
extern int yy_flex_debug;
|
||||||
int yy_flex_debug = 1;
|
int yy_flex_debug = 0;
|
||||||
|
|
||||||
static yyconst flex_int16_t yy_rule_linenum[13] =
|
|
||||||
{ 0,
|
|
||||||
67, 68, 69, 72, 75, 76, 77, 83, 84, 85,
|
|
||||||
87, 90
|
|
||||||
} ;
|
|
||||||
|
|
||||||
/* The intent behind this definition is that it'll catch
|
/* The intent behind this definition is that it'll catch
|
||||||
* any uses of REJECT which flex missed.
|
* any uses of REJECT which flex missed.
|
||||||
@@ -626,7 +536,6 @@ static yyconst flex_int16_t yy_rule_linenum[13] =
|
|||||||
#define YY_MORE_ADJ 0
|
#define YY_MORE_ADJ 0
|
||||||
#define YY_RESTORE_YY_MORE_OFFSET
|
#define YY_RESTORE_YY_MORE_OFFSET
|
||||||
char *yytext;
|
char *yytext;
|
||||||
#line 1 "scripts/genksyms/lex.l"
|
|
||||||
/* Lexical analysis for genksyms.
|
/* Lexical analysis for genksyms.
|
||||||
Copyright 1996, 1997 Linux International.
|
Copyright 1996, 1997 Linux International.
|
||||||
|
|
||||||
@@ -648,7 +557,6 @@ char *yytext;
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software Foundation,
|
along with this program; if not, write to the Free Software Foundation,
|
||||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#line 25 "scripts/genksyms/lex.l"
|
|
||||||
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@@ -656,7 +564,7 @@ char *yytext;
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#include "genksyms.h"
|
#include "genksyms.h"
|
||||||
#include "parse.h"
|
#include "parse.tab.h"
|
||||||
|
|
||||||
/* We've got a two-level lexer here. We let flex do basic tokenization
|
/* We've got a two-level lexer here. We let flex do basic tokenization
|
||||||
and then we categorize those basic tokens in the second stage. */
|
and then we categorize those basic tokens in the second stage. */
|
||||||
@@ -664,7 +572,6 @@ char *yytext;
|
|||||||
|
|
||||||
/* We don't do multiple input files. */
|
/* We don't do multiple input files. */
|
||||||
#define YY_NO_INPUT 1
|
#define YY_NO_INPUT 1
|
||||||
#line 668 "scripts/genksyms/lex.c"
|
|
||||||
|
|
||||||
#define INITIAL 0
|
#define INITIAL 0
|
||||||
|
|
||||||
@@ -673,28 +580,15 @@ char *yytext;
|
|||||||
* down here because we want the user's section 1 to have been scanned first.
|
* down here because we want the user's section 1 to have been scanned first.
|
||||||
* The user has a chance to override it with an option.
|
* The user has a chance to override it with an option.
|
||||||
*/
|
*/
|
||||||
/* %if-c-only */
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
/* %endif */
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %endif */
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef YY_EXTRA_TYPE
|
#ifndef YY_EXTRA_TYPE
|
||||||
#define YY_EXTRA_TYPE void *
|
#define YY_EXTRA_TYPE void *
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* %if-c-only Reentrant structure and macros (non-C++). */
|
|
||||||
/* %if-reentrant */
|
|
||||||
/* %if-c-only */
|
|
||||||
|
|
||||||
static int yy_init_globals (void );
|
static int yy_init_globals (void );
|
||||||
|
|
||||||
/* %endif */
|
|
||||||
/* %if-reentrant */
|
|
||||||
/* %endif */
|
|
||||||
/* %endif End reentrant structures and macros. */
|
|
||||||
|
|
||||||
/* Accessor methods to globals.
|
/* Accessor methods to globals.
|
||||||
These are made visible to non-reentrant scanners for convenience. */
|
These are made visible to non-reentrant scanners for convenience. */
|
||||||
|
|
||||||
@@ -724,9 +618,6 @@ int yyget_lineno (void );
|
|||||||
|
|
||||||
void yyset_lineno (int line_number );
|
void yyset_lineno (int line_number );
|
||||||
|
|
||||||
/* %if-bison-bridge */
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* Macros after this point can all be overridden by user definitions in
|
/* Macros after this point can all be overridden by user definitions in
|
||||||
* section 1.
|
* section 1.
|
||||||
*/
|
*/
|
||||||
@@ -739,14 +630,8 @@ extern int yywrap (void );
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* %not-for-header */
|
|
||||||
|
|
||||||
static void yyunput (int c,char *buf_ptr );
|
static void yyunput (int c,char *buf_ptr );
|
||||||
|
|
||||||
/* %ok-for-header */
|
|
||||||
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
#ifndef yytext_ptr
|
#ifndef yytext_ptr
|
||||||
static void yy_flex_strncpy (char *,yyconst char *,int );
|
static void yy_flex_strncpy (char *,yyconst char *,int );
|
||||||
#endif
|
#endif
|
||||||
@@ -756,23 +641,15 @@ static int yy_flex_strlen (yyconst char * );
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef YY_NO_INPUT
|
#ifndef YY_NO_INPUT
|
||||||
/* %if-c-only Standard (non-C++) definition */
|
|
||||||
/* %not-for-header */
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
static int yyinput (void );
|
static int yyinput (void );
|
||||||
#else
|
#else
|
||||||
static int input (void );
|
static int input (void );
|
||||||
#endif
|
#endif
|
||||||
/* %ok-for-header */
|
|
||||||
|
|
||||||
/* %endif */
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* %if-c-only */
|
|
||||||
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* Amount of stuff to slurp up with each read. */
|
/* Amount of stuff to slurp up with each read. */
|
||||||
#ifndef YY_READ_BUF_SIZE
|
#ifndef YY_READ_BUF_SIZE
|
||||||
#define YY_READ_BUF_SIZE 8192
|
#define YY_READ_BUF_SIZE 8192
|
||||||
@@ -780,14 +657,10 @@ static int input (void );
|
|||||||
|
|
||||||
/* Copy whatever the last rule matched to the standard output. */
|
/* Copy whatever the last rule matched to the standard output. */
|
||||||
#ifndef ECHO
|
#ifndef ECHO
|
||||||
/* %if-c-only Standard (non-C++) definition */
|
|
||||||
/* This used to be an fputs(), but since the string might contain NUL's,
|
/* This used to be an fputs(), but since the string might contain NUL's,
|
||||||
* we now use fwrite().
|
* we now use fwrite().
|
||||||
*/
|
*/
|
||||||
#define ECHO fwrite( yytext, yyleng, 1, yyout )
|
#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
|
||||||
/* %endif */
|
|
||||||
/* %if-c++-only C++ definition */
|
|
||||||
/* %endif */
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
|
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
|
||||||
@@ -795,11 +668,10 @@ static int input (void );
|
|||||||
*/
|
*/
|
||||||
#ifndef YY_INPUT
|
#ifndef YY_INPUT
|
||||||
#define YY_INPUT(buf,result,max_size) \
|
#define YY_INPUT(buf,result,max_size) \
|
||||||
/* %% [5.0] fread()/read() definition of YY_INPUT goes here unless we're doing C++ \ */\
|
|
||||||
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
|
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
|
||||||
{ \
|
{ \
|
||||||
int c = '*'; \
|
int c = '*'; \
|
||||||
int n; \
|
unsigned n; \
|
||||||
for ( n = 0; n < max_size && \
|
for ( n = 0; n < max_size && \
|
||||||
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
|
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
|
||||||
buf[n] = (char) c; \
|
buf[n] = (char) c; \
|
||||||
@@ -824,8 +696,6 @@ static int input (void );
|
|||||||
} \
|
} \
|
||||||
}\
|
}\
|
||||||
\
|
\
|
||||||
/* %if-c++-only C++ definition \ */\
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -844,39 +714,20 @@ static int input (void );
|
|||||||
|
|
||||||
/* Report a fatal error. */
|
/* Report a fatal error. */
|
||||||
#ifndef YY_FATAL_ERROR
|
#ifndef YY_FATAL_ERROR
|
||||||
/* %if-c-only */
|
|
||||||
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
|
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
|
||||||
/* %endif */
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %endif */
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* %if-tables-serialization structures and prototypes */
|
|
||||||
/* %not-for-header */
|
|
||||||
|
|
||||||
/* %ok-for-header */
|
|
||||||
|
|
||||||
/* %not-for-header */
|
|
||||||
|
|
||||||
/* %tables-yydmap generated elements */
|
|
||||||
/* %endif */
|
|
||||||
/* end tables serialization structures and prototypes */
|
/* end tables serialization structures and prototypes */
|
||||||
|
|
||||||
/* %ok-for-header */
|
|
||||||
|
|
||||||
/* Default declaration of generated scanner - a define so the user can
|
/* Default declaration of generated scanner - a define so the user can
|
||||||
* easily add parameters.
|
* easily add parameters.
|
||||||
*/
|
*/
|
||||||
#ifndef YY_DECL
|
#ifndef YY_DECL
|
||||||
#define YY_DECL_IS_OURS 1
|
#define YY_DECL_IS_OURS 1
|
||||||
/* %if-c-only Standard (non-C++) definition */
|
|
||||||
|
|
||||||
extern int yylex (void);
|
extern int yylex (void);
|
||||||
|
|
||||||
#define YY_DECL int yylex (void)
|
#define YY_DECL int yylex (void)
|
||||||
/* %endif */
|
|
||||||
/* %if-c++-only C++ definition */
|
|
||||||
/* %endif */
|
|
||||||
#endif /* !YY_DECL */
|
#endif /* !YY_DECL */
|
||||||
|
|
||||||
/* Code executed at the beginning of each rule, after yytext and yyleng
|
/* Code executed at the beginning of each rule, after yytext and yyleng
|
||||||
@@ -891,15 +742,12 @@ extern int yylex (void);
|
|||||||
#define YY_BREAK break;
|
#define YY_BREAK break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* %% [6.0] YY_RULE_SETUP definition goes here */
|
|
||||||
#define YY_RULE_SETUP \
|
#define YY_RULE_SETUP \
|
||||||
if ( yyleng > 0 ) \
|
if ( yyleng > 0 ) \
|
||||||
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
|
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
|
||||||
(yytext[yyleng - 1] == '\n'); \
|
(yytext[yyleng - 1] == '\n'); \
|
||||||
YY_USER_ACTION
|
YY_USER_ACTION
|
||||||
|
|
||||||
/* %not-for-header */
|
|
||||||
|
|
||||||
/** The main scanner function which does all the work.
|
/** The main scanner function which does all the work.
|
||||||
*/
|
*/
|
||||||
YY_DECL
|
YY_DECL
|
||||||
@@ -908,13 +756,7 @@ YY_DECL
|
|||||||
register char *yy_cp, *yy_bp;
|
register char *yy_cp, *yy_bp;
|
||||||
register int yy_act;
|
register int yy_act;
|
||||||
|
|
||||||
/* %% [7.0] user's declarations go here */
|
|
||||||
#line 63 "scripts/genksyms/lex.l"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Keep track of our location in the original source files. */
|
/* Keep track of our location in the original source files. */
|
||||||
#line 918 "scripts/genksyms/lex.c"
|
|
||||||
|
|
||||||
if ( !(yy_init) )
|
if ( !(yy_init) )
|
||||||
{
|
{
|
||||||
@@ -928,18 +770,10 @@ YY_DECL
|
|||||||
(yy_start) = 1; /* first start state */
|
(yy_start) = 1; /* first start state */
|
||||||
|
|
||||||
if ( ! yyin )
|
if ( ! yyin )
|
||||||
/* %if-c-only */
|
|
||||||
yyin = stdin;
|
yyin = stdin;
|
||||||
/* %endif */
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
if ( ! yyout )
|
if ( ! yyout )
|
||||||
/* %if-c-only */
|
|
||||||
yyout = stdout;
|
yyout = stdout;
|
||||||
/* %endif */
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
if ( ! YY_CURRENT_BUFFER ) {
|
if ( ! YY_CURRENT_BUFFER ) {
|
||||||
yyensure_buffer_stack ();
|
yyensure_buffer_stack ();
|
||||||
@@ -952,7 +786,6 @@ YY_DECL
|
|||||||
|
|
||||||
while ( 1 ) /* loops until end-of-file is reached */
|
while ( 1 ) /* loops until end-of-file is reached */
|
||||||
{
|
{
|
||||||
/* %% [8.0] yymore()-related code goes here */
|
|
||||||
yy_cp = (yy_c_buf_p);
|
yy_cp = (yy_c_buf_p);
|
||||||
|
|
||||||
/* Support of yytext. */
|
/* Support of yytext. */
|
||||||
@@ -963,7 +796,6 @@ YY_DECL
|
|||||||
*/
|
*/
|
||||||
yy_bp = yy_cp;
|
yy_bp = yy_cp;
|
||||||
|
|
||||||
/* %% [9.0] code to set up and find next match goes here */
|
|
||||||
yy_current_state = (yy_start);
|
yy_current_state = (yy_start);
|
||||||
yy_current_state += YY_AT_BOL();
|
yy_current_state += YY_AT_BOL();
|
||||||
yy_match:
|
yy_match:
|
||||||
@@ -987,7 +819,6 @@ yy_match:
|
|||||||
while ( yy_base[yy_current_state] != 266 );
|
while ( yy_base[yy_current_state] != 266 );
|
||||||
|
|
||||||
yy_find_action:
|
yy_find_action:
|
||||||
/* %% [10.0] code to find the action number goes here */
|
|
||||||
yy_act = yy_accept[yy_current_state];
|
yy_act = yy_accept[yy_current_state];
|
||||||
if ( yy_act == 0 )
|
if ( yy_act == 0 )
|
||||||
{ /* have to back up */
|
{ /* have to back up */
|
||||||
@@ -998,30 +829,10 @@ yy_find_action:
|
|||||||
|
|
||||||
YY_DO_BEFORE_ACTION;
|
YY_DO_BEFORE_ACTION;
|
||||||
|
|
||||||
/* %% [11.0] code for yylineno update goes here */
|
|
||||||
|
|
||||||
do_action: /* This label is used only to access EOF actions. */
|
do_action: /* This label is used only to access EOF actions. */
|
||||||
|
|
||||||
/* %% [12.0] debug code goes here */
|
|
||||||
if ( yy_flex_debug )
|
|
||||||
{
|
|
||||||
if ( yy_act == 0 )
|
|
||||||
fprintf( stderr, "--scanner backing up\n" );
|
|
||||||
else if ( yy_act < 13 )
|
|
||||||
fprintf( stderr, "--accepting rule at line %ld (\"%s\")\n",
|
|
||||||
(long)yy_rule_linenum[yy_act], yytext );
|
|
||||||
else if ( yy_act == 13 )
|
|
||||||
fprintf( stderr, "--accepting default rule (\"%s\")\n",
|
|
||||||
yytext );
|
|
||||||
else if ( yy_act == 14 )
|
|
||||||
fprintf( stderr, "--(end of buffer or a NUL)\n" );
|
|
||||||
else
|
|
||||||
fprintf( stderr, "--EOF (start condition %d)\n", YY_START );
|
|
||||||
}
|
|
||||||
|
|
||||||
switch ( yy_act )
|
switch ( yy_act )
|
||||||
{ /* beginning of action switch */
|
{ /* beginning of action switch */
|
||||||
/* %% [13.0] actions go here */
|
|
||||||
case 0: /* must back up */
|
case 0: /* must back up */
|
||||||
/* undo the effects of YY_DO_BEFORE_ACTION */
|
/* undo the effects of YY_DO_BEFORE_ACTION */
|
||||||
*yy_cp = (yy_hold_char);
|
*yy_cp = (yy_hold_char);
|
||||||
@@ -1032,42 +843,35 @@ do_action: /* This label is used only to access EOF actions. */
|
|||||||
case 1:
|
case 1:
|
||||||
/* rule 1 can match eol */
|
/* rule 1 can match eol */
|
||||||
YY_RULE_SETUP
|
YY_RULE_SETUP
|
||||||
#line 67 "scripts/genksyms/lex.l"
|
|
||||||
return FILENAME;
|
return FILENAME;
|
||||||
YY_BREAK
|
YY_BREAK
|
||||||
case 2:
|
case 2:
|
||||||
/* rule 2 can match eol */
|
/* rule 2 can match eol */
|
||||||
YY_RULE_SETUP
|
YY_RULE_SETUP
|
||||||
#line 68 "scripts/genksyms/lex.l"
|
|
||||||
cur_line++;
|
cur_line++;
|
||||||
YY_BREAK
|
YY_BREAK
|
||||||
case 3:
|
case 3:
|
||||||
/* rule 3 can match eol */
|
/* rule 3 can match eol */
|
||||||
YY_RULE_SETUP
|
YY_RULE_SETUP
|
||||||
#line 69 "scripts/genksyms/lex.l"
|
|
||||||
cur_line++;
|
cur_line++;
|
||||||
YY_BREAK
|
YY_BREAK
|
||||||
/* Ignore all other whitespace. */
|
/* Ignore all other whitespace. */
|
||||||
case 4:
|
case 4:
|
||||||
YY_RULE_SETUP
|
YY_RULE_SETUP
|
||||||
#line 72 "scripts/genksyms/lex.l"
|
|
||||||
;
|
;
|
||||||
YY_BREAK
|
YY_BREAK
|
||||||
case 5:
|
case 5:
|
||||||
/* rule 5 can match eol */
|
/* rule 5 can match eol */
|
||||||
YY_RULE_SETUP
|
YY_RULE_SETUP
|
||||||
#line 75 "scripts/genksyms/lex.l"
|
|
||||||
return STRING;
|
return STRING;
|
||||||
YY_BREAK
|
YY_BREAK
|
||||||
case 6:
|
case 6:
|
||||||
/* rule 6 can match eol */
|
/* rule 6 can match eol */
|
||||||
YY_RULE_SETUP
|
YY_RULE_SETUP
|
||||||
#line 76 "scripts/genksyms/lex.l"
|
|
||||||
return CHAR;
|
return CHAR;
|
||||||
YY_BREAK
|
YY_BREAK
|
||||||
case 7:
|
case 7:
|
||||||
YY_RULE_SETUP
|
YY_RULE_SETUP
|
||||||
#line 77 "scripts/genksyms/lex.l"
|
|
||||||
return IDENT;
|
return IDENT;
|
||||||
YY_BREAK
|
YY_BREAK
|
||||||
/* The Pedant requires that the other C multi-character tokens be
|
/* The Pedant requires that the other C multi-character tokens be
|
||||||
@@ -1076,36 +880,29 @@ return IDENT;
|
|||||||
around them properly. */
|
around them properly. */
|
||||||
case 8:
|
case 8:
|
||||||
YY_RULE_SETUP
|
YY_RULE_SETUP
|
||||||
#line 83 "scripts/genksyms/lex.l"
|
|
||||||
return OTHER;
|
return OTHER;
|
||||||
YY_BREAK
|
YY_BREAK
|
||||||
case 9:
|
case 9:
|
||||||
YY_RULE_SETUP
|
YY_RULE_SETUP
|
||||||
#line 84 "scripts/genksyms/lex.l"
|
|
||||||
return INT;
|
return INT;
|
||||||
YY_BREAK
|
YY_BREAK
|
||||||
case 10:
|
case 10:
|
||||||
YY_RULE_SETUP
|
YY_RULE_SETUP
|
||||||
#line 85 "scripts/genksyms/lex.l"
|
|
||||||
return REAL;
|
return REAL;
|
||||||
YY_BREAK
|
YY_BREAK
|
||||||
case 11:
|
case 11:
|
||||||
YY_RULE_SETUP
|
YY_RULE_SETUP
|
||||||
#line 87 "scripts/genksyms/lex.l"
|
|
||||||
return DOTS;
|
return DOTS;
|
||||||
YY_BREAK
|
YY_BREAK
|
||||||
/* All other tokens are single characters. */
|
/* All other tokens are single characters. */
|
||||||
case 12:
|
case 12:
|
||||||
YY_RULE_SETUP
|
YY_RULE_SETUP
|
||||||
#line 90 "scripts/genksyms/lex.l"
|
|
||||||
return yytext[0];
|
return yytext[0];
|
||||||
YY_BREAK
|
YY_BREAK
|
||||||
case 13:
|
case 13:
|
||||||
YY_RULE_SETUP
|
YY_RULE_SETUP
|
||||||
#line 93 "scripts/genksyms/lex.l"
|
|
||||||
ECHO;
|
ECHO;
|
||||||
YY_BREAK
|
YY_BREAK
|
||||||
#line 1109 "scripts/genksyms/lex.c"
|
|
||||||
case YY_STATE_EOF(INITIAL):
|
case YY_STATE_EOF(INITIAL):
|
||||||
yyterminate();
|
yyterminate();
|
||||||
|
|
||||||
@@ -1172,7 +969,6 @@ case YY_STATE_EOF(INITIAL):
|
|||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* %% [14.0] code to do back-up for compressed tables and set up yy_cp goes here */
|
|
||||||
yy_cp = (yy_c_buf_p);
|
yy_cp = (yy_c_buf_p);
|
||||||
goto yy_find_action;
|
goto yy_find_action;
|
||||||
}
|
}
|
||||||
@@ -1238,14 +1034,6 @@ case YY_STATE_EOF(INITIAL):
|
|||||||
} /* end of action switch */
|
} /* end of action switch */
|
||||||
} /* end of scanning one token */
|
} /* end of scanning one token */
|
||||||
} /* end of yylex */
|
} /* end of yylex */
|
||||||
/* %ok-for-header */
|
|
||||||
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %not-for-header */
|
|
||||||
|
|
||||||
/* %ok-for-header */
|
|
||||||
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* yy_get_next_buffer - try to read in a new buffer
|
/* yy_get_next_buffer - try to read in a new buffer
|
||||||
*
|
*
|
||||||
@@ -1254,11 +1042,7 @@ case YY_STATE_EOF(INITIAL):
|
|||||||
* EOB_ACT_CONTINUE_SCAN - continue scanning from current position
|
* EOB_ACT_CONTINUE_SCAN - continue scanning from current position
|
||||||
* EOB_ACT_END_OF_FILE - end of file
|
* EOB_ACT_END_OF_FILE - end of file
|
||||||
*/
|
*/
|
||||||
/* %if-c-only */
|
|
||||||
static int yy_get_next_buffer (void)
|
static int yy_get_next_buffer (void)
|
||||||
/* %endif */
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %endif */
|
|
||||||
{
|
{
|
||||||
register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
|
register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
|
||||||
register char *source = (yytext_ptr);
|
register char *source = (yytext_ptr);
|
||||||
@@ -1392,24 +1176,16 @@ static int yy_get_next_buffer (void)
|
|||||||
|
|
||||||
/* yy_get_previous_state - get the state just before the EOB char was reached */
|
/* yy_get_previous_state - get the state just before the EOB char was reached */
|
||||||
|
|
||||||
/* %if-c-only */
|
|
||||||
/* %not-for-header */
|
|
||||||
|
|
||||||
static yy_state_type yy_get_previous_state (void)
|
static yy_state_type yy_get_previous_state (void)
|
||||||
/* %endif */
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %endif */
|
|
||||||
{
|
{
|
||||||
register yy_state_type yy_current_state;
|
register yy_state_type yy_current_state;
|
||||||
register char *yy_cp;
|
register char *yy_cp;
|
||||||
|
|
||||||
/* %% [15.0] code to get the start state into yy_current_state goes here */
|
|
||||||
yy_current_state = (yy_start);
|
yy_current_state = (yy_start);
|
||||||
yy_current_state += YY_AT_BOL();
|
yy_current_state += YY_AT_BOL();
|
||||||
|
|
||||||
for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
|
for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
|
||||||
{
|
{
|
||||||
/* %% [16.0] code to find the next state goes here */
|
|
||||||
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
|
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
|
||||||
if ( yy_accept[yy_current_state] )
|
if ( yy_accept[yy_current_state] )
|
||||||
{
|
{
|
||||||
@@ -1433,15 +1209,10 @@ static int yy_get_next_buffer (void)
|
|||||||
* synopsis
|
* synopsis
|
||||||
* next_state = yy_try_NUL_trans( current_state );
|
* next_state = yy_try_NUL_trans( current_state );
|
||||||
*/
|
*/
|
||||||
/* %if-c-only */
|
|
||||||
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
|
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
|
||||||
/* %endif */
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %endif */
|
|
||||||
{
|
{
|
||||||
register int yy_is_jam;
|
register int yy_is_jam;
|
||||||
/* %% [17.0] code to find the next state, and perhaps do backing up, goes here */
|
register char *yy_cp = (yy_c_buf_p);
|
||||||
register char *yy_cp = (yy_c_buf_p);
|
|
||||||
|
|
||||||
register YY_CHAR yy_c = 1;
|
register YY_CHAR yy_c = 1;
|
||||||
if ( yy_accept[yy_current_state] )
|
if ( yy_accept[yy_current_state] )
|
||||||
@@ -1461,12 +1232,7 @@ static int yy_get_next_buffer (void)
|
|||||||
return yy_is_jam ? 0 : yy_current_state;
|
return yy_is_jam ? 0 : yy_current_state;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* %if-c-only */
|
|
||||||
|
|
||||||
static void yyunput (int c, register char * yy_bp )
|
static void yyunput (int c, register char * yy_bp )
|
||||||
/* %endif */
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %endif */
|
|
||||||
{
|
{
|
||||||
register char *yy_cp;
|
register char *yy_cp;
|
||||||
|
|
||||||
@@ -1498,17 +1264,11 @@ static int yy_get_next_buffer (void)
|
|||||||
|
|
||||||
*--yy_cp = (char) c;
|
*--yy_cp = (char) c;
|
||||||
|
|
||||||
/* %% [18.0] update yylineno here */
|
|
||||||
|
|
||||||
(yytext_ptr) = yy_bp;
|
(yytext_ptr) = yy_bp;
|
||||||
(yy_hold_char) = *yy_cp;
|
(yy_hold_char) = *yy_cp;
|
||||||
(yy_c_buf_p) = yy_cp;
|
(yy_c_buf_p) = yy_cp;
|
||||||
}
|
}
|
||||||
/* %if-c-only */
|
|
||||||
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* %if-c-only */
|
|
||||||
#ifndef YY_NO_INPUT
|
#ifndef YY_NO_INPUT
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
static int yyinput (void)
|
static int yyinput (void)
|
||||||
@@ -1516,9 +1276,6 @@ static int yy_get_next_buffer (void)
|
|||||||
static int input (void)
|
static int input (void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* %endif */
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %endif */
|
|
||||||
{
|
{
|
||||||
int c;
|
int c;
|
||||||
|
|
||||||
@@ -1582,25 +1339,18 @@ static int yy_get_next_buffer (void)
|
|||||||
*(yy_c_buf_p) = '\0'; /* preserve yytext */
|
*(yy_c_buf_p) = '\0'; /* preserve yytext */
|
||||||
(yy_hold_char) = *++(yy_c_buf_p);
|
(yy_hold_char) = *++(yy_c_buf_p);
|
||||||
|
|
||||||
/* %% [19.0] update BOL and yylineno */
|
|
||||||
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n');
|
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n');
|
||||||
|
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
/* %if-c-only */
|
|
||||||
#endif /* ifndef YY_NO_INPUT */
|
#endif /* ifndef YY_NO_INPUT */
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/** Immediately switch to a different input stream.
|
/** Immediately switch to a different input stream.
|
||||||
* @param input_file A readable stream.
|
* @param input_file A readable stream.
|
||||||
*
|
*
|
||||||
* @note This function does not reset the start condition to @c INITIAL .
|
* @note This function does not reset the start condition to @c INITIAL .
|
||||||
*/
|
*/
|
||||||
/* %if-c-only */
|
|
||||||
void yyrestart (FILE * input_file )
|
void yyrestart (FILE * input_file )
|
||||||
/* %endif */
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %endif */
|
|
||||||
{
|
{
|
||||||
|
|
||||||
if ( ! YY_CURRENT_BUFFER ){
|
if ( ! YY_CURRENT_BUFFER ){
|
||||||
@@ -1617,11 +1367,7 @@ static int yy_get_next_buffer (void)
|
|||||||
* @param new_buffer The new input buffer.
|
* @param new_buffer The new input buffer.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
/* %if-c-only */
|
|
||||||
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
|
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
|
||||||
/* %endif */
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %endif */
|
|
||||||
{
|
{
|
||||||
|
|
||||||
/* TODO. We should be able to replace this entire function body
|
/* TODO. We should be able to replace this entire function body
|
||||||
@@ -1652,11 +1398,7 @@ static int yy_get_next_buffer (void)
|
|||||||
(yy_did_buffer_switch_on_eof) = 1;
|
(yy_did_buffer_switch_on_eof) = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* %if-c-only */
|
|
||||||
static void yy_load_buffer_state (void)
|
static void yy_load_buffer_state (void)
|
||||||
/* %endif */
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %endif */
|
|
||||||
{
|
{
|
||||||
(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
|
(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
|
||||||
(yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
|
(yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
|
||||||
@@ -1670,11 +1412,7 @@ static void yy_load_buffer_state (void)
|
|||||||
*
|
*
|
||||||
* @return the allocated buffer state.
|
* @return the allocated buffer state.
|
||||||
*/
|
*/
|
||||||
/* %if-c-only */
|
|
||||||
YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
|
YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
|
||||||
/* %endif */
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %endif */
|
|
||||||
{
|
{
|
||||||
YY_BUFFER_STATE b;
|
YY_BUFFER_STATE b;
|
||||||
|
|
||||||
@@ -1702,11 +1440,7 @@ static void yy_load_buffer_state (void)
|
|||||||
* @param b a buffer created with yy_create_buffer()
|
* @param b a buffer created with yy_create_buffer()
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
/* %if-c-only */
|
|
||||||
void yy_delete_buffer (YY_BUFFER_STATE b )
|
void yy_delete_buffer (YY_BUFFER_STATE b )
|
||||||
/* %endif */
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %endif */
|
|
||||||
{
|
{
|
||||||
|
|
||||||
if ( ! b )
|
if ( ! b )
|
||||||
@@ -1721,26 +1455,15 @@ static void yy_load_buffer_state (void)
|
|||||||
yyfree((void *) b );
|
yyfree((void *) b );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* %if-c-only */
|
|
||||||
|
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
extern int isatty (int );
|
extern int isatty (int );
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* Initializes or reinitializes a buffer.
|
/* Initializes or reinitializes a buffer.
|
||||||
* This function is sometimes called more than once on the same buffer,
|
* This function is sometimes called more than once on the same buffer,
|
||||||
* such as during a yyrestart() or at EOF.
|
* such as during a yyrestart() or at EOF.
|
||||||
*/
|
*/
|
||||||
/* %if-c-only */
|
|
||||||
static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
|
static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
|
||||||
/* %endif */
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
{
|
{
|
||||||
int oerrno = errno;
|
int oerrno = errno;
|
||||||
@@ -1759,13 +1482,8 @@ extern int isatty (int );
|
|||||||
b->yy_bs_column = 0;
|
b->yy_bs_column = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* %if-c-only */
|
|
||||||
|
|
||||||
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
|
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
|
||||||
|
|
||||||
/* %endif */
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %endif */
|
|
||||||
errno = oerrno;
|
errno = oerrno;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1773,11 +1491,7 @@ extern int isatty (int );
|
|||||||
* @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
|
* @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
/* %if-c-only */
|
|
||||||
void yy_flush_buffer (YY_BUFFER_STATE b )
|
void yy_flush_buffer (YY_BUFFER_STATE b )
|
||||||
/* %endif */
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %endif */
|
|
||||||
{
|
{
|
||||||
if ( ! b )
|
if ( ! b )
|
||||||
return;
|
return;
|
||||||
@@ -1800,18 +1514,13 @@ extern int isatty (int );
|
|||||||
yy_load_buffer_state( );
|
yy_load_buffer_state( );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* %if-c-or-c++ */
|
|
||||||
/** Pushes the new state onto the stack. The new state becomes
|
/** Pushes the new state onto the stack. The new state becomes
|
||||||
* the current state. This function will allocate the stack
|
* the current state. This function will allocate the stack
|
||||||
* if necessary.
|
* if necessary.
|
||||||
* @param new_buffer The new state.
|
* @param new_buffer The new state.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
/* %if-c-only */
|
|
||||||
void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
|
void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
|
||||||
/* %endif */
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %endif */
|
|
||||||
{
|
{
|
||||||
if (new_buffer == NULL)
|
if (new_buffer == NULL)
|
||||||
return;
|
return;
|
||||||
@@ -1836,18 +1545,12 @@ void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
|
|||||||
yy_load_buffer_state( );
|
yy_load_buffer_state( );
|
||||||
(yy_did_buffer_switch_on_eof) = 1;
|
(yy_did_buffer_switch_on_eof) = 1;
|
||||||
}
|
}
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* %if-c-or-c++ */
|
|
||||||
/** Removes and deletes the top of the stack, if present.
|
/** Removes and deletes the top of the stack, if present.
|
||||||
* The next element becomes the new top.
|
* The next element becomes the new top.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
/* %if-c-only */
|
|
||||||
void yypop_buffer_state (void)
|
void yypop_buffer_state (void)
|
||||||
/* %endif */
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %endif */
|
|
||||||
{
|
{
|
||||||
if (!YY_CURRENT_BUFFER)
|
if (!YY_CURRENT_BUFFER)
|
||||||
return;
|
return;
|
||||||
@@ -1862,17 +1565,11 @@ void yypop_buffer_state (void)
|
|||||||
(yy_did_buffer_switch_on_eof) = 1;
|
(yy_did_buffer_switch_on_eof) = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* %if-c-or-c++ */
|
|
||||||
/* Allocates the stack if it does not exist.
|
/* Allocates the stack if it does not exist.
|
||||||
* Guarantees space for at least one push.
|
* Guarantees space for at least one push.
|
||||||
*/
|
*/
|
||||||
/* %if-c-only */
|
|
||||||
static void yyensure_buffer_stack (void)
|
static void yyensure_buffer_stack (void)
|
||||||
/* %endif */
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %endif */
|
|
||||||
{
|
{
|
||||||
int num_to_alloc;
|
int num_to_alloc;
|
||||||
|
|
||||||
@@ -1914,9 +1611,7 @@ static void yyensure_buffer_stack (void)
|
|||||||
(yy_buffer_stack_max) = num_to_alloc;
|
(yy_buffer_stack_max) = num_to_alloc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* %if-c-only */
|
|
||||||
/** Setup the input buffer state to scan directly from a user-specified character buffer.
|
/** Setup the input buffer state to scan directly from a user-specified character buffer.
|
||||||
* @param base the character buffer
|
* @param base the character buffer
|
||||||
* @param size the size in bytes of the character buffer
|
* @param size the size in bytes of the character buffer
|
||||||
@@ -1951,9 +1646,7 @@ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
|
|||||||
|
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* %if-c-only */
|
|
||||||
/** Setup the input buffer state to scan a string. The next call to yylex() will
|
/** Setup the input buffer state to scan a string. The next call to yylex() will
|
||||||
* scan from a @e copy of @a str.
|
* scan from a @e copy of @a str.
|
||||||
* @param yystr a NUL-terminated string to scan
|
* @param yystr a NUL-terminated string to scan
|
||||||
@@ -1967,9 +1660,7 @@ YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
|
|||||||
|
|
||||||
return yy_scan_bytes(yystr,strlen(yystr) );
|
return yy_scan_bytes(yystr,strlen(yystr) );
|
||||||
}
|
}
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* %if-c-only */
|
|
||||||
/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
|
/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
|
||||||
* scan from a @e copy of @a bytes.
|
* scan from a @e copy of @a bytes.
|
||||||
* @param bytes the byte buffer to scan
|
* @param bytes the byte buffer to scan
|
||||||
@@ -2006,21 +1697,16 @@ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len )
|
|||||||
|
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
#ifndef YY_EXIT_FAILURE
|
#ifndef YY_EXIT_FAILURE
|
||||||
#define YY_EXIT_FAILURE 2
|
#define YY_EXIT_FAILURE 2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* %if-c-only */
|
|
||||||
static void yy_fatal_error (yyconst char* msg )
|
static void yy_fatal_error (yyconst char* msg )
|
||||||
{
|
{
|
||||||
(void) fprintf( stderr, "%s\n", msg );
|
(void) fprintf( stderr, "%s\n", msg );
|
||||||
exit( YY_EXIT_FAILURE );
|
exit( YY_EXIT_FAILURE );
|
||||||
}
|
}
|
||||||
/* %endif */
|
|
||||||
/* %if-c++-only */
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* Redefine yyless() so it works in section 3 code. */
|
/* Redefine yyless() so it works in section 3 code. */
|
||||||
|
|
||||||
@@ -2041,10 +1727,6 @@ static void yy_fatal_error (yyconst char* msg )
|
|||||||
|
|
||||||
/* Accessor methods (get/set functions) to struct members. */
|
/* Accessor methods (get/set functions) to struct members. */
|
||||||
|
|
||||||
/* %if-c-only */
|
|
||||||
/* %if-reentrant */
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/** Get the current line number.
|
/** Get the current line number.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@@ -2087,9 +1769,6 @@ char *yyget_text (void)
|
|||||||
return yytext;
|
return yytext;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* %if-reentrant */
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/** Set the current line number.
|
/** Set the current line number.
|
||||||
* @param line_number
|
* @param line_number
|
||||||
*
|
*
|
||||||
@@ -2126,14 +1805,6 @@ void yyset_debug (int bdebug )
|
|||||||
yy_flex_debug = bdebug ;
|
yy_flex_debug = bdebug ;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* %if-reentrant */
|
|
||||||
/* %if-bison-bridge */
|
|
||||||
/* %endif */
|
|
||||||
/* %endif if-c-only */
|
|
||||||
|
|
||||||
/* %if-c-only */
|
|
||||||
static int yy_init_globals (void)
|
static int yy_init_globals (void)
|
||||||
{
|
{
|
||||||
/* Initialization is the same as for the non-reentrant scanner.
|
/* Initialization is the same as for the non-reentrant scanner.
|
||||||
@@ -2161,9 +1832,7 @@ static int yy_init_globals (void)
|
|||||||
*/
|
*/
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* %if-c-only SNIP! this currently causes conflicts with the c++ scanner */
|
|
||||||
/* yylex_destroy is for both reentrant and non-reentrant scanners. */
|
/* yylex_destroy is for both reentrant and non-reentrant scanners. */
|
||||||
int yylex_destroy (void)
|
int yylex_destroy (void)
|
||||||
{
|
{
|
||||||
@@ -2183,11 +1852,8 @@ int yylex_destroy (void)
|
|||||||
* yylex() is called, initialization will occur. */
|
* yylex() is called, initialization will occur. */
|
||||||
yy_init_globals( );
|
yy_init_globals( );
|
||||||
|
|
||||||
/* %if-reentrant */
|
|
||||||
/* %endif */
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Internal utility routines.
|
* Internal utility routines.
|
||||||
@@ -2235,21 +1901,11 @@ void yyfree (void * ptr )
|
|||||||
free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
|
free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* %if-tables-serialization definitions */
|
|
||||||
/* %define-yytables The name for this specific scanner's tables. */
|
|
||||||
#define YYTABLES_NAME "yytables"
|
#define YYTABLES_NAME "yytables"
|
||||||
/* %endif */
|
|
||||||
|
|
||||||
/* %ok-for-header */
|
|
||||||
|
|
||||||
#line 93 "scripts/genksyms/lex.l"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Bring in the keyword recognizer. */
|
/* Bring in the keyword recognizer. */
|
||||||
|
|
||||||
#include "keywords.c"
|
#include "keywords.hash.c"
|
||||||
|
|
||||||
|
|
||||||
/* Macros to append to our phrase collection list. */
|
/* Macros to append to our phrase collection list. */
|
||||||
|
|
||||||
@@ -2274,7 +1930,6 @@ void yyfree (void * ptr )
|
|||||||
|
|
||||||
#define APP _APP(yytext, yyleng)
|
#define APP _APP(yytext, yyleng)
|
||||||
|
|
||||||
|
|
||||||
/* The second stage lexer. Here we incorporate knowledge of the state
|
/* The second stage lexer. Here we incorporate knowledge of the state
|
||||||
of the parser to tailor the tokens that are returned. */
|
of the parser to tailor the tokens that are returned. */
|
||||||
|
|
@@ -1,10 +1,9 @@
|
|||||||
|
/* A Bison parser, made by GNU Bison 2.4.3. */
|
||||||
/* A Bison parser, made by GNU Bison 2.4.1. */
|
|
||||||
|
|
||||||
/* Skeleton implementation for Bison's Yacc-like parsers in C
|
/* Skeleton implementation for Bison's Yacc-like parsers in C
|
||||||
|
|
||||||
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
|
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
|
||||||
Free Software Foundation, Inc.
|
2009, 2010 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@@ -46,7 +45,7 @@
|
|||||||
#define YYBISON 1
|
#define YYBISON 1
|
||||||
|
|
||||||
/* Bison version. */
|
/* Bison version. */
|
||||||
#define YYBISON_VERSION "2.4.1"
|
#define YYBISON_VERSION "2.4.3"
|
||||||
|
|
||||||
/* Skeleton name. */
|
/* Skeleton name. */
|
||||||
#define YYSKELETON_NAME "yacc.c"
|
#define YYSKELETON_NAME "yacc.c"
|
||||||
@@ -67,8 +66,6 @@
|
|||||||
|
|
||||||
/* Copy the first part of user declarations. */
|
/* Copy the first part of user declarations. */
|
||||||
|
|
||||||
/* Line 189 of yacc.c */
|
|
||||||
#line 24 "scripts/genksyms/parse.y"
|
|
||||||
|
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
@@ -101,8 +98,6 @@ remove_list(struct string_list **pb, struct string_list **pe)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Line 189 of yacc.c */
|
|
||||||
#line 106 "scripts/genksyms/parse.c"
|
|
||||||
|
|
||||||
/* Enabling traces. */
|
/* Enabling traces. */
|
||||||
#ifndef YYDEBUG
|
#ifndef YYDEBUG
|
||||||
@@ -186,8 +181,6 @@ typedef int YYSTYPE;
|
|||||||
/* Copy the second part of user declarations. */
|
/* Copy the second part of user declarations. */
|
||||||
|
|
||||||
|
|
||||||
/* Line 264 of yacc.c */
|
|
||||||
#line 191 "scripts/genksyms/parse.c"
|
|
||||||
|
|
||||||
#ifdef short
|
#ifdef short
|
||||||
# undef short
|
# undef short
|
||||||
@@ -237,7 +230,7 @@ typedef short int yytype_int16;
|
|||||||
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
|
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
|
||||||
|
|
||||||
#ifndef YY_
|
#ifndef YY_
|
||||||
# if YYENABLE_NLS
|
# if defined YYENABLE_NLS && YYENABLE_NLS
|
||||||
# if ENABLE_NLS
|
# if ENABLE_NLS
|
||||||
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
|
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
|
||||||
# define YY_(msgid) dgettext ("bison-runtime", msgid)
|
# define YY_(msgid) dgettext ("bison-runtime", msgid)
|
||||||
@@ -855,9 +848,18 @@ static const yytype_uint8 yystos[] =
|
|||||||
|
|
||||||
/* Like YYERROR except do call yyerror. This remains here temporarily
|
/* Like YYERROR except do call yyerror. This remains here temporarily
|
||||||
to ease the transition to the new meaning of YYERROR, for GCC.
|
to ease the transition to the new meaning of YYERROR, for GCC.
|
||||||
Once GCC version 2 has supplanted version 1, this can go. */
|
Once GCC version 2 has supplanted version 1, this can go. However,
|
||||||
|
YYFAIL appears to be in use. Nevertheless, it is formally deprecated
|
||||||
|
in Bison 2.4.2's NEWS entry, where a plan to phase it out is
|
||||||
|
discussed. */
|
||||||
|
|
||||||
#define YYFAIL goto yyerrlab
|
#define YYFAIL goto yyerrlab
|
||||||
|
#if defined YYFAIL
|
||||||
|
/* This is here to suppress warnings from the GCC cpp's
|
||||||
|
-Wunused-macros. Normally we don't worry about that warning, but
|
||||||
|
some users do, and we want to make it easy for users to remove
|
||||||
|
YYFAIL uses, which will produce warnings from Bison 2.5. */
|
||||||
|
#endif
|
||||||
|
|
||||||
#define YYRECOVERING() (!!yyerrstatus)
|
#define YYRECOVERING() (!!yyerrstatus)
|
||||||
|
|
||||||
@@ -914,7 +916,7 @@ while (YYID (0))
|
|||||||
we won't break user code: when these are the locations we know. */
|
we won't break user code: when these are the locations we know. */
|
||||||
|
|
||||||
#ifndef YY_LOCATION_PRINT
|
#ifndef YY_LOCATION_PRINT
|
||||||
# if YYLTYPE_IS_TRIVIAL
|
# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
|
||||||
# define YY_LOCATION_PRINT(File, Loc) \
|
# define YY_LOCATION_PRINT(File, Loc) \
|
||||||
fprintf (File, "%d.%d-%d.%d", \
|
fprintf (File, "%d.%d-%d.%d", \
|
||||||
(Loc).first_line, (Loc).first_column, \
|
(Loc).first_line, (Loc).first_column, \
|
||||||
@@ -1653,64 +1655,46 @@ yyreduce:
|
|||||||
{
|
{
|
||||||
case 4:
|
case 4:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 109 "scripts/genksyms/parse.y"
|
|
||||||
{ is_typedef = 0; is_extern = 0; current_name = NULL; decl_spec = NULL; ;}
|
{ is_typedef = 0; is_extern = 0; current_name = NULL; decl_spec = NULL; ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 5:
|
case 5:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 111 "scripts/genksyms/parse.y"
|
|
||||||
{ free_list(*(yyvsp[(2) - (2)]), NULL); *(yyvsp[(2) - (2)]) = NULL; ;}
|
{ free_list(*(yyvsp[(2) - (2)]), NULL); *(yyvsp[(2) - (2)]) = NULL; ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 6:
|
case 6:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 115 "scripts/genksyms/parse.y"
|
|
||||||
{ is_typedef = 1; ;}
|
{ is_typedef = 1; ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 7:
|
case 7:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 116 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(4) - (4)]); ;}
|
{ (yyval) = (yyvsp[(4) - (4)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 8:
|
case 8:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 117 "scripts/genksyms/parse.y"
|
|
||||||
{ is_typedef = 1; ;}
|
{ is_typedef = 1; ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 9:
|
case 9:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 118 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 14:
|
case 14:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 123 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 15:
|
case 15:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 124 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 16:
|
case 16:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 129 "scripts/genksyms/parse.y"
|
|
||||||
{ if (current_name) {
|
{ if (current_name) {
|
||||||
struct string_list *decl = (*(yyvsp[(3) - (3)]))->next;
|
struct string_list *decl = (*(yyvsp[(3) - (3)]))->next;
|
||||||
(*(yyvsp[(3) - (3)]))->next = NULL;
|
(*(yyvsp[(3) - (3)]))->next = NULL;
|
||||||
@@ -1725,15 +1709,11 @@ yyreduce:
|
|||||||
|
|
||||||
case 17:
|
case 17:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 142 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = NULL; ;}
|
{ (yyval) = NULL; ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 19:
|
case 19:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 148 "scripts/genksyms/parse.y"
|
|
||||||
{ struct string_list *decl = *(yyvsp[(1) - (1)]);
|
{ struct string_list *decl = *(yyvsp[(1) - (1)]);
|
||||||
*(yyvsp[(1) - (1)]) = NULL;
|
*(yyvsp[(1) - (1)]) = NULL;
|
||||||
add_symbol(current_name,
|
add_symbol(current_name,
|
||||||
@@ -1745,8 +1725,6 @@ yyreduce:
|
|||||||
|
|
||||||
case 20:
|
case 20:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 156 "scripts/genksyms/parse.y"
|
|
||||||
{ struct string_list *decl = *(yyvsp[(3) - (3)]);
|
{ struct string_list *decl = *(yyvsp[(3) - (3)]);
|
||||||
*(yyvsp[(3) - (3)]) = NULL;
|
*(yyvsp[(3) - (3)]) = NULL;
|
||||||
free_list(*(yyvsp[(2) - (3)]), NULL);
|
free_list(*(yyvsp[(2) - (3)]), NULL);
|
||||||
@@ -1760,36 +1738,26 @@ yyreduce:
|
|||||||
|
|
||||||
case 21:
|
case 21:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 169 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(4) - (4)]) ? (yyvsp[(4) - (4)]) : (yyvsp[(3) - (4)]) ? (yyvsp[(3) - (4)]) : (yyvsp[(2) - (4)]) ? (yyvsp[(2) - (4)]) : (yyvsp[(1) - (4)]); ;}
|
{ (yyval) = (yyvsp[(4) - (4)]) ? (yyvsp[(4) - (4)]) : (yyvsp[(3) - (4)]) ? (yyvsp[(3) - (4)]) : (yyvsp[(2) - (4)]) ? (yyvsp[(2) - (4)]) : (yyvsp[(1) - (4)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 22:
|
case 22:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 174 "scripts/genksyms/parse.y"
|
|
||||||
{ decl_spec = NULL; ;}
|
{ decl_spec = NULL; ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 24:
|
case 24:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 179 "scripts/genksyms/parse.y"
|
|
||||||
{ decl_spec = *(yyvsp[(1) - (1)]); ;}
|
{ decl_spec = *(yyvsp[(1) - (1)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 25:
|
case 25:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 180 "scripts/genksyms/parse.y"
|
|
||||||
{ decl_spec = *(yyvsp[(2) - (2)]); ;}
|
{ decl_spec = *(yyvsp[(2) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 26:
|
case 26:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 185 "scripts/genksyms/parse.y"
|
|
||||||
{ /* Version 2 checksumming ignores storage class, as that
|
{ /* Version 2 checksumming ignores storage class, as that
|
||||||
is really irrelevant to the linkage. */
|
is really irrelevant to the linkage. */
|
||||||
remove_node((yyvsp[(1) - (1)]));
|
remove_node((yyvsp[(1) - (1)]));
|
||||||
@@ -1799,43 +1767,31 @@ yyreduce:
|
|||||||
|
|
||||||
case 31:
|
case 31:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 197 "scripts/genksyms/parse.y"
|
|
||||||
{ is_extern = 1; (yyval) = (yyvsp[(1) - (1)]); ;}
|
{ is_extern = 1; (yyval) = (yyvsp[(1) - (1)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 32:
|
case 32:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 198 "scripts/genksyms/parse.y"
|
|
||||||
{ is_extern = 0; (yyval) = (yyvsp[(1) - (1)]); ;}
|
{ is_extern = 0; (yyval) = (yyvsp[(1) - (1)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 37:
|
case 37:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 210 "scripts/genksyms/parse.y"
|
|
||||||
{ remove_node((yyvsp[(1) - (2)])); (*(yyvsp[(2) - (2)]))->tag = SYM_STRUCT; (yyval) = (yyvsp[(2) - (2)]); ;}
|
{ remove_node((yyvsp[(1) - (2)])); (*(yyvsp[(2) - (2)]))->tag = SYM_STRUCT; (yyval) = (yyvsp[(2) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 38:
|
case 38:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 212 "scripts/genksyms/parse.y"
|
|
||||||
{ remove_node((yyvsp[(1) - (2)])); (*(yyvsp[(2) - (2)]))->tag = SYM_UNION; (yyval) = (yyvsp[(2) - (2)]); ;}
|
{ remove_node((yyvsp[(1) - (2)])); (*(yyvsp[(2) - (2)]))->tag = SYM_UNION; (yyval) = (yyvsp[(2) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 39:
|
case 39:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 214 "scripts/genksyms/parse.y"
|
|
||||||
{ remove_node((yyvsp[(1) - (2)])); (*(yyvsp[(2) - (2)]))->tag = SYM_ENUM; (yyval) = (yyvsp[(2) - (2)]); ;}
|
{ remove_node((yyvsp[(1) - (2)])); (*(yyvsp[(2) - (2)]))->tag = SYM_ENUM; (yyval) = (yyvsp[(2) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 40:
|
case 40:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 218 "scripts/genksyms/parse.y"
|
|
||||||
{ struct string_list *s = *(yyvsp[(3) - (3)]), *i = *(yyvsp[(2) - (3)]), *r;
|
{ struct string_list *s = *(yyvsp[(3) - (3)]), *i = *(yyvsp[(2) - (3)]), *r;
|
||||||
r = copy_node(i); r->tag = SYM_STRUCT;
|
r = copy_node(i); r->tag = SYM_STRUCT;
|
||||||
r->next = (*(yyvsp[(1) - (3)]))->next; *(yyvsp[(3) - (3)]) = r; (*(yyvsp[(1) - (3)]))->next = NULL;
|
r->next = (*(yyvsp[(1) - (3)]))->next; *(yyvsp[(3) - (3)]) = r; (*(yyvsp[(1) - (3)]))->next = NULL;
|
||||||
@@ -1846,8 +1802,6 @@ yyreduce:
|
|||||||
|
|
||||||
case 41:
|
case 41:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 225 "scripts/genksyms/parse.y"
|
|
||||||
{ struct string_list *s = *(yyvsp[(3) - (3)]), *i = *(yyvsp[(2) - (3)]), *r;
|
{ struct string_list *s = *(yyvsp[(3) - (3)]), *i = *(yyvsp[(2) - (3)]), *r;
|
||||||
r = copy_node(i); r->tag = SYM_UNION;
|
r = copy_node(i); r->tag = SYM_UNION;
|
||||||
r->next = (*(yyvsp[(1) - (3)]))->next; *(yyvsp[(3) - (3)]) = r; (*(yyvsp[(1) - (3)]))->next = NULL;
|
r->next = (*(yyvsp[(1) - (3)]))->next; *(yyvsp[(3) - (3)]) = r; (*(yyvsp[(1) - (3)]))->next = NULL;
|
||||||
@@ -1858,8 +1812,6 @@ yyreduce:
|
|||||||
|
|
||||||
case 42:
|
case 42:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 232 "scripts/genksyms/parse.y"
|
|
||||||
{ struct string_list *s = *(yyvsp[(3) - (3)]), *i = *(yyvsp[(2) - (3)]), *r;
|
{ struct string_list *s = *(yyvsp[(3) - (3)]), *i = *(yyvsp[(2) - (3)]), *r;
|
||||||
r = copy_node(i); r->tag = SYM_ENUM;
|
r = copy_node(i); r->tag = SYM_ENUM;
|
||||||
r->next = (*(yyvsp[(1) - (3)]))->next; *(yyvsp[(3) - (3)]) = r; (*(yyvsp[(1) - (3)]))->next = NULL;
|
r->next = (*(yyvsp[(1) - (3)]))->next; *(yyvsp[(3) - (3)]) = r; (*(yyvsp[(1) - (3)]))->next = NULL;
|
||||||
@@ -1870,57 +1822,41 @@ yyreduce:
|
|||||||
|
|
||||||
case 43:
|
case 43:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 242 "scripts/genksyms/parse.y"
|
|
||||||
{ add_symbol(NULL, SYM_ENUM, NULL, 0); (yyval) = (yyvsp[(2) - (2)]); ;}
|
{ add_symbol(NULL, SYM_ENUM, NULL, 0); (yyval) = (yyvsp[(2) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 44:
|
case 44:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 244 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 45:
|
case 45:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 245 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 56:
|
case 56:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 259 "scripts/genksyms/parse.y"
|
|
||||||
{ (*(yyvsp[(1) - (1)]))->tag = SYM_TYPEDEF; (yyval) = (yyvsp[(1) - (1)]); ;}
|
{ (*(yyvsp[(1) - (1)]))->tag = SYM_TYPEDEF; (yyval) = (yyvsp[(1) - (1)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 57:
|
case 57:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 264 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); ;}
|
{ (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 58:
|
case 58:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 268 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = NULL; ;}
|
{ (yyval) = NULL; ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 61:
|
case 61:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 274 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 65:
|
case 65:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 280 "scripts/genksyms/parse.y"
|
|
||||||
{ /* restrict has no effect in prototypes so ignore it */
|
{ /* restrict has no effect in prototypes so ignore it */
|
||||||
remove_node((yyvsp[(1) - (1)]));
|
remove_node((yyvsp[(1) - (1)]));
|
||||||
(yyval) = (yyvsp[(1) - (1)]);
|
(yyval) = (yyvsp[(1) - (1)]);
|
||||||
@@ -1929,15 +1865,11 @@ yyreduce:
|
|||||||
|
|
||||||
case 66:
|
case 66:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 287 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 68:
|
case 68:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 293 "scripts/genksyms/parse.y"
|
|
||||||
{ if (current_name != NULL) {
|
{ if (current_name != NULL) {
|
||||||
error_with_pos("unexpected second declaration name");
|
error_with_pos("unexpected second declaration name");
|
||||||
YYERROR;
|
YYERROR;
|
||||||
@@ -1950,134 +1882,96 @@ yyreduce:
|
|||||||
|
|
||||||
case 69:
|
case 69:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 302 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(4) - (4)]); ;}
|
{ (yyval) = (yyvsp[(4) - (4)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 70:
|
case 70:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 304 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(4) - (4)]); ;}
|
{ (yyval) = (yyvsp[(4) - (4)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 71:
|
case 71:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 306 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 72:
|
case 72:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 308 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 73:
|
case 73:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 310 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 74:
|
case 74:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 316 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 78:
|
case 78:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 324 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(4) - (4)]); ;}
|
{ (yyval) = (yyvsp[(4) - (4)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 79:
|
case 79:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 326 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(4) - (4)]); ;}
|
{ (yyval) = (yyvsp[(4) - (4)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 80:
|
case 80:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 328 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 81:
|
case 81:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 330 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 82:
|
case 82:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 332 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 83:
|
case 83:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 336 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 85:
|
case 85:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 338 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 86:
|
case 86:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 342 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = NULL; ;}
|
{ (yyval) = NULL; ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 89:
|
case 89:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 349 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 90:
|
case 90:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 354 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); ;}
|
{ (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 91:
|
case 91:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 359 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); ;}
|
{ (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 93:
|
case 93:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 364 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = NULL; ;}
|
{ (yyval) = NULL; ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 94:
|
case 94:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 366 "scripts/genksyms/parse.y"
|
|
||||||
{ /* For version 2 checksums, we don't want to remember
|
{ /* For version 2 checksums, we don't want to remember
|
||||||
private parameter names. */
|
private parameter names. */
|
||||||
remove_node((yyvsp[(1) - (1)]));
|
remove_node((yyvsp[(1) - (1)]));
|
||||||
@@ -2087,8 +1981,6 @@ yyreduce:
|
|||||||
|
|
||||||
case 95:
|
case 95:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 374 "scripts/genksyms/parse.y"
|
|
||||||
{ remove_node((yyvsp[(1) - (1)]));
|
{ remove_node((yyvsp[(1) - (1)]));
|
||||||
(yyval) = (yyvsp[(1) - (1)]);
|
(yyval) = (yyvsp[(1) - (1)]);
|
||||||
;}
|
;}
|
||||||
@@ -2096,43 +1988,31 @@ yyreduce:
|
|||||||
|
|
||||||
case 96:
|
case 96:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 378 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(4) - (4)]); ;}
|
{ (yyval) = (yyvsp[(4) - (4)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 97:
|
case 97:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 380 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(4) - (4)]); ;}
|
{ (yyval) = (yyvsp[(4) - (4)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 98:
|
case 98:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 382 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 99:
|
case 99:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 384 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 100:
|
case 100:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 386 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 101:
|
case 101:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 391 "scripts/genksyms/parse.y"
|
|
||||||
{ struct string_list *decl = *(yyvsp[(2) - (3)]);
|
{ struct string_list *decl = *(yyvsp[(2) - (3)]);
|
||||||
*(yyvsp[(2) - (3)]) = NULL;
|
*(yyvsp[(2) - (3)]) = NULL;
|
||||||
add_symbol(current_name, SYM_NORMAL, decl, is_extern);
|
add_symbol(current_name, SYM_NORMAL, decl, is_extern);
|
||||||
@@ -2142,120 +2022,86 @@ yyreduce:
|
|||||||
|
|
||||||
case 102:
|
case 102:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 399 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = NULL; ;}
|
{ (yyval) = NULL; ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 104:
|
case 104:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 406 "scripts/genksyms/parse.y"
|
|
||||||
{ remove_list((yyvsp[(2) - (2)]), &(*(yyvsp[(1) - (2)]))->next); (yyval) = (yyvsp[(2) - (2)]); ;}
|
{ remove_list((yyvsp[(2) - (2)]), &(*(yyvsp[(1) - (2)]))->next); (yyval) = (yyvsp[(2) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 105:
|
case 105:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 410 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 106:
|
case 106:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 411 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 107:
|
case 107:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 415 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = NULL; ;}
|
{ (yyval) = NULL; ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 110:
|
case 110:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 421 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 111:
|
case 111:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 426 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 112:
|
case 112:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 428 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 113:
|
case 113:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 432 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = NULL; ;}
|
{ (yyval) = NULL; ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 116:
|
case 116:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 438 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 117:
|
case 117:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 442 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); ;}
|
{ (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 118:
|
case 118:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 443 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 120:
|
case 120:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 448 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 121:
|
case 121:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 452 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = NULL; ;}
|
{ (yyval) = NULL; ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 123:
|
case 123:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 457 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
{ (yyval) = (yyvsp[(3) - (3)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 124:
|
case 124:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 458 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(4) - (4)]); ;}
|
{ (yyval) = (yyvsp[(4) - (4)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 127:
|
case 127:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 467 "scripts/genksyms/parse.y"
|
|
||||||
{
|
{
|
||||||
const char *name = strdup((*(yyvsp[(1) - (1)]))->string);
|
const char *name = strdup((*(yyvsp[(1) - (1)]))->string);
|
||||||
add_symbol(name, SYM_ENUM_CONST, NULL, 0);
|
add_symbol(name, SYM_ENUM_CONST, NULL, 0);
|
||||||
@@ -2264,8 +2110,6 @@ yyreduce:
|
|||||||
|
|
||||||
case 128:
|
case 128:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 472 "scripts/genksyms/parse.y"
|
|
||||||
{
|
{
|
||||||
const char *name = strdup((*(yyvsp[(1) - (3)]))->string);
|
const char *name = strdup((*(yyvsp[(1) - (3)]))->string);
|
||||||
struct string_list *expr = copy_list_range(*(yyvsp[(3) - (3)]), *(yyvsp[(2) - (3)]));
|
struct string_list *expr = copy_list_range(*(yyvsp[(3) - (3)]), *(yyvsp[(2) - (3)]));
|
||||||
@@ -2275,29 +2119,21 @@ yyreduce:
|
|||||||
|
|
||||||
case 129:
|
case 129:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 479 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
{ (yyval) = (yyvsp[(2) - (2)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 130:
|
case 130:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 483 "scripts/genksyms/parse.y"
|
|
||||||
{ (yyval) = NULL; ;}
|
{ (yyval) = NULL; ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 132:
|
case 132:
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 489 "scripts/genksyms/parse.y"
|
|
||||||
{ export_symbol((*(yyvsp[(3) - (5)]))->string); (yyval) = (yyvsp[(5) - (5)]); ;}
|
{ export_symbol((*(yyvsp[(3) - (5)]))->string); (yyval) = (yyvsp[(5) - (5)]); ;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Line 1455 of yacc.c */
|
|
||||||
#line 2301 "scripts/genksyms/parse.c"
|
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
|
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
|
||||||
@@ -2508,8 +2344,6 @@ yyreturn:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Line 1675 of yacc.c */
|
|
||||||
#line 493 "scripts/genksyms/parse.y"
|
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
@@ -1,10 +1,9 @@
|
|||||||
|
/* A Bison parser, made by GNU Bison 2.4.3. */
|
||||||
/* A Bison parser, made by GNU Bison 2.4.1. */
|
|
||||||
|
|
||||||
/* Skeleton interface for Bison's Yacc-like parsers in C
|
/* Skeleton interface for Bison's Yacc-like parsers in C
|
||||||
|
|
||||||
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
|
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
|
||||||
Free Software Foundation, Inc.
|
2009, 2010 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
Reference in New Issue
Block a user