debuggers.hg

changeset 22780:1434b8515233

libxl: config parser: rerun flex (Debian lenny 2.5.35)

We are going to need to rerun flex to generate new lexer code. So
rerun it now to separate out the irrelevant from the relevant changes
to the generated files.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Ian Jackson <Ian.Jackson@eu.citrix.com>
date Tue Jan 11 19:30:16 2011 +0000 (2011-01-11)
parents 0b04aea87667
children cb94dbe20f97
files tools/libxl/libxlu_cfg_l.c tools/libxl/libxlu_cfg_l.h
line diff
     1.1 --- a/tools/libxl/libxlu_cfg_l.c	Tue Jan 11 19:29:05 2011 +0000
     1.2 +++ b/tools/libxl/libxlu_cfg_l.c	Tue Jan 11 19:30:16 2011 +0000
     1.3 @@ -54,7 +54,6 @@ typedef int flex_int32_t;
     1.4  typedef unsigned char flex_uint8_t; 
     1.5  typedef unsigned short int flex_uint16_t;
     1.6  typedef unsigned int flex_uint32_t;
     1.7 -#endif /* ! C99 */
     1.8  
     1.9  /* Limits of integral types. */
    1.10  #ifndef INT8_MIN
    1.11 @@ -85,6 +84,8 @@ typedef unsigned int flex_uint32_t;
    1.12  #define UINT32_MAX             (4294967295U)
    1.13  #endif
    1.14  
    1.15 +#endif /* ! C99 */
    1.16 +
    1.17  #endif /* ! FLEXINT_H */
    1.18  
    1.19  #ifdef __cplusplus
    1.20 @@ -158,7 +159,15 @@ typedef void* yyscan_t;
    1.21  
    1.22  /* Size of default input buffer. */
    1.23  #ifndef YY_BUF_SIZE
    1.24 +#ifdef __ia64__
    1.25 +/* On IA-64, the buffer size is 16k, not 8k.
    1.26 + * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
    1.27 + * Ditto for the __ia64__ case accordingly.
    1.28 + */
    1.29 +#define YY_BUF_SIZE 32768
    1.30 +#else
    1.31  #define YY_BUF_SIZE 16384
    1.32 +#endif /* __ia64__ */
    1.33  #endif
    1.34  
    1.35  /* The state buf must be large enough to hold one state per character in the main buffer.
    1.36 @@ -487,7 +496,7 @@ int xlu__cfg_yyget_column(yyscan_t yysca
    1.37  void xlu__cfg_yyset_column(int  column_no, yyscan_t yyscanner);
    1.38  
    1.39  
    1.40 -#line 491 "libxlu_cfg_l.c"
    1.41 +#line 500 "libxlu_cfg_l.c"
    1.42  
    1.43  #define INITIAL 0
    1.44  #define lexerr 1
    1.45 @@ -623,7 +632,12 @@ static int input (yyscan_t yyscanner );
    1.46  
    1.47  /* Amount of stuff to slurp up with each read. */
    1.48  #ifndef YY_READ_BUF_SIZE
    1.49 +#ifdef __ia64__
    1.50 +/* On IA-64, the buffer size is 16k, not 8k */
    1.51 +#define YY_READ_BUF_SIZE 16384
    1.52 +#else
    1.53  #define YY_READ_BUF_SIZE 8192
    1.54 +#endif /* __ia64__ */
    1.55  #endif
    1.56  
    1.57  /* Copy whatever the last rule matched to the standard output. */
    1.58 @@ -631,7 +645,7 @@ static int input (yyscan_t yyscanner );
    1.59  /* This used to be an fputs(), but since the string might contain NUL's,
    1.60   * we now use fwrite().
    1.61   */
    1.62 -#define ECHO fwrite( yytext, yyleng, 1, yyout )
    1.63 +#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
    1.64  #endif
    1.65  
    1.66  /* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
    1.67 @@ -642,7 +656,7 @@ static int input (yyscan_t yyscanner );
    1.68  	if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
    1.69  		{ \
    1.70  		int c = '*'; \
    1.71 -		int n; \
    1.72 +		size_t n; \
    1.73  		for ( n = 0; n < max_size && \
    1.74  			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
    1.75  			buf[n] = (char) c; \
    1.76 @@ -730,7 +744,7 @@ YY_DECL
    1.77  #line 37 "libxlu_cfg_l.l"
    1.78  
    1.79  
    1.80 -#line 734 "libxlu_cfg_l.c"
    1.81 +#line 748 "libxlu_cfg_l.c"
    1.82  
    1.83      yylval = yylval_param;
    1.84  
    1.85 @@ -930,7 +944,7 @@ YY_RULE_SETUP
    1.86  #line 82 "libxlu_cfg_l.l"
    1.87  YY_FATAL_ERROR( "flex scanner jammed" );
    1.88  	YY_BREAK
    1.89 -#line 934 "libxlu_cfg_l.c"
    1.90 +#line 948 "libxlu_cfg_l.c"
    1.91  case YY_STATE_EOF(INITIAL):
    1.92  case YY_STATE_EOF(lexerr):
    1.93  	yyterminate();
    1.94 @@ -1673,8 +1687,8 @@ YY_BUFFER_STATE xlu__cfg_yy_scan_string 
    1.95  
    1.96  /** Setup the input buffer state to scan the given bytes. The next call to xlu__cfg_yylex() will
    1.97   * scan from a @e copy of @a bytes.
    1.98 - * @param bytes the byte buffer to scan
    1.99 - * @param len the number of bytes in the buffer pointed to by @a bytes.
   1.100 + * @param yybytes the byte buffer to scan
   1.101 + * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
   1.102   * @param yyscanner The scanner object.
   1.103   * @return the newly allocated buffer state object.
   1.104   */
     2.1 --- a/tools/libxl/libxlu_cfg_l.h	Tue Jan 11 19:29:05 2011 +0000
     2.2 +++ b/tools/libxl/libxlu_cfg_l.h	Tue Jan 11 19:30:16 2011 +0000
     2.3 @@ -58,7 +58,6 @@ typedef int flex_int32_t;
     2.4  typedef unsigned char flex_uint8_t; 
     2.5  typedef unsigned short int flex_uint16_t;
     2.6  typedef unsigned int flex_uint32_t;
     2.7 -#endif /* ! C99 */
     2.8  
     2.9  /* Limits of integral types. */
    2.10  #ifndef INT8_MIN
    2.11 @@ -89,6 +88,8 @@ typedef unsigned int flex_uint32_t;
    2.12  #define UINT32_MAX             (4294967295U)
    2.13  #endif
    2.14  
    2.15 +#endif /* ! C99 */
    2.16 +
    2.17  #endif /* ! FLEXINT_H */
    2.18  
    2.19  #ifdef __cplusplus
    2.20 @@ -131,7 +132,15 @@ typedef void* yyscan_t;
    2.21  
    2.22  /* Size of default input buffer. */
    2.23  #ifndef YY_BUF_SIZE
    2.24 +#ifdef __ia64__
    2.25 +/* On IA-64, the buffer size is 16k, not 8k.
    2.26 + * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
    2.27 + * Ditto for the __ia64__ case accordingly.
    2.28 + */
    2.29 +#define YY_BUF_SIZE 32768
    2.30 +#else
    2.31  #define YY_BUF_SIZE 16384
    2.32 +#endif /* __ia64__ */
    2.33  #endif
    2.34  
    2.35  #ifndef YY_TYPEDEF_YY_BUFFER_STATE
    2.36 @@ -301,7 +310,12 @@ static int yy_flex_strlen (yyconst char 
    2.37  
    2.38  /* Amount of stuff to slurp up with each read. */
    2.39  #ifndef YY_READ_BUF_SIZE
    2.40 +#ifdef __ia64__
    2.41 +/* On IA-64, the buffer size is 16k, not 8k */
    2.42 +#define YY_READ_BUF_SIZE 16384
    2.43 +#else
    2.44  #define YY_READ_BUF_SIZE 8192
    2.45 +#endif /* __ia64__ */
    2.46  #endif
    2.47  
    2.48  /* Number of entries by which start-condition stack grows. */
    2.49 @@ -338,6 +352,6 @@ extern int xlu__cfg_yylex \
    2.50  
    2.51  #line 82 "libxlu_cfg_l.l"
    2.52  
    2.53 -#line 342 "libxlu_cfg_l.h"
    2.54 +#line 356 "libxlu_cfg_l.h"
    2.55  #undef xlu__cfg_yyIN_HEADER
    2.56  #endif /* xlu__cfg_yyHEADER_H */