Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
oceanbase
miniob
提交
0318c8ac
M
miniob
项目概览
oceanbase
/
miniob
大约 1 年 前同步成功
通知
74
Star
1521
Fork
537
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
分析
仓库
DevOps
项目成员
Pages
M
miniob
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Pages
分析
分析
仓库分析
DevOps
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
提交
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
0318c8ac
编写于
9月 06, 2022
作者:
羽飞
提交者:
GitHub
9月 06, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
format lex file (#67)
format lex file
上级
84b9b420
变更
2
展开全部
显示空白变更内容
内联
并排
Showing
2 changed file
with
1466 addition
and
1386 deletion
+1466
-1386
src/observer/sql/parser/lex.yy.c
src/observer/sql/parser/lex.yy.c
+1361
-1286
src/observer/sql/parser/lex.yy.h
src/observer/sql/parser/lex.yy.h
+105
-100
未找到文件。
src/observer/sql/parser/lex.yy.c
浏览文件 @
0318c8ac
此差异已折叠。
点击以展开。
src/observer/sql/parser/lex.yy.h
浏览文件 @
0318c8ac
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录