diff options
author | Stephen Dolan <mu@netsoc.tcd.ie> | 2012-12-03 20:00:36 +0000 |
---|---|---|
committer | Stephen Dolan <mu@netsoc.tcd.ie> | 2012-12-03 20:02:02 +0000 |
commit | 5f6a95c7b574c6d0f52e62e2405c550606a5ce75 (patch) | |
tree | b31fc40e29095972db981ed9dc18429dd4aabce7 /builtin.c | |
parent | fadeb66365cb8da2cddf3993ad139736922852ae (diff) |
General cleanup - rename a few things, delete dead code.
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -277,11 +277,11 @@ struct bytecoded_builtin { const char* name; block code; }; static block bind_bytecoded_builtins(block b) { struct bytecoded_builtin builtin_defs[] = { {"empty", gen_op_simple(BACKTRACK)}, - {"false", gen_op_const(LOADK, jv_false())}, - {"true", gen_op_const(LOADK, jv_true())}, - {"null", gen_op_const(LOADK, jv_null())}, - {"not", gen_condbranch(gen_op_const(LOADK, jv_false()), - gen_op_const(LOADK, jv_true()))} + {"false", gen_const(jv_false())}, + {"true", gen_const(jv_true())}, + {"null", gen_const(jv_null())}, + {"not", gen_condbranch(gen_const(jv_false()), + gen_const(jv_true()))} }; block builtins = gen_noop(); for (unsigned i=0; i<sizeof(builtin_defs)/sizeof(builtin_defs[0]); i++) { |