Token type to function name */
| 1202 | |
| 1203 | /* Token type to function name */ |
| 1204 | static const char *agg_func_name(cbm_token_type_t t) { |
| 1205 | switch (t) { |
| 1206 | case TOK_COUNT: |
| 1207 | return "COUNT"; |
| 1208 | case TOK_SUM: |
| 1209 | return "SUM"; |
| 1210 | case TOK_AVG: |
| 1211 | return "AVG"; |
| 1212 | case TOK_MIN_KW: |
| 1213 | return "MIN"; |
| 1214 | case TOK_MAX_KW: |
| 1215 | return "MAX"; |
| 1216 | case TOK_COLLECT: |
| 1217 | return "COLLECT"; |
| 1218 | default: |
| 1219 | return "COUNT"; |
| 1220 | } |
| 1221 | } |
| 1222 | |
| 1223 | static const char *str_func_name(cbm_token_type_t t) { |
| 1224 | switch (t) { |
no outgoing calls
no test coverage detected