summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2006-08-14 10:10:14 +0000
committerAkira TAGOH <akira@tagoh.org>2006-08-14 10:10:14 +0000
commit8d35f4acfcf168a5baa9767112bc38b02040e1d5 (patch)
treedb0969feb23b2060d4bdc998265b00e68cf27281 /lib
parent71f051b177a1cdca8813d0cb3080dcdf912b8bfe (diff)
2006-08-14 Akira TAGOH <at@gclab.org>
* hieroglyph/vm.c (_hg_vm_eval_file): new function. (hg_vm_set_ostack): new function. (hg_vm_set_estack): make it as a private function. (hg_vm_set_dstack): new function. (hg_vm_eval): new function. * lib/hg_init.ps: don't invoke if .loadhistory and .savehistory isn't available. * plugins/libedit/libedit-main.c (_libedit_op_loadhistory): moved from operator.c. (_libedit_op_statementedit): likewise. (_libedit_op_savehistory): likewise.
Diffstat (limited to 'lib')
-rw-r--r--lib/hg_init.ps8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/hg_init.ps b/lib/hg_init.ps
index c1431f5..29ed5a5 100644
--- a/lib/hg_init.ps
+++ b/lib/hg_init.ps
@@ -319,7 +319,11 @@ end
% if JOBSERVER isn't true, it means one gives the initializer to libretto_vm_startjob().
% so no need to read PS from stdin.
serverdict /JOBSERVER get {
- (.hghistory) .loadhistory
+ systemdict /.loadhistory known {
+ (.hghistory) .loadhistory
+ } if
.startjobserver executive
- (.hghistory) .savehistory
+ systemdict /.savehistory known {
+ (.hghistory) .savehistory
+ } if
} if