remove unused enum members
This commit is contained in:
parent
36628dc005
commit
48f32a4b73
File diff suppressed because it is too large
Load Diff
|
@ -48,7 +48,7 @@
|
|||
extern int hsql_debug;
|
||||
#endif
|
||||
/* "%code requires" blocks. */
|
||||
#line 35 "bison_parser.y" /* yacc.c:1915 */
|
||||
#line 35 "bison_parser.y" /* yacc.c:1909 */
|
||||
|
||||
// %code requires block
|
||||
|
||||
|
@ -72,7 +72,7 @@ extern int hsql_debug;
|
|||
} \
|
||||
}
|
||||
|
||||
#line 76 "bison_parser.h" /* yacc.c:1915 */
|
||||
#line 76 "bison_parser.h" /* yacc.c:1909 */
|
||||
|
||||
/* Token type. */
|
||||
#ifndef HSQL_TOKENTYPE
|
||||
|
@ -218,7 +218,7 @@ extern int hsql_debug;
|
|||
|
||||
union HSQL_STYPE
|
||||
{
|
||||
#line 95 "bison_parser.y" /* yacc.c:1915 */
|
||||
#line 95 "bison_parser.y" /* yacc.c:1909 */
|
||||
|
||||
double fval;
|
||||
int64_t ival;
|
||||
|
@ -257,7 +257,7 @@ union HSQL_STYPE
|
|||
std::vector<hsql::Expr*>* expr_vec;
|
||||
std::vector<hsql::OrderDescription*>* order_vec;
|
||||
|
||||
#line 261 "bison_parser.h" /* yacc.c:1915 */
|
||||
#line 261 "bison_parser.h" /* yacc.c:1909 */
|
||||
};
|
||||
|
||||
typedef union HSQL_STYPE HSQL_STYPE;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -344,7 +344,7 @@ extern int hsql_lex \
|
|||
#undef YY_DECL
|
||||
#endif
|
||||
|
||||
#line 217 "flex_lexer.l"
|
||||
#line 219 "flex_lexer.l"
|
||||
|
||||
|
||||
#line 351 "flex_lexer.h"
|
||||
|
|
|
@ -70,7 +70,9 @@ namespace hsql {
|
|||
|
||||
Expr* Expr::makeCaseList(Expr* caseListElement) {
|
||||
Expr* e = new Expr(kExprOperator);
|
||||
e->opType = kOpCaseList;
|
||||
// Case list expressions are temporary and will be integrated into the case expressions exprList - thus assign
|
||||
// operator type kOpNone
|
||||
e->opType = kOpNone;
|
||||
e->exprList = new std::vector<Expr*>();
|
||||
e->exprList->push_back(caseListElement);
|
||||
return e;
|
||||
|
|
|
@ -25,9 +25,7 @@ namespace hsql {
|
|||
kExprSelect,
|
||||
kExprHint,
|
||||
kExprArray,
|
||||
kExprArrayIndex,
|
||||
kExprCaseList,
|
||||
kExprCaseListElement
|
||||
kExprArrayIndex
|
||||
};
|
||||
|
||||
// Operator types. These are important for expressions of type kExprOperator.
|
||||
|
@ -39,7 +37,6 @@ namespace hsql {
|
|||
|
||||
// n-nary special case
|
||||
kOpCase,
|
||||
kOpCaseList, // Contains n >= 1 kExprCaseListElement in its exprList
|
||||
kOpCaseListElement, // `WHEN expr THEN expr`
|
||||
|
||||
// Binary operators.
|
||||
|
|
Loading…
Reference in New Issue