Skip to content

Commit 99dc2c8

Browse files
committed
Run flex and bison again
1 parent cf8e300 commit 99dc2c8

File tree

4 files changed

+48
-45
lines changed

4 files changed

+48
-45
lines changed

Src/amrexpr_parser.lex.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
269269

270270
/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
271-
* if you want the limit (max/min) macros for int types.
271+
* if you want the limit (max/min) macros for int types.
272272
*/
273273
#ifndef __STDC_LIMIT_MACROS
274274
#define __STDC_LIMIT_MACROS 1
@@ -285,7 +285,7 @@ typedef uint32_t flex_uint32_t;
285285
typedef signed char flex_int8_t;
286286
typedef short int flex_int16_t;
287287
typedef int flex_int32_t;
288-
typedef unsigned char flex_uint8_t;
288+
typedef unsigned char flex_uint8_t;
289289
typedef unsigned short int flex_uint16_t;
290290
typedef unsigned int flex_uint32_t;
291291

Src/amrexpr_parser.lex.nolint.H

Lines changed: 41 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@
290290
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
291291

292292
/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
293-
* if you want the limit (max/min) macros for int types.
293+
* if you want the limit (max/min) macros for int types.
294294
*/
295295
#ifndef __STDC_LIMIT_MACROS
296296
#define __STDC_LIMIT_MACROS 1
@@ -307,7 +307,7 @@ typedef uint32_t flex_uint32_t;
307307
typedef signed char flex_int8_t;
308308
typedef short int flex_int16_t;
309309
typedef int flex_int32_t;
310-
typedef unsigned char flex_uint8_t;
310+
typedef unsigned char flex_uint8_t;
311311
typedef unsigned short int flex_uint16_t;
312312
typedef unsigned int flex_uint32_t;
313313

@@ -418,10 +418,10 @@ extern FILE *yyin, *yyout;
418418
#define EOB_ACT_CONTINUE_SCAN 0
419419
#define EOB_ACT_END_OF_FILE 1
420420
#define EOB_ACT_LAST_MATCH 2
421-
421+
422422
#define YY_LESS_LINENO(n)
423423
#define YY_LINENO_REWIND_TO(ptr)
424-
424+
425425
/* Return all but the first "n" matched characters back to the input stream. */
426426
#define yyless(n) \
427427
do \
@@ -862,7 +862,7 @@ extern int yywrap ( void );
862862
#endif
863863

864864
#ifndef YY_NO_UNPUT
865-
865+
866866
#endif
867867

868868
#ifndef yytext_ptr
@@ -989,7 +989,7 @@ YY_DECL
989989
yy_state_type yy_current_state;
990990
char *yy_cp, *yy_bp;
991991
int yy_act;
992-
992+
993993
if ( !(yy_init) )
994994
{
995995
(yy_init) = 1;
@@ -1563,7 +1563,7 @@ static int yy_get_next_buffer (void)
15631563
{
15641564
yy_state_type yy_current_state;
15651565
char *yy_cp;
1566-
1566+
15671567
yy_current_state = (yy_start);
15681568

15691569
for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
@@ -1627,7 +1627,7 @@ static int yy_get_next_buffer (void)
16271627

16281628
{
16291629
int c;
1630-
1630+
16311631
*(yy_c_buf_p) = (yy_hold_char);
16321632

16331633
if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
@@ -1694,12 +1694,12 @@ static int yy_get_next_buffer (void)
16941694

16951695
/** Immediately switch to a different input stream.
16961696
* @param input_file A readable stream.
1697-
*
1697+
*
16981698
* @note This function does not reset the start condition to @c INITIAL .
16991699
*/
17001700
void yyrestart (FILE * input_file )
17011701
{
1702-
1702+
17031703
if ( ! YY_CURRENT_BUFFER ){
17041704
yyensure_buffer_stack ();
17051705
YY_CURRENT_BUFFER_LVALUE =
@@ -1712,11 +1712,11 @@ static int yy_get_next_buffer (void)
17121712

17131713
/** Switch to a different input buffer.
17141714
* @param new_buffer The new input buffer.
1715-
*
1715+
*
17161716
*/
17171717
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
17181718
{
1719-
1719+
17201720
/* TODO. We should be able to replace this entire function body
17211721
* with
17221722
* yypop_buffer_state();
@@ -1756,13 +1756,13 @@ static void yy_load_buffer_state (void)
17561756
/** Allocate and initialize an input buffer state.
17571757
* @param file A readable stream.
17581758
* @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
1759-
*
1759+
*
17601760
* @return the allocated buffer state.
17611761
*/
17621762
YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
17631763
{
17641764
YY_BUFFER_STATE b;
1765-
1765+
17661766
b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
17671767
if ( ! b )
17681768
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
@@ -1785,11 +1785,11 @@ static void yy_load_buffer_state (void)
17851785

17861786
/** Destroy the buffer.
17871787
* @param b a buffer created with yy_create_buffer()
1788-
*
1788+
*
17891789
*/
17901790
void yy_delete_buffer (YY_BUFFER_STATE b )
17911791
{
1792-
1792+
17931793
if ( ! b )
17941794
return;
17951795

@@ -1810,7 +1810,7 @@ static void yy_load_buffer_state (void)
18101810

18111811
{
18121812
int oerrno = errno;
1813-
1813+
18141814
yy_flush_buffer( b );
18151815

18161816
b->yy_input_file = file;
@@ -1826,13 +1826,13 @@ static void yy_load_buffer_state (void)
18261826
}
18271827

18281828
b->yy_is_interactive = 0;
1829-
1829+
18301830
errno = oerrno;
18311831
}
18321832

18331833
/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
18341834
* @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
1835-
*
1835+
*
18361836
*/
18371837
void yy_flush_buffer (YY_BUFFER_STATE b )
18381838
{
@@ -1861,7 +1861,7 @@ static void yy_load_buffer_state (void)
18611861
* the current state. This function will allocate the stack
18621862
* if necessary.
18631863
* @param new_buffer The new state.
1864-
*
1864+
*
18651865
*/
18661866
void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
18671867
{
@@ -1891,7 +1891,7 @@ void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
18911891

18921892
/** Removes and deletes the top of the stack, if present.
18931893
* The next element becomes the new top.
1894-
*
1894+
*
18951895
*/
18961896
void yypop_buffer_state (void)
18971897
{
@@ -1915,7 +1915,7 @@ void yypop_buffer_state (void)
19151915
static void yyensure_buffer_stack (void)
19161916
{
19171917
yy_size_t num_to_alloc;
1918-
1918+
19191919
if (!(yy_buffer_stack)) {
19201920

19211921
/* First allocation is just for 2 elements, since we don't know if this
@@ -1958,13 +1958,13 @@ static void yyensure_buffer_stack (void)
19581958
/** Setup the input buffer state to scan directly from a user-specified character buffer.
19591959
* @param base the character buffer
19601960
* @param size the size in bytes of the character buffer
1961-
*
1961+
*
19621962
* @return the newly allocated buffer state object.
19631963
*/
19641964
YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
19651965
{
19661966
YY_BUFFER_STATE b;
1967-
1967+
19681968
if ( size < 2 ||
19691969
base[size-2] != YY_END_OF_BUFFER_CHAR ||
19701970
base[size-1] != YY_END_OF_BUFFER_CHAR )
@@ -1993,22 +1993,22 @@ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
19931993
/** Setup the input buffer state to scan a string. The next call to yylex() will
19941994
* scan from a @e copy of @a str.
19951995
* @param yystr a NUL-terminated string to scan
1996-
*
1996+
*
19971997
* @return the newly allocated buffer state object.
19981998
* @note If you want to scan bytes that may contain NUL values, then use
19991999
* yy_scan_bytes() instead.
20002000
*/
20012001
YY_BUFFER_STATE yy_scan_string (const char * yystr )
20022002
{
2003-
2003+
20042004
return yy_scan_bytes( yystr, (int) strlen(yystr) );
20052005
}
20062006

20072007
/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
20082008
* scan from a @e copy of @a bytes.
20092009
* @param yybytes the byte buffer to scan
20102010
* @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
2011-
*
2011+
*
20122012
* @return the newly allocated buffer state object.
20132013
*/
20142014
YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len )
@@ -2017,7 +2017,7 @@ YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len )
20172017
char *buf;
20182018
yy_size_t n;
20192019
int i;
2020-
2020+
20212021
/* Get memory for full buffer, including space for trailing EOB's. */
20222022
n = (yy_size_t) (_yybytes_len + 2);
20232023
buf = (char *) yyalloc( n );
@@ -2071,40 +2071,40 @@ static void yynoreturn yy_fatal_error (const char* msg )
20712071
/* Accessor methods (get/set functions) to struct members. */
20722072

20732073
/** Get the current line number.
2074-
*
2074+
*
20752075
*/
20762076
int yyget_lineno (void)
20772077
{
2078-
2078+
20792079
return yylineno;
20802080
}
20812081

20822082
/** Get the input stream.
2083-
*
2083+
*
20842084
*/
20852085
FILE *yyget_in (void)
20862086
{
20872087
return yyin;
20882088
}
20892089

20902090
/** Get the output stream.
2091-
*
2091+
*
20922092
*/
20932093
FILE *yyget_out (void)
20942094
{
20952095
return yyout;
20962096
}
20972097

20982098
/** Get the length of the current token.
2099-
*
2099+
*
21002100
*/
21012101
int yyget_leng (void)
21022102
{
21032103
return yyleng;
21042104
}
21052105

21062106
/** Get the current token.
2107-
*
2107+
*
21082108
*/
21092109

21102110
char *yyget_text (void)
@@ -2114,18 +2114,18 @@ char *yyget_text (void)
21142114

21152115
/** Set the current line number.
21162116
* @param _line_number line number
2117-
*
2117+
*
21182118
*/
21192119
void yyset_lineno (int _line_number )
21202120
{
2121-
2121+
21222122
yylineno = _line_number;
21232123
}
21242124

21252125
/** Set the input stream. This does not discard the current
21262126
* input buffer.
21272127
* @param _in_str A readable stream.
2128-
*
2128+
*
21292129
* @see yy_switch_to_buffer
21302130
*/
21312131
void yyset_in (FILE * _in_str )
@@ -2179,7 +2179,7 @@ static int yy_init_globals (void)
21792179
/* yylex_destroy is for both reentrant and non-reentrant scanners. */
21802180
int yylex_destroy (void)
21812181
{
2182-
2182+
21832183
/* Pop the buffer stack, destroying each element. */
21842184
while(YY_CURRENT_BUFFER){
21852185
yy_delete_buffer( YY_CURRENT_BUFFER );
@@ -2205,7 +2205,7 @@ int yylex_destroy (void)
22052205
#ifndef yytext_ptr
22062206
static void yy_flex_strncpy (char* s1, const char * s2, int n )
22072207
{
2208-
2208+
22092209
int i;
22102210
for ( i = 0; i < n; ++i )
22112211
s1[i] = s2[i];
@@ -2230,7 +2230,7 @@ void *yyalloc (yy_size_t size )
22302230

22312231
void *yyrealloc (void * ptr, yy_size_t size )
22322232
{
2233-
2233+
22342234
/* The cast to (char *) in the following accommodates both
22352235
* implementations that use char* generic pointers, and those
22362236
* that use void* generic pointers. It works with the latter
@@ -2247,3 +2247,4 @@ void yyfree (void * ptr )
22472247
}
22482248

22492249
#define YYTABLES_NAME "yytables"
2250+

Src/amrexpr_parser.tab.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ extern int amrexpr_parserdebug;
5959
enum amrexpr_parsertokentype
6060
{
6161
AMREXPR_PARSEREMPTY = -2,
62-
AMREXPR_PARSEREOF = 0, /* "end of file" */
63-
AMREXPR_PARSERerror = 256, /* error */
64-
AMREXPR_PARSERUNDEF = 257, /* "invalid token" */
62+
AMREXPR_PARSEREOF = 0, /* "end of file" */
63+
AMREXPR_PARSERerror = 256, /* error */
64+
AMREXPR_PARSERUNDEF = 257, /* "invalid token" */
6565
NODE = 258, /* NODE */
6666
NUMBER = 259, /* NUMBER */
6767
SYMBOL = 260, /* SYMBOL */

Src/amrexpr_parser.tab.nolint.H

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,3 +1468,5 @@ yyreturnlab:
14681468

14691469
return yyresult;
14701470
}
1471+
1472+

0 commit comments

Comments
 (0)