Clean up calls to C functions, unify opcodes
This commit is contained in:
1 parent
251f221b85
commit
125e278502
6 files changed
+51
-71
No files matched your search
@@ -238,24 +238,24 @@ static void f_type(jv input[], jv output[]) {
|
||||
}
|
||||
|
||||
static struct cfunction function_list[] = {
|
||||
{f_plus, "_plus", CALL_BUILTIN_3_1},
|
||||
{f_minus, "_minus", CALL_BUILTIN_3_1},
|
||||
{f_multiply, "_multiply", CALL_BUILTIN_3_1},
|
||||
{f_divide, "_divide", CALL_BUILTIN_3_1},
|
||||
{f_tonumber, "tonumber", CALL_BUILTIN_1_1},
|
||||
{f_tostring, "tostring", CALL_BUILTIN_1_1},
|
||||
{f_keys, "keys", CALL_BUILTIN_1_1},
|
||||
{f_equal, "_equal", CALL_BUILTIN_3_1},
|
||||
{f_notequal, "_notequal", CALL_BUILTIN_3_1},
|
||||
{f_less, "_less", CALL_BUILTIN_3_1},
|
||||
{f_greater, "_greater", CALL_BUILTIN_3_1},
|
||||
{f_lesseq, "_lesseq", CALL_BUILTIN_3_1},
|
||||
{f_greatereq, "_greatereq", CALL_BUILTIN_3_1},
|
||||
{f_contains, "_contains", CALL_BUILTIN_3_1},
|
||||
{f_length, "length", CALL_BUILTIN_1_1},
|
||||
{f_type, "type", CALL_BUILTIN_1_1},
|
||||
{f_add, "add", CALL_BUILTIN_1_1},
|
||||
{f_sort, "sort", CALL_BUILTIN_1_1},
|
||||
{f_plus, "_plus", 3},
|
||||
{f_minus, "_minus", 3},
|
||||
{f_multiply, "_multiply", 3},
|
||||
{f_divide, "_divide", 3},
|
||||
{f_tonumber, "tonumber", 1},
|
||||
{f_tostring, "tostring", 1},
|
||||
{f_keys, "keys", 1},
|
||||
{f_equal, "_equal", 3},
|
||||
{f_notequal, "_notequal", 3},
|
||||
{f_less, "_less", 3},
|
||||
{f_greater, "_greater", 3},
|
||||
{f_lesseq, "_lesseq", 3},
|
||||
{f_greatereq, "_greatereq", 3},
|
||||
{f_contains, "_contains", 3},
|
||||
{f_length, "length", 1},
|
||||
{f_type, "type", 1},
|
||||
{f_add, "add", 1},
|
||||
{f_sort, "sort", 1},
|
||||
};
|
||||
|
||||
static struct symbol_table cbuiltins = {function_list, sizeof(function_list)/sizeof(function_list[0])};
|
||||
|
||||
Reference in new issue
Block a user