Token type to function name */
| 1366 | |
| 1367 | /* Token type to function name */ |
| 1368 | static const char *agg_func_name(cbm_token_type_t t) { |
| 1369 | switch (t) { |
| 1370 | case TOK_COUNT: |
| 1371 | return "COUNT"; |
| 1372 | case TOK_SUM: |
| 1373 | return "SUM"; |
| 1374 | case TOK_AVG: |
| 1375 | return "AVG"; |
| 1376 | case TOK_MIN_KW: |
| 1377 | return "MIN"; |
| 1378 | case TOK_MAX_KW: |
| 1379 | return "MAX"; |
| 1380 | case TOK_COLLECT: |
| 1381 | return "COLLECT"; |
| 1382 | default: |
| 1383 | return "COUNT"; |
| 1384 | } |
| 1385 | } |
| 1386 | |
| 1387 | static const char *str_func_name(cbm_token_type_t t) { |
| 1388 | switch (t) { |
no outgoing calls
no test coverage detected