未验证 提交 0318c8ac 编写于 作者: 羽飞's avatar 羽飞 提交者: GitHub

format lex file (#67)

format lex file
上级 84b9b420
此差异已折叠。
......@@ -33,7 +33,7 @@
/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
* if you want the limit (max/min) macros for int types.
......@@ -64,10 +64,10 @@ typedef unsigned int flex_uint32_t;
#define INT8_MIN (-128)
#endif
#ifndef INT16_MIN
#define INT16_MIN (-32767 - 1)
#define INT16_MIN (-32767-1)
#endif
#ifndef INT32_MIN
#define INT32_MIN (-2147483647 - 1)
#define INT32_MIN (-2147483647-1)
#endif
#ifndef INT8_MAX
#define INT8_MAX (127)
......@@ -98,7 +98,7 @@ typedef unsigned int flex_uint32_t;
#else /* ! __cplusplus */
/* C99 requires __STDC__ to be defined as 1. */
#if defined(__STDC__)
#if defined (__STDC__)
#define YY_USE_CONST
......@@ -114,7 +114,7 @@ typedef unsigned int flex_uint32_t;
/* An opaque pointer. */
#ifndef YY_TYPEDEF_YY_SCANNER_T
#define YY_TYPEDEF_YY_SCANNER_T
typedef void *yyscan_t;
typedef void* yyscan_t;
#endif
/* For convenience, these vars (plus the bison vars far below)
......@@ -145,7 +145,8 @@ typedef size_t yy_size_t;
#ifndef YY_STRUCT_YY_BUFFER_STATE
#define YY_STRUCT_YY_BUFFER_STATE
struct yy_buffer_state {
struct yy_buffer_state
{
FILE *yy_input_file;
char *yy_ch_buf; /* input buffer */
......@@ -189,24 +190,25 @@ struct yy_buffer_state {
int yy_fill_buffer;
int yy_buffer_status;
};
};
#endif /* !YY_STRUCT_YY_BUFFER_STATE */
void yyrestart(FILE *input_file, yyscan_t yyscanner);
void yy_switch_to_buffer(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner);
YY_BUFFER_STATE yy_create_buffer(FILE *file, int size, yyscan_t yyscanner);
void yy_delete_buffer(YY_BUFFER_STATE b, yyscan_t yyscanner);
void yy_flush_buffer(YY_BUFFER_STATE b, yyscan_t yyscanner);
void yypush_buffer_state(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner);
void yypop_buffer_state(yyscan_t yyscanner);
void yyrestart (FILE *input_file ,yyscan_t yyscanner );
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
void yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
void yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
void yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
void yypop_buffer_state (yyscan_t yyscanner );
YY_BUFFER_STATE yy_scan_buffer(char *base, yy_size_t size, yyscan_t yyscanner);
YY_BUFFER_STATE yy_scan_string(yyconst char *yy_str, yyscan_t yyscanner);
YY_BUFFER_STATE yy_scan_bytes(yyconst char *bytes, yy_size_t len, yyscan_t yyscanner);
YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len ,yyscan_t yyscanner );
void *yyalloc(yy_size_t, yyscan_t yyscanner);
void *yyrealloc(void *, yy_size_t, yyscan_t yyscanner);
void yyfree(void *, yyscan_t yyscanner);
void *yyalloc (yy_size_t ,yyscan_t yyscanner );
void *yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
void yyfree (void * ,yyscan_t yyscanner );
/* Begin user sect3 */
......@@ -233,42 +235,42 @@ void yyfree(void *, yyscan_t yyscanner);
#define YY_EXTRA_TYPE void *
#endif
int yylex_init(yyscan_t *scanner);
int yylex_init (yyscan_t* scanner);
int yylex_init_extra(YY_EXTRA_TYPE user_defined, yyscan_t *scanner);
int yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
/* Accessor methods to globals.
These are made visible to non-reentrant scanners for convenience. */
int yylex_destroy(yyscan_t yyscanner);
int yylex_destroy (yyscan_t yyscanner );
int yyget_debug(yyscan_t yyscanner);
int yyget_debug (yyscan_t yyscanner );
void yyset_debug(int debug_flag, yyscan_t yyscanner);
void yyset_debug (int debug_flag ,yyscan_t yyscanner );
YY_EXTRA_TYPE yyget_extra(yyscan_t yyscanner);
YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner );
void yyset_extra(YY_EXTRA_TYPE user_defined, yyscan_t yyscanner);
void yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
FILE *yyget_in(yyscan_t yyscanner);
FILE *yyget_in (yyscan_t yyscanner );
void yyset_in(FILE *in_str, yyscan_t yyscanner);
void yyset_in (FILE * in_str ,yyscan_t yyscanner );
FILE *yyget_out(yyscan_t yyscanner);
FILE *yyget_out (yyscan_t yyscanner );
void yyset_out(FILE *out_str, yyscan_t yyscanner);
void yyset_out (FILE * out_str ,yyscan_t yyscanner );
yy_size_t yyget_leng(yyscan_t yyscanner);
yy_size_t yyget_leng (yyscan_t yyscanner );
char *yyget_text(yyscan_t yyscanner);
char *yyget_text (yyscan_t yyscanner );
int yyget_lineno(yyscan_t yyscanner);
int yyget_lineno (yyscan_t yyscanner );
void yyset_lineno(int line_number, yyscan_t yyscanner);
void yyset_lineno (int line_number ,yyscan_t yyscanner );
YYSTYPE *yyget_lval(yyscan_t yyscanner);
YYSTYPE * yyget_lval (yyscan_t yyscanner );
void yyset_lval(YYSTYPE *yylval_param, yyscan_t yyscanner);
void yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
/* Macros after this point can all be overridden by user definitions in
* section 1.
......@@ -276,18 +278,18 @@ void yyset_lval(YYSTYPE *yylval_param, yyscan_t yyscanner);
#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern "C" int yywrap(yyscan_t yyscanner);
extern "C" int yywrap (yyscan_t yyscanner );
#else
extern int yywrap(yyscan_t yyscanner);
extern int yywrap (yyscan_t yyscanner );
#endif
#endif
#ifndef yytext_ptr
static void yy_flex_strncpy(char *, yyconst char *, int, yyscan_t yyscanner);
static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
#endif
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen(yyconst char *, yyscan_t yyscanner);
static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
#endif
#ifndef YY_NO_INPUT
......@@ -310,9 +312,11 @@ static int yy_flex_strlen(yyconst char *, yyscan_t yyscanner);
#ifndef YY_DECL
#define YY_DECL_IS_OURS 1
extern int yylex(YYSTYPE *yylval_param, yyscan_t yyscanner);
extern int yylex \
(YYSTYPE * yylval_param ,yyscan_t yyscanner);
#define YY_DECL int yylex(YYSTYPE *yylval_param, yyscan_t yyscanner)
#define YY_DECL int yylex \
(YYSTYPE * yylval_param , yyscan_t yyscanner)
#endif /* !YY_DECL */
/* yy_get_previous_state - get the state just before the EOB char was reached */
......@@ -329,7 +333,8 @@ extern int yylex(YYSTYPE *yylval_param, yyscan_t yyscanner);
#undef YY_DECL
#endif
#line 86 "lex_sql.l"
#line 88 "lex_sql.l"
#line 340 "lex.yy.h"
#undef yyIN_HEADER
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册