match won't be implemented with the current implementation of token strings
This commit is contained in:
parent
721384d400
commit
ae3483c612
|
|
@ -66,7 +66,7 @@ Boolean builtin_ln(InterpreterState *interpreter_state);
|
||||||
Boolean builtin_log(InterpreterState *interpreter_state);
|
Boolean builtin_log(InterpreterState *interpreter_state);
|
||||||
Boolean builtin_logb(InterpreterState *interpreter_state);
|
Boolean builtin_logb(InterpreterState *interpreter_state);
|
||||||
// Boolean builtin_map(InterpreterState *interpreter_state);
|
// Boolean builtin_map(InterpreterState *interpreter_state);
|
||||||
Boolean builtin_match(InterpreterState *interpreter_state);
|
// Boolean builtin_match(InterpreterState *interpreter_state);
|
||||||
Boolean builtin_max(InterpreterState *interpreter_state);
|
Boolean builtin_max(InterpreterState *interpreter_state);
|
||||||
// Boolean builtin_mean(InterpreterState *interpreter_state);
|
// Boolean builtin_mean(InterpreterState *interpreter_state);
|
||||||
Boolean builtin_min(InterpreterState *interpreter_state);
|
Boolean builtin_min(InterpreterState *interpreter_state);
|
||||||
|
|
@ -331,12 +331,6 @@ Boolean load_builtins(InterpreterState *interpreter_state) {
|
||||||
if (!hash_table_put_funcs(interpreter_state->functions, SLS_STR("logb"), func))
|
if (!hash_table_put_funcs(interpreter_state->functions, SLS_STR("logb"), func))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
func = (FunctionItem *)malloc(sizeof(FunctionItem));
|
|
||||||
if (func == NULL) return FALSE;
|
|
||||||
*func = (FunctionItem){ .type = FUNCTION_BUILTIN, .builtin = *builtin_match};
|
|
||||||
if (!hash_table_put_funcs(interpreter_state->functions, SLS_STR("match"), func))
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
func = (FunctionItem *)malloc(sizeof(FunctionItem));
|
func = (FunctionItem *)malloc(sizeof(FunctionItem));
|
||||||
if (func == NULL) return FALSE;
|
if (func == NULL) return FALSE;
|
||||||
*func = (FunctionItem){ .type = FUNCTION_BUILTIN, .builtin = *builtin_max};
|
*func = (FunctionItem){ .type = FUNCTION_BUILTIN, .builtin = *builtin_max};
|
||||||
|
|
@ -1643,11 +1637,6 @@ Boolean builtin_logb(InterpreterState *interpreter_state) {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
Boolean builtin_match(InterpreterState *interpreter_state) {
|
|
||||||
(void)interpreter_state;
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
Boolean builtin_max(InterpreterState *interpreter_state) {
|
Boolean builtin_max(InterpreterState *interpreter_state) {
|
||||||
(void)interpreter_state;
|
(void)interpreter_state;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue