Token type to function name */
| 1336 | |
| 1337 | /* Token type to function name */ |
| 1338 | static const char *agg_func_name(cbm_token_type_t t) { |
| 1339 | switch (t) { |
| 1340 | case TOK_COUNT: |
| 1341 | return "COUNT"; |
| 1342 | case TOK_SUM: |
| 1343 | return "SUM"; |
| 1344 | case TOK_AVG: |
| 1345 | return "AVG"; |
| 1346 | case TOK_MIN_KW: |
| 1347 | return "MIN"; |
| 1348 | case TOK_MAX_KW: |
| 1349 | return "MAX"; |
| 1350 | case TOK_COLLECT: |
| 1351 | return "COLLECT"; |
| 1352 | default: |
| 1353 | return "COUNT"; |
| 1354 | } |
| 1355 | } |
| 1356 | |
| 1357 | static const char *str_func_name(cbm_token_type_t t) { |
| 1358 | switch (t) { |
no outgoing calls
no test coverage detected