summaryrefslogtreecommitdiffstats
path: root/builtin.c
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2013-05-13 15:00:05 +0100
committerStephen Dolan <mu@netsoc.tcd.ie>2013-05-13 15:00:05 +0100
commit8c708f3c7aece2429adb626c9031b3e2de5051c3 (patch)
treebf06bc8c68044f829c35e27228737a91b8a8b544 /builtin.c
parentb0e65d149f76c081d5840b4156b9a13516429732 (diff)
Refactor path logic.
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin.c b/builtin.c
index 4fb14dc7..1516c6c6 100644
--- a/builtin.c
+++ b/builtin.c
@@ -520,9 +520,9 @@ static block bind_bytecoded_builtins(block b) {
}
{
struct bytecoded_builtin builtin_def_1arg[] = {
- {"path", BLOCK(gen_op_simple(DUP),
+ {"path", BLOCK(gen_op_simple(PATH_BEGIN),
gen_call("arg", gen_noop()),
- gen_op_simple(GETPATH))},
+ gen_op_simple(PATH_END))},
};
for (unsigned i=0; i<sizeof(builtin_def_1arg)/sizeof(builtin_def_1arg[0]); i++) {
builtins = BLOCK(builtins, gen_function(builtin_def_1arg[i].name,