util/sconfig: Fix warnings
and re-generate _shipped files Change-Id: I7a18824d64d3f6212e8566695376bf97e2196ee2 Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: https://review.coreboot.org/14733 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins)
This commit is contained in:
parent
66fbeaec98
commit
2e78aa5a78
|
@ -1,14 +1,12 @@
|
||||||
|
|
||||||
#line 3 "util/sconfig/lex.yy.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 */
|
||||||
|
|
||||||
#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 6
|
||||||
#define YY_FLEX_SUBMINOR_VERSION 35
|
#define YY_FLEX_SUBMINOR_VERSION 0
|
||||||
#if YY_FLEX_SUBMINOR_VERSION > 0
|
#if YY_FLEX_SUBMINOR_VERSION > 0
|
||||||
#define FLEX_BETA
|
#define FLEX_BETA
|
||||||
#endif
|
#endif
|
||||||
|
@ -161,7 +159,12 @@ typedef unsigned int flex_uint32_t;
|
||||||
typedef struct yy_buffer_state *YY_BUFFER_STATE;
|
typedef struct yy_buffer_state *YY_BUFFER_STATE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern int yyleng;
|
#ifndef YY_TYPEDEF_YY_SIZE_T
|
||||||
|
#define YY_TYPEDEF_YY_SIZE_T
|
||||||
|
typedef size_t yy_size_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern yy_size_t yyleng;
|
||||||
|
|
||||||
extern FILE *yyin, *yyout;
|
extern FILE *yyin, *yyout;
|
||||||
|
|
||||||
|
@ -170,6 +173,7 @@ extern FILE *yyin, *yyout;
|
||||||
#define EOB_ACT_LAST_MATCH 2
|
#define EOB_ACT_LAST_MATCH 2
|
||||||
|
|
||||||
#define YY_LESS_LINENO(n)
|
#define YY_LESS_LINENO(n)
|
||||||
|
#define YY_LINENO_REWIND_TO(ptr)
|
||||||
|
|
||||||
/* Return all but the first "n" matched characters back to the input stream. */
|
/* Return all but the first "n" matched characters back to the input stream. */
|
||||||
#define yyless(n) \
|
#define yyless(n) \
|
||||||
|
@ -187,11 +191,6 @@ extern FILE *yyin, *yyout;
|
||||||
|
|
||||||
#define unput(c) yyunput( c, (yytext_ptr) )
|
#define unput(c) yyunput( c, (yytext_ptr) )
|
||||||
|
|
||||||
#ifndef YY_TYPEDEF_YY_SIZE_T
|
|
||||||
#define YY_TYPEDEF_YY_SIZE_T
|
|
||||||
typedef size_t yy_size_t;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef YY_STRUCT_YY_BUFFER_STATE
|
#ifndef YY_STRUCT_YY_BUFFER_STATE
|
||||||
#define YY_STRUCT_YY_BUFFER_STATE
|
#define YY_STRUCT_YY_BUFFER_STATE
|
||||||
struct yy_buffer_state
|
struct yy_buffer_state
|
||||||
|
@ -280,7 +279,7 @@ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
|
||||||
/* 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 */
|
||||||
int yyleng;
|
yy_size_t yyleng;
|
||||||
|
|
||||||
/* Points to current character in buffer. */
|
/* Points to current character in buffer. */
|
||||||
static char *yy_c_buf_p = (char *) 0;
|
static char *yy_c_buf_p = (char *) 0;
|
||||||
|
@ -308,7 +307,7 @@ static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
|
||||||
|
|
||||||
YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
|
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,yy_size_t len );
|
||||||
|
|
||||||
void *yyalloc (yy_size_t );
|
void *yyalloc (yy_size_t );
|
||||||
void *yyrealloc (void *,yy_size_t );
|
void *yyrealloc (void *,yy_size_t );
|
||||||
|
@ -351,11 +350,17 @@ extern int yylineno;
|
||||||
int yylineno = 1;
|
int yylineno = 1;
|
||||||
|
|
||||||
extern char *yytext;
|
extern char *yytext;
|
||||||
|
#ifdef yytext_ptr
|
||||||
|
#undef yytext_ptr
|
||||||
|
#endif
|
||||||
#define yytext_ptr yytext
|
#define yytext_ptr yytext
|
||||||
|
|
||||||
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 );
|
||||||
|
#if defined(__GNUC__) && __GNUC__ >= 3
|
||||||
|
__attribute__((__noreturn__))
|
||||||
|
#endif
|
||||||
static void yy_fatal_error (yyconst char msg[] );
|
static void yy_fatal_error (yyconst char msg[] );
|
||||||
|
|
||||||
/* Done after the current pattern has been matched and before the
|
/* Done after the current pattern has been matched and before the
|
||||||
|
@ -394,7 +399,7 @@ static yyconst flex_int16_t yy_accept[116] =
|
||||||
20, 30, 14, 22, 0
|
20, 30, 14, 22, 0
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
static yyconst flex_int32_t yy_ec[256] =
|
static yyconst YY_CHAR yy_ec[256] =
|
||||||
{ 0,
|
{ 0,
|
||||||
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
|
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
|
||||||
1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
|
1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
|
||||||
|
@ -426,7 +431,7 @@ static yyconst flex_int32_t yy_ec[256] =
|
||||||
1, 1, 1, 1, 1
|
1, 1, 1, 1, 1
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
static yyconst flex_int32_t yy_meta[39] =
|
static yyconst YY_CHAR yy_meta[39] =
|
||||||
{ 0,
|
{ 0,
|
||||||
1, 2, 2, 1, 1, 1, 1, 1, 1, 1,
|
1, 2, 2, 1, 1, 1, 1, 1, 1, 1,
|
||||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||||
|
@ -434,7 +439,7 @@ static yyconst flex_int32_t yy_meta[39] =
|
||||||
1, 1, 1, 1, 1, 1, 1, 1
|
1, 1, 1, 1, 1, 1, 1, 1
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
static yyconst flex_int16_t yy_base[121] =
|
static yyconst flex_uint16_t yy_base[121] =
|
||||||
{ 0,
|
{ 0,
|
||||||
0, 0, 181, 0, 178, 182, 176, 37, 41, 38,
|
0, 0, 181, 0, 178, 182, 176, 37, 41, 38,
|
||||||
141, 0, 44, 163, 54, 78, 60, 45, 159, 42,
|
141, 0, 44, 163, 54, 78, 60, 45, 159, 42,
|
||||||
|
@ -468,7 +473,7 @@ static yyconst flex_int16_t yy_def[121] =
|
||||||
116, 116, 116, 116, 0, 115, 115, 115, 115, 115
|
116, 116, 116, 116, 0, 115, 115, 115, 115, 115
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
static yyconst flex_int16_t yy_nxt[221] =
|
static yyconst flex_uint16_t yy_nxt[221] =
|
||||||
{ 0,
|
{ 0,
|
||||||
4, 5, 6, 7, 8, 9, 10, 11, 10, 12,
|
4, 5, 6, 7, 8, 9, 10, 11, 10, 12,
|
||||||
13, 13, 14, 4, 4, 4, 13, 13, 15, 16,
|
13, 13, 14, 4, 4, 4, 13, 13, 15, 16,
|
||||||
|
@ -542,7 +547,7 @@ char *yytext;
|
||||||
* sconfig, coreboot device tree compiler
|
* sconfig, coreboot device tree compiler
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010 coresystems GmbH
|
* Copyright (C) 2010 coresystems GmbH
|
||||||
* written by Patrick Georgi <patrick.georgi@coresystems.de>
|
* written by Patrick Georgi <patrick@georgi-clan.de>
|
||||||
*
|
*
|
||||||
* 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
|
||||||
|
@ -552,10 +557,6 @@ char *yytext;
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program; if not, write to the Free Software
|
|
||||||
* Foundation, Inc.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "sconfig.tab.h"
|
#include "sconfig.tab.h"
|
||||||
|
@ -593,19 +594,19 @@ void yyset_extra (YY_EXTRA_TYPE user_defined );
|
||||||
|
|
||||||
FILE *yyget_in (void );
|
FILE *yyget_in (void );
|
||||||
|
|
||||||
void yyset_in (FILE * in_str );
|
void yyset_in (FILE * _in_str );
|
||||||
|
|
||||||
FILE *yyget_out (void );
|
FILE *yyget_out (void );
|
||||||
|
|
||||||
void yyset_out (FILE * out_str );
|
void yyset_out (FILE * _out_str );
|
||||||
|
|
||||||
int yyget_leng (void );
|
yy_size_t yyget_leng (void );
|
||||||
|
|
||||||
char *yyget_text (void );
|
char *yyget_text (void );
|
||||||
|
|
||||||
int yyget_lineno (void );
|
int yyget_lineno (void );
|
||||||
|
|
||||||
void yyset_lineno (int line_number );
|
void yyset_lineno (int _line_number );
|
||||||
|
|
||||||
/* 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.
|
||||||
|
@ -619,8 +620,12 @@ extern int yywrap (void );
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef YY_NO_UNPUT
|
||||||
|
|
||||||
static void yyunput (int c,char *buf_ptr );
|
static void yyunput (int c,char *buf_ptr );
|
||||||
|
|
||||||
|
#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
|
||||||
|
@ -733,7 +738,7 @@ extern int yylex (void);
|
||||||
|
|
||||||
/* Code executed at the end of each rule. */
|
/* Code executed at the end of each rule. */
|
||||||
#ifndef YY_BREAK
|
#ifndef YY_BREAK
|
||||||
#define YY_BREAK break;
|
#define YY_BREAK /*LINTED*/break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define YY_RULE_SETUP \
|
#define YY_RULE_SETUP \
|
||||||
|
@ -743,9 +748,9 @@ extern int yylex (void);
|
||||||
*/
|
*/
|
||||||
YY_DECL
|
YY_DECL
|
||||||
{
|
{
|
||||||
register yy_state_type yy_current_state;
|
yy_state_type yy_current_state;
|
||||||
register char *yy_cp, *yy_bp;
|
char *yy_cp, *yy_bp;
|
||||||
register int yy_act;
|
int yy_act;
|
||||||
|
|
||||||
if ( !(yy_init) )
|
if ( !(yy_init) )
|
||||||
{
|
{
|
||||||
|
@ -773,7 +778,9 @@ YY_DECL
|
||||||
yy_load_buffer_state( );
|
yy_load_buffer_state( );
|
||||||
}
|
}
|
||||||
|
|
||||||
while ( 1 ) /* loops until end-of-file is reached */
|
{
|
||||||
|
|
||||||
|
while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
|
||||||
{
|
{
|
||||||
yy_cp = (yy_c_buf_p);
|
yy_cp = (yy_c_buf_p);
|
||||||
|
|
||||||
|
@ -789,7 +796,7 @@ YY_DECL
|
||||||
yy_match:
|
yy_match:
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
|
YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
|
||||||
if ( yy_accept[yy_current_state] )
|
if ( yy_accept[yy_current_state] )
|
||||||
{
|
{
|
||||||
(yy_last_accepting_state) = yy_current_state;
|
(yy_last_accepting_state) = yy_current_state;
|
||||||
|
@ -1085,6 +1092,7 @@ case YY_STATE_EOF(INITIAL):
|
||||||
"fatal flex scanner internal error--no action found" );
|
"fatal flex scanner internal error--no action found" );
|
||||||
} /* end of action switch */
|
} /* end of action switch */
|
||||||
} /* end of scanning one token */
|
} /* end of scanning one token */
|
||||||
|
} /* end of user's declarations */
|
||||||
} /* end of yylex */
|
} /* end of yylex */
|
||||||
|
|
||||||
/* yy_get_next_buffer - try to read in a new buffer
|
/* yy_get_next_buffer - try to read in a new buffer
|
||||||
|
@ -1096,9 +1104,9 @@ case YY_STATE_EOF(INITIAL):
|
||||||
*/
|
*/
|
||||||
static int yy_get_next_buffer (void)
|
static int yy_get_next_buffer (void)
|
||||||
{
|
{
|
||||||
register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
|
char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
|
||||||
register char *source = (yytext_ptr);
|
char *source = (yytext_ptr);
|
||||||
register int number_to_move, i;
|
yy_size_t number_to_move, i;
|
||||||
int ret_val;
|
int ret_val;
|
||||||
|
|
||||||
if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
|
if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
|
||||||
|
@ -1127,7 +1135,7 @@ static int yy_get_next_buffer (void)
|
||||||
/* Try to read more data. */
|
/* Try to read more data. */
|
||||||
|
|
||||||
/* First move last chars to start of buffer. */
|
/* First move last chars to start of buffer. */
|
||||||
number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
|
number_to_move = (yy_size_t) ((yy_c_buf_p) - (yytext_ptr)) - 1;
|
||||||
|
|
||||||
for ( i = 0; i < number_to_move; ++i )
|
for ( i = 0; i < number_to_move; ++i )
|
||||||
*(dest++) = *(source++);
|
*(dest++) = *(source++);
|
||||||
|
@ -1140,21 +1148,21 @@ static int yy_get_next_buffer (void)
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
int num_to_read =
|
yy_size_t num_to_read =
|
||||||
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
|
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
|
||||||
|
|
||||||
while ( num_to_read <= 0 )
|
while ( num_to_read <= 0 )
|
||||||
{ /* Not enough room in the buffer - grow it. */
|
{ /* Not enough room in the buffer - grow it. */
|
||||||
|
|
||||||
/* just a shorter name for the current buffer */
|
/* just a shorter name for the current buffer */
|
||||||
YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
|
YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
|
||||||
|
|
||||||
int yy_c_buf_p_offset =
|
int yy_c_buf_p_offset =
|
||||||
(int) ((yy_c_buf_p) - b->yy_ch_buf);
|
(int) ((yy_c_buf_p) - b->yy_ch_buf);
|
||||||
|
|
||||||
if ( b->yy_is_our_buffer )
|
if ( b->yy_is_our_buffer )
|
||||||
{
|
{
|
||||||
int new_size = b->yy_buf_size * 2;
|
yy_size_t new_size = b->yy_buf_size * 2;
|
||||||
|
|
||||||
if ( new_size <= 0 )
|
if ( new_size <= 0 )
|
||||||
b->yy_buf_size += b->yy_buf_size / 8;
|
b->yy_buf_size += b->yy_buf_size / 8;
|
||||||
|
@ -1185,7 +1193,7 @@ static int yy_get_next_buffer (void)
|
||||||
|
|
||||||
/* Read in more data. */
|
/* Read in more data. */
|
||||||
YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
|
YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
|
||||||
(yy_n_chars), (size_t) num_to_read );
|
(yy_n_chars), num_to_read );
|
||||||
|
|
||||||
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
|
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
|
||||||
}
|
}
|
||||||
|
@ -1209,9 +1217,9 @@ static int yy_get_next_buffer (void)
|
||||||
else
|
else
|
||||||
ret_val = EOB_ACT_CONTINUE_SCAN;
|
ret_val = EOB_ACT_CONTINUE_SCAN;
|
||||||
|
|
||||||
if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
|
if ((int) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
|
||||||
/* Extend the array by 50%, plus the number we really need. */
|
/* Extend the array by 50%, plus the number we really need. */
|
||||||
yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
|
int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
|
||||||
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
|
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
|
||||||
if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
|
if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
|
||||||
YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
|
YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
|
||||||
|
@ -1230,14 +1238,14 @@ static int yy_get_next_buffer (void)
|
||||||
|
|
||||||
static yy_state_type yy_get_previous_state (void)
|
static yy_state_type yy_get_previous_state (void)
|
||||||
{
|
{
|
||||||
register yy_state_type yy_current_state;
|
yy_state_type yy_current_state;
|
||||||
register char *yy_cp;
|
char *yy_cp;
|
||||||
|
|
||||||
yy_current_state = (yy_start);
|
yy_current_state = (yy_start);
|
||||||
|
|
||||||
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 )
|
||||||
{
|
{
|
||||||
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
|
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] )
|
||||||
{
|
{
|
||||||
(yy_last_accepting_state) = yy_current_state;
|
(yy_last_accepting_state) = yy_current_state;
|
||||||
|
@ -1262,10 +1270,10 @@ static int yy_get_next_buffer (void)
|
||||||
*/
|
*/
|
||||||
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 )
|
||||||
{
|
{
|
||||||
register int yy_is_jam;
|
int yy_is_jam;
|
||||||
register char *yy_cp = (yy_c_buf_p);
|
char *yy_cp = (yy_c_buf_p);
|
||||||
|
|
||||||
register YY_CHAR yy_c = 1;
|
YY_CHAR yy_c = 1;
|
||||||
if ( yy_accept[yy_current_state] )
|
if ( yy_accept[yy_current_state] )
|
||||||
{
|
{
|
||||||
(yy_last_accepting_state) = yy_current_state;
|
(yy_last_accepting_state) = yy_current_state;
|
||||||
|
@ -1280,12 +1288,14 @@ static int yy_get_next_buffer (void)
|
||||||
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
||||||
yy_is_jam = (yy_current_state == 115);
|
yy_is_jam = (yy_current_state == 115);
|
||||||
|
|
||||||
return yy_is_jam ? 0 : yy_current_state;
|
return yy_is_jam ? 0 : yy_current_state;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void yyunput (int c, register char * yy_bp )
|
#ifndef YY_NO_UNPUT
|
||||||
|
|
||||||
|
static void yyunput (int c, char * yy_bp )
|
||||||
{
|
{
|
||||||
register char *yy_cp;
|
char *yy_cp;
|
||||||
|
|
||||||
yy_cp = (yy_c_buf_p);
|
yy_cp = (yy_c_buf_p);
|
||||||
|
|
||||||
|
@ -1295,10 +1305,10 @@ static int yy_get_next_buffer (void)
|
||||||
if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
|
if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
|
||||||
{ /* need to shift things up to make room */
|
{ /* need to shift things up to make room */
|
||||||
/* +2 for EOB chars. */
|
/* +2 for EOB chars. */
|
||||||
register int number_to_move = (yy_n_chars) + 2;
|
yy_size_t number_to_move = (yy_n_chars) + 2;
|
||||||
register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
|
char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
|
||||||
YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
|
YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
|
||||||
register char *source =
|
char *source =
|
||||||
&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
|
&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
|
||||||
|
|
||||||
while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
|
while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
|
||||||
|
@ -1320,6 +1330,8 @@ static int yy_get_next_buffer (void)
|
||||||
(yy_c_buf_p) = yy_cp;
|
(yy_c_buf_p) = yy_cp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef YY_NO_INPUT
|
#ifndef YY_NO_INPUT
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
static int yyinput (void)
|
static int yyinput (void)
|
||||||
|
@ -1344,7 +1356,7 @@ static int yy_get_next_buffer (void)
|
||||||
|
|
||||||
else
|
else
|
||||||
{ /* need more input */
|
{ /* need more input */
|
||||||
int offset = (yy_c_buf_p) - (yytext_ptr);
|
yy_size_t offset = (yy_c_buf_p) - (yytext_ptr);
|
||||||
++(yy_c_buf_p);
|
++(yy_c_buf_p);
|
||||||
|
|
||||||
switch ( yy_get_next_buffer( ) )
|
switch ( yy_get_next_buffer( ) )
|
||||||
|
@ -1469,7 +1481,7 @@ static void yy_load_buffer_state (void)
|
||||||
if ( ! b )
|
if ( ! b )
|
||||||
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
|
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
|
||||||
|
|
||||||
b->yy_buf_size = size;
|
b->yy_buf_size = (yy_size_t)size;
|
||||||
|
|
||||||
/* yy_ch_buf has to be 2 characters longer than the size given because
|
/* yy_ch_buf has to be 2 characters longer than the size given because
|
||||||
* we need to put in 2 end-of-buffer characters.
|
* we need to put in 2 end-of-buffer characters.
|
||||||
|
@ -1504,10 +1516,6 @@ static void yy_load_buffer_state (void)
|
||||||
yyfree((void *) b );
|
yyfree((void *) b );
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef __cplusplus
|
|
||||||
extern int isatty (int );
|
|
||||||
#endif /* __cplusplus */
|
|
||||||
|
|
||||||
/* 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.
|
||||||
|
@ -1620,7 +1628,7 @@ void yypop_buffer_state (void)
|
||||||
*/
|
*/
|
||||||
static void yyensure_buffer_stack (void)
|
static void yyensure_buffer_stack (void)
|
||||||
{
|
{
|
||||||
int num_to_alloc;
|
yy_size_t num_to_alloc;
|
||||||
|
|
||||||
if (!(yy_buffer_stack)) {
|
if (!(yy_buffer_stack)) {
|
||||||
|
|
||||||
|
@ -1628,7 +1636,7 @@ static void yyensure_buffer_stack (void)
|
||||||
* scanner will even need a stack. We use 2 instead of 1 to avoid an
|
* scanner will even need a stack. We use 2 instead of 1 to avoid an
|
||||||
* immediate realloc on the next call.
|
* immediate realloc on the next call.
|
||||||
*/
|
*/
|
||||||
num_to_alloc = 1;
|
num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
|
||||||
(yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
|
(yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
|
||||||
(num_to_alloc * sizeof(struct yy_buffer_state*)
|
(num_to_alloc * sizeof(struct yy_buffer_state*)
|
||||||
);
|
);
|
||||||
|
@ -1645,7 +1653,7 @@ static void yyensure_buffer_stack (void)
|
||||||
if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
|
if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
|
||||||
|
|
||||||
/* Increase the buffer to prepare for a possible push. */
|
/* Increase the buffer to prepare for a possible push. */
|
||||||
int grow_size = 8 /* arbitrary grow size */;
|
yy_size_t grow_size = 8 /* arbitrary grow size */;
|
||||||
|
|
||||||
num_to_alloc = (yy_buffer_stack_max) + grow_size;
|
num_to_alloc = (yy_buffer_stack_max) + grow_size;
|
||||||
(yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
|
(yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
|
||||||
|
@ -1717,12 +1725,12 @@ YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
|
||||||
*
|
*
|
||||||
* @return the newly allocated buffer state object.
|
* @return the newly allocated buffer state object.
|
||||||
*/
|
*/
|
||||||
YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len )
|
YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len )
|
||||||
{
|
{
|
||||||
YY_BUFFER_STATE b;
|
YY_BUFFER_STATE b;
|
||||||
char *buf;
|
char *buf;
|
||||||
yy_size_t n;
|
yy_size_t n;
|
||||||
int i;
|
yy_size_t i;
|
||||||
|
|
||||||
/* Get memory for full buffer, including space for trailing EOB's. */
|
/* Get memory for full buffer, including space for trailing EOB's. */
|
||||||
n = _yybytes_len + 2;
|
n = _yybytes_len + 2;
|
||||||
|
@ -1753,7 +1761,7 @@ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len )
|
||||||
|
|
||||||
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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1804,7 +1812,7 @@ FILE *yyget_out (void)
|
||||||
/** Get the length of the current token.
|
/** Get the length of the current token.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
int yyget_leng (void)
|
yy_size_t yyget_leng (void)
|
||||||
{
|
{
|
||||||
return yyleng;
|
return yyleng;
|
||||||
}
|
}
|
||||||
|
@ -1819,29 +1827,29 @@ char *yyget_text (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Set the current line number.
|
/** Set the current line number.
|
||||||
* @param line_number
|
* @param _line_number line number
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void yyset_lineno (int line_number )
|
void yyset_lineno (int _line_number )
|
||||||
{
|
{
|
||||||
|
|
||||||
yylineno = line_number;
|
yylineno = _line_number;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Set the input stream. This does not discard the current
|
/** Set the input stream. This does not discard the current
|
||||||
* input buffer.
|
* input buffer.
|
||||||
* @param in_str A readable stream.
|
* @param _in_str A readable stream.
|
||||||
*
|
*
|
||||||
* @see yy_switch_to_buffer
|
* @see yy_switch_to_buffer
|
||||||
*/
|
*/
|
||||||
void yyset_in (FILE * in_str )
|
void yyset_in (FILE * _in_str )
|
||||||
{
|
{
|
||||||
yyin = in_str ;
|
yyin = _in_str ;
|
||||||
}
|
}
|
||||||
|
|
||||||
void yyset_out (FILE * out_str )
|
void yyset_out (FILE * _out_str )
|
||||||
{
|
{
|
||||||
yyout = out_str ;
|
yyout = _out_str ;
|
||||||
}
|
}
|
||||||
|
|
||||||
int yyget_debug (void)
|
int yyget_debug (void)
|
||||||
|
@ -1849,9 +1857,9 @@ int yyget_debug (void)
|
||||||
return yy_flex_debug;
|
return yy_flex_debug;
|
||||||
}
|
}
|
||||||
|
|
||||||
void yyset_debug (int bdebug )
|
void yyset_debug (int _bdebug )
|
||||||
{
|
{
|
||||||
yy_flex_debug = bdebug ;
|
yy_flex_debug = _bdebug ;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int yy_init_globals (void)
|
static int yy_init_globals (void)
|
||||||
|
@ -1911,7 +1919,8 @@ int yylex_destroy (void)
|
||||||
#ifndef yytext_ptr
|
#ifndef yytext_ptr
|
||||||
static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
|
static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
|
||||||
{
|
{
|
||||||
register int i;
|
|
||||||
|
int i;
|
||||||
for ( i = 0; i < n; ++i )
|
for ( i = 0; i < n; ++i )
|
||||||
s1[i] = s2[i];
|
s1[i] = s2[i];
|
||||||
}
|
}
|
||||||
|
@ -1920,7 +1929,7 @@ static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
|
||||||
#ifdef YY_NEED_STRLEN
|
#ifdef YY_NEED_STRLEN
|
||||||
static int yy_flex_strlen (yyconst char * s )
|
static int yy_flex_strlen (yyconst char * s )
|
||||||
{
|
{
|
||||||
register int n;
|
int n;
|
||||||
for ( n = 0; s[n]; ++n )
|
for ( n = 0; s[n]; ++n )
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -1930,11 +1939,12 @@ static int yy_flex_strlen (yyconst char * s )
|
||||||
|
|
||||||
void *yyalloc (yy_size_t size )
|
void *yyalloc (yy_size_t size )
|
||||||
{
|
{
|
||||||
return (void *) malloc( size );
|
return (void *) malloc( size );
|
||||||
}
|
}
|
||||||
|
|
||||||
void *yyrealloc (void * ptr, yy_size_t size )
|
void *yyrealloc (void * ptr, yy_size_t size )
|
||||||
{
|
{
|
||||||
|
|
||||||
/* The cast to (char *) in the following accommodates both
|
/* The cast to (char *) in the following accommodates both
|
||||||
* implementations that use char* generic pointers, and those
|
* implementations that use char* generic pointers, and those
|
||||||
* that use void* generic pointers. It works with the latter
|
* that use void* generic pointers. It works with the latter
|
||||||
|
@ -1947,7 +1957,8 @@ void *yyrealloc (void * ptr, yy_size_t size )
|
||||||
|
|
||||||
void yyfree (void * ptr )
|
void yyfree (void * ptr )
|
||||||
{
|
{
|
||||||
free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
|
free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
|
||||||
}
|
}
|
||||||
|
|
||||||
#define YYTABLES_NAME "yytables"
|
#define YYTABLES_NAME "yytables"
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* sconfig, coreboot device tree compiler
|
* sconfig, coreboot device tree compiler
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010 coresystems GmbH
|
* Copyright (C) 2010 coresystems GmbH
|
||||||
* written by Patrick Georgi <patrick.georgi@coresystems.de>
|
* written by Patrick Georgi <patrick@georgi-clan.de>
|
||||||
*
|
*
|
||||||
* 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
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* sconfig, coreboot device tree compiler
|
* sconfig, coreboot device tree compiler
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010 coresystems GmbH
|
* Copyright (C) 2010 coresystems GmbH
|
||||||
* written by Patrick Georgi <patrick.georgi@coresystems.de>
|
* written by Patrick Georgi <patrick@georgi-clan.de>
|
||||||
*
|
*
|
||||||
* 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
|
||||||
|
@ -96,3 +96,6 @@ void alias_siblings(struct device *d);
|
||||||
void add_resource(struct device *dev, int type, int index, int base);
|
void add_resource(struct device *dev, int type, int index, int base);
|
||||||
void add_register(struct device *dev, char *name, char *val);
|
void add_register(struct device *dev, char *name, char *val);
|
||||||
void add_pci_subsystem_ids(struct device *dev, int vendor, int device, int inherit);
|
void add_pci_subsystem_ids(struct device *dev, int vendor, int device, int inherit);
|
||||||
|
void add_ioapic_info(struct device *dev, int apicid, const char *_srcpin, int irqpin);
|
||||||
|
|
||||||
|
void yyrestart(FILE *input_file);
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* sconfig, coreboot device tree compiler
|
* sconfig, coreboot device tree compiler
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010 coresystems GmbH
|
* Copyright (C) 2010 coresystems GmbH
|
||||||
* written by Patrick Georgi <patrick.georgi@coresystems.de>
|
* written by Patrick Georgi <patrick@georgi-clan.de>
|
||||||
*
|
*
|
||||||
* 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
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,8 +1,8 @@
|
||||||
/* A Bison parser, made by GNU Bison 2.5. */
|
/* A Bison parser, made by GNU Bison 3.0.4. */
|
||||||
|
|
||||||
/* Bison interface for Yacc-like parsers in C
|
/* Bison interface for Yacc-like parsers in C
|
||||||
|
|
||||||
Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc.
|
Copyright (C) 1984, 1989-1990, 2000-2015 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
|
||||||
|
@ -30,46 +30,54 @@
|
||||||
This special exception was added by the Free Software Foundation in
|
This special exception was added by the Free Software Foundation in
|
||||||
version 2.2 of Bison. */
|
version 2.2 of Bison. */
|
||||||
|
|
||||||
|
#ifndef YY_YY_SCONFIG_TAB_H_SHIPPED_INCLUDED
|
||||||
/* Tokens. */
|
# define YY_YY_SCONFIG_TAB_H_SHIPPED_INCLUDED
|
||||||
#ifndef YYTOKENTYPE
|
/* Debug traces. */
|
||||||
# define YYTOKENTYPE
|
#ifndef YYDEBUG
|
||||||
/* Put the tokens into the symbol table, so that GDB and other debuggers
|
# define YYDEBUG 0
|
||||||
know about them. */
|
#endif
|
||||||
enum yytokentype {
|
#if YYDEBUG
|
||||||
CHIP = 258,
|
extern int yydebug;
|
||||||
DEVICE = 259,
|
|
||||||
REGISTER = 260,
|
|
||||||
BOOL = 261,
|
|
||||||
BUS = 262,
|
|
||||||
RESOURCE = 263,
|
|
||||||
END = 264,
|
|
||||||
EQUALS = 265,
|
|
||||||
HEX = 266,
|
|
||||||
STRING = 267,
|
|
||||||
PCI = 268,
|
|
||||||
PNP = 269,
|
|
||||||
I2C = 270,
|
|
||||||
APIC = 271,
|
|
||||||
CPU_CLUSTER = 272,
|
|
||||||
CPU = 273,
|
|
||||||
DOMAIN = 274,
|
|
||||||
IRQ = 275,
|
|
||||||
DRQ = 276,
|
|
||||||
IO = 277,
|
|
||||||
NUMBER = 278,
|
|
||||||
SUBSYSTEMID = 279,
|
|
||||||
INHERIT = 280,
|
|
||||||
IOAPIC_IRQ = 281,
|
|
||||||
IOAPIC = 282,
|
|
||||||
PCIINT = 283
|
|
||||||
};
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Token type. */
|
||||||
|
#ifndef YYTOKENTYPE
|
||||||
|
# define YYTOKENTYPE
|
||||||
|
enum yytokentype
|
||||||
|
{
|
||||||
|
CHIP = 258,
|
||||||
|
DEVICE = 259,
|
||||||
|
REGISTER = 260,
|
||||||
|
BOOL = 261,
|
||||||
|
BUS = 262,
|
||||||
|
RESOURCE = 263,
|
||||||
|
END = 264,
|
||||||
|
EQUALS = 265,
|
||||||
|
HEX = 266,
|
||||||
|
STRING = 267,
|
||||||
|
PCI = 268,
|
||||||
|
PNP = 269,
|
||||||
|
I2C = 270,
|
||||||
|
APIC = 271,
|
||||||
|
CPU_CLUSTER = 272,
|
||||||
|
CPU = 273,
|
||||||
|
DOMAIN = 274,
|
||||||
|
IRQ = 275,
|
||||||
|
DRQ = 276,
|
||||||
|
IO = 277,
|
||||||
|
NUMBER = 278,
|
||||||
|
SUBSYSTEMID = 279,
|
||||||
|
INHERIT = 280,
|
||||||
|
IOAPIC_IRQ = 281,
|
||||||
|
IOAPIC = 282,
|
||||||
|
PCIINT = 283
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Value type. */
|
||||||
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
||||||
typedef union YYSTYPE
|
|
||||||
|
union YYSTYPE
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
@ -78,11 +86,16 @@ typedef union YYSTYPE
|
||||||
int number;
|
int number;
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
} YYSTYPE;
|
typedef union YYSTYPE YYSTYPE;
|
||||||
# define YYSTYPE_IS_TRIVIAL 1
|
# define YYSTYPE_IS_TRIVIAL 1
|
||||||
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
|
||||||
# define YYSTYPE_IS_DECLARED 1
|
# define YYSTYPE_IS_DECLARED 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
extern YYSTYPE yylval;
|
extern YYSTYPE yylval;
|
||||||
|
|
||||||
|
int yyparse (void);
|
||||||
|
|
||||||
|
#endif /* !YY_YY_SCONFIG_TAB_H_SHIPPED_INCLUDED */
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* sconfig, coreboot device tree compiler
|
* sconfig, coreboot device tree compiler
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010 coresystems GmbH
|
* Copyright (C) 2010 coresystems GmbH
|
||||||
* written by Patrick Georgi <patrick.georgi@coresystems.de>
|
* written by Patrick Georgi <patrick@georgi-clan.de>
|
||||||
*
|
*
|
||||||
* 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
|
||||||
|
@ -17,6 +17,9 @@
|
||||||
|
|
||||||
#include "sconfig.h"
|
#include "sconfig.h"
|
||||||
|
|
||||||
|
int yylex();
|
||||||
|
void yyerror(const char *s);
|
||||||
|
|
||||||
static struct device *cur_parent, *cur_bus;
|
static struct device *cur_parent, *cur_bus;
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
Loading…
Reference in New Issue