From c891592d9c1bd8c648d6fcf5ec298007cae86480 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Sun, 15 Oct 2006 09:00:42 +0000 Subject: * hieroglyph/vm.c (hg_vm_startjob): allow an empty initializer to just makes VM initialization. --- ChangeLog | 3 +++ hieroglyph/version.h.in | 2 +- hieroglyph/vm.c | 5 ++++- 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 + * 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); -- cgit v1.2.3