diff options
author | Stephen Dolan <mu@netsoc.tcd.ie> | 2013-05-13 15:00:05 +0100 |
---|---|---|
committer | Stephen Dolan <mu@netsoc.tcd.ie> | 2013-05-13 15:00:05 +0100 |
commit | 8c708f3c7aece2429adb626c9031b3e2de5051c3 (patch) | |
tree | bf06bc8c68044f829c35e27228737a91b8a8b544 /builtin.c | |
parent | b0e65d149f76c081d5840b4156b9a13516429732 (diff) |
Refactor path logic.
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, |