summaryrefslogtreecommitdiffstats
path: root/builtin.c
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2012-12-03 20:00:36 +0000
committerStephen Dolan <mu@netsoc.tcd.ie>2012-12-03 20:02:02 +0000
commit5f6a95c7b574c6d0f52e62e2405c550606a5ce75 (patch)
treeb31fc40e29095972db981ed9dc18429dd4aabce7 /builtin.c
parentfadeb66365cb8da2cddf3993ad139736922852ae (diff)
General cleanup - rename a few things, delete dead code.
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/builtin.c b/builtin.c
index a3c1f78b..ef447935 100644
--- a/builtin.c
+++ b/builtin.c
@@ -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++) {