| 2149 | `-----------------------------------------------*/ |
| 2150 | |
| 2151 | static void |
| 2152 | yydestruct (const char *yymsg, |
| 2153 | yysymbol_kind_t yykind, YYSTYPE *yyvaluep, YYLTYPE *yylocationp, hsql::SQLParserResult* result, yyscan_t scanner) |
| 2154 | { |
| 2155 | YY_USE (yyvaluep); |
| 2156 | YY_USE (yylocationp); |
| 2157 | YY_USE (result); |
| 2158 | YY_USE (scanner); |
| 2159 | if (!yymsg) |
| 2160 | yymsg = "Deleting"; |
| 2161 | YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp); |
| 2162 | |
| 2163 | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| 2164 | switch (yykind) |
| 2165 | { |
| 2166 | case YYSYMBOL_IDENTIFIER: /* IDENTIFIER */ |
| 2167 | #line 180 "bison_parser.y" |
| 2168 | { free( (((*yyvaluep).sval)) ); } |
| 2169 | #line 2170 "bison_parser.cpp" |
| 2170 | break; |
| 2171 | |
| 2172 | case YYSYMBOL_STRING: /* STRING */ |
| 2173 | #line 180 "bison_parser.y" |
| 2174 | { free( (((*yyvaluep).sval)) ); } |
| 2175 | #line 2176 "bison_parser.cpp" |
| 2176 | break; |
| 2177 | |
| 2178 | case YYSYMBOL_FLOATVAL: /* FLOATVAL */ |
| 2179 | #line 178 "bison_parser.y" |
| 2180 | { } |
| 2181 | #line 2182 "bison_parser.cpp" |
| 2182 | break; |
| 2183 | |
| 2184 | case YYSYMBOL_INTVAL: /* INTVAL */ |
| 2185 | #line 178 "bison_parser.y" |
| 2186 | { } |
| 2187 | #line 2188 "bison_parser.cpp" |
| 2188 | break; |
| 2189 | |
| 2190 | case YYSYMBOL_statement_list: /* statement_list */ |
| 2191 | #line 181 "bison_parser.y" |
| 2192 | { |
| 2193 | if ((((*yyvaluep).stmt_vec)) != nullptr) { |
| 2194 | for (auto ptr : *(((*yyvaluep).stmt_vec))) { |
| 2195 | delete ptr; |
| 2196 | } |
| 2197 | } |
| 2198 | delete (((*yyvaluep).stmt_vec)); |
| 2199 | } |
| 2200 | #line 2201 "bison_parser.cpp" |
| 2201 | break; |
| 2202 | |
| 2203 | case YYSYMBOL_statement: /* statement */ |
| 2204 | #line 189 "bison_parser.y" |
| 2205 | { delete (((*yyvaluep).statement)); } |
| 2206 | #line 2207 "bison_parser.cpp" |
| 2207 | break; |
| 2208 | |