summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2006-10-15 09:00:42 +0000
committerAkira TAGOH <akira@tagoh.org>2006-10-15 09:00:42 +0000
commitc891592d9c1bd8c648d6fcf5ec298007cae86480 (patch)
tree1b0063c171f5bb0ccc94e853195cc343f74e26ba
parent78a52d970553803a00cbda13a1b417abb04f3757 (diff)
* hieroglyph/vm.c (hg_vm_startjob): allow an empty initializer to
just makes VM initialization.
-rw-r--r--ChangeLog3
-rw-r--r--hieroglyph/version.h.in2
-rw-r--r--hieroglyph/vm.c5
3 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index f3c3aef..343cee3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2006-10-15 Akira TAGOH <at@gclab.org>
+ * hieroglyph/vm.c (hg_vm_startjob): allow an empty initializer to
+ just makes VM initialization.
+
* src/hgs.c (main): add --sync option.
* hieroglyph/hgfile.c (hg_file_io_synchronous): new function.
diff --git a/hieroglyph/version.h.in b/hieroglyph/version.h.in
index 2e456af..54f571e 100644
--- a/hieroglyph/version.h.in
+++ b/hieroglyph/version.h.in
@@ -29,7 +29,7 @@
G_BEGIN_DECLS
#define HIEROGLYPH_VERSION "@VERSION@"
-#define HIEROGLYPH_UUID "45a86d12-925d-4972-a1c4-0818e0587d9b"
+#define HIEROGLYPH_UUID "7fd4258b-f447-4334-8422-cd73a1ebcb32"
const char *__hg_rcsid G_GNUC_UNUSED = "$Rev$";
diff --git a/hieroglyph/vm.c b/hieroglyph/vm.c
index 889f6c6..46a03a0 100644
--- a/hieroglyph/vm.c
+++ b/hieroglyph/vm.c
@@ -1019,7 +1019,10 @@ hg_vm_startjob(HgVM *vm,
hg_dict_insert(vm->local_pool, vm->serverdict, nkey, ntrue);
}
- if (initializer) {
+ if (initializer && initializer[0] == 0) {
+ /* just initialize VM */
+ return TRUE;
+ } else if (initializer) {
gchar *eval = g_strdup_printf("{prompt (%s)(r)file dup type /filetype eq {cvx exec} if} stopped {$error /newerror get {errordict /handleerror get exec 1 .quit} if} if", initializer);
retval = hg_vm_eval(vm, eval, NULL, NULL, NULL, NULL);