mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Fix vocabulary juggling so that builtins voc is always searched before
forth vocabulary when initially creating the builtins. FICL 2.05 has a better way to do this, but this works for now. Fixes "?".
This commit is contained in:
parent
625cc84808
commit
f102f87438
1 changed files with 2 additions and 2 deletions
|
|
@ -244,10 +244,10 @@ bf_init(void)
|
|||
/* make all commands appear as Forth words */
|
||||
SET_FOREACH(cmdp, Xcommand_set) {
|
||||
ficlBuild((*cmdp)->c_name, bf_command, FW_DEFAULT);
|
||||
ficlExec(bf_vm, "also forth definitions");
|
||||
ficlExec(bf_vm, "forth definitions builtins");
|
||||
sprintf(create_buf, "builtin: %s", (*cmdp)->c_name);
|
||||
ficlExec(bf_vm, create_buf);
|
||||
ficlExec(bf_vm, "previous definitions");
|
||||
ficlExec(bf_vm, "builtins definitions");
|
||||
}
|
||||
ficlExec(bf_vm, "only forth definitions");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue