Merge pull request #82 from hyrise/remove_unused_enum_members

Remove unused enum members
This commit is contained in:
mrks 2018-02-08 17:01:33 +01:00 committed by GitHub
commit fbc1839786
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 1780 additions and 1733 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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

View File

@ -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"

View File

@ -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;

View File

@ -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.