summaryrefslogtreecommitdiff
path: root/sql/gen_lex_token.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2015-08-03 16:34:59 +0200
committerSergei Golubchik <serg@mariadb.org>2015-08-03 16:34:59 +0200
commit0a99293db39b94db9c6a5515b4b2dd9814244e26 (patch)
treefec208a0d29decc410b10f26bf21178dc45f7a11 /sql/gen_lex_token.cc
parentab7b672983da567b7599bc331d492154ee915f9b (diff)
parent167c540048ed1c49fa97f86cadba1e7ff0559d12 (diff)
downloadmariadb-git-0a99293db39b94db9c6a5515b4b2dd9814244e26.tar.gz
Merge branch 'merge-perfschema-5.6' into 10.0
5.6.26
Diffstat (limited to 'sql/gen_lex_token.cc')
-rw-r--r--sql/gen_lex_token.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/gen_lex_token.cc b/sql/gen_lex_token.cc
index 3584dd60c62..3b2d37cfd12 100644
--- a/sql/gen_lex_token.cc
+++ b/sql/gen_lex_token.cc
@@ -56,6 +56,7 @@ int tok_row_single_value= 0;
int tok_row_single_value_list= 0;
int tok_row_multiple_value= 0;
int tok_row_multiple_value_list= 0;
+int tok_ident= 0;
int tok_unused= 0;
void set_token(int tok, const char *str)
@@ -213,6 +214,10 @@ void compute_tokens()
set_token(tok_row_multiple_value_list, "(...) /* , ... */");
max_token_seen++;
+ tok_ident= max_token_seen;
+ set_token(tok_ident, "(tok_id)");
+
+ max_token_seen++;
tok_unused= max_token_seen;
set_token(tok_unused, "UNUSED");
@@ -323,6 +328,7 @@ void print_tokens()
printf("#define TOK_ROW_SINGLE_VALUE_LIST %d\n", tok_row_single_value_list);
printf("#define TOK_ROW_MULTIPLE_VALUE %d\n", tok_row_multiple_value);
printf("#define TOK_ROW_MULTIPLE_VALUE_LIST %d\n", tok_row_multiple_value_list);
+ printf("#define TOK_IDENT %d\n", tok_ident);
printf("#define TOK_UNUSED %d\n", tok_unused);
}