summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-05-11trivial fixHEADmasterAkira TAGOH4-4/+4
2009-05-112009-05-11 Akira TAGOH <akira@tagoh.org>Akira TAGOH4-3/+11
* hieroglyph/hgobject.c (_hg_object_new): Fix the alignment issue. * hieroglyph/hgstack.c (hg_stack_dump): Fix a warning on 64bit arch. * tests/hgobject.c (test_hg_object_sized_new): update the aligned size.
2008-01-042007-12-31 Akira TAGOH <akira@tagoh.org>Akira TAGOH4-63/+316
* tests/Makefile.am (test_hgstack_SOURCES): use check library. * tests/hgstack.c: Add more testcases.
2007-12-222007-12-22 Akira TAGOH <akira@tagoh.org>Akira TAGOH3-5/+72
* tests/hgstring.c: Add more testcases.
2007-12-062007-12-06 Akira TAGOH <akira@tagoh.org>Akira TAGOH3-5/+244
* tests/hgdict.c: Add more testcases.
2007-12-032007-12-03 Akira TAGOH <akira@tagoh.org>Akira TAGOH8-3823/+4861
* hieroglyph/hgobject.h (HG_OBJECT_REAL_IS_EQUAL_TO): new macro. * hieroglyph/hgobject.c (hg_object_name_compare_with_raw): new function. (hg_object_name_n_compare_with_raw): new function. * hieroglyph/vm.c (hg_vm_new): have a flag to check if the initialization is done. (hg_vm_initialize): do nothing if the initialization is already done. (hg_vm_finalize): finalize the VM. * hieroglyph/hgoperator.c (hg_object_operator_initialize): have a flag to check if the initialization is done. * hieroglyph/hgdictprime.h (__hg_dict_primes): correct primes table. * tests/hgobject.c: Add more test cases.
2007-12-02* update-version: trivial fix to not replace other thingAkira TAGOH1-1/+1
2007-12-022007-12-02 Akira TAGOH <akira@tagoh.org>Akira TAGOH8-24/+61
* hieroglyph/utils.c (hg_quiet_warning_messages): new function. (hg_allow_warning_messages): new function. * tests/hgobject.c (test_hgobject_new): disable the warning messages for some things that is intentional not to confuse. (test_hg_object_dup): likewise. * tests/hgarray.c (test_hg_object_array_subarray_new): likewise.
2007-11-27 * update-version: trivial update.Akira TAGOH3-5/+7
2007-11-272007-11-27 Akira TAGOH <akira@tagoh.org>Akira TAGOH9-48/+225
* hieroglyph/hgobject.c (_hg_object_new): Initialize the object type. (hg_object_name_new): Initialize the unused value too. * hieroglyph/vm.c (hg_vm_get_current_allocation_mode): new function. (hg_vm_set_current_allocation_mode): likewise. (hg_vm_get_attributes): Follow the value for the allocation mode. * hieroglyph/hgdict.c (_hg_object_dict_insert): Fix a typo. (hg_object_dict_new): Initialize the array area. * configure.ac (AC_INIT): Update the bug report address. * tests/hgdict.c: Add more test cases.
2007-10-22* tests/hgarray.c: more test cases.Akira TAGOH1-2/+228
2007-10-222007-10-22 Akira TAGOH <akira@tagoh.org>Akira TAGOH4-6/+147
* hieroglyph/hgarray.c (hg_object_array_new): initialize the array. (hg_object_array_compare): consider the objects as the same if the same address is given. * hieroglyph/hgobject.c (hg_object_compare): consider the objects as the same if the same address is given. * tests/hgarray.c: add more test cases.
2007-10-182007-10-18 Akira TAGOH <akira@tagoh.org>Akira TAGOH11-8/+750
* tests/Makefile.am: add more test cases. * hieroglyph/hgobject.c (hg_object_dup): initialize the return value with NULL.
2007-09-182007-09-18 Akira TAGOH <akira@tagoh.org>Akira TAGOH4-5/+30
* hieroglyph/vm.c (hg_vm_stepi): new function to step one instruction exactly.
2007-09-18trivial fixesAkira TAGOH5-58/+74
2007-09-18* rewrite some codeAkira TAGOH92-29347/+11798
2006-12-29* hieroglyph/hgstack.c: revert back once.Akira TAGOH1-87/+83
2006-12-192006-12-20 Akira TAGOH <at@gclab.org>Akira TAGOH3-1/+7
* hieroglyph/hgfile.c (hg_file_object_ungetc): fix a duplicate of pushing back.
2006-12-18 * hieroglyph/hgstring.c (hg_string_erase): new function.Akira TAGOH4-1/+25
2006-12-18 * hieroglyph/scanner.c (_hg_scanner_parse_number): fix a parser toAkira TAGOH3-5/+9
recognize a special character after numeric.
2006-12-18 * tests/ps/test-0base.ps: fix a typo.Akira TAGOH3-2/+4
2006-12-182006-12-19 Akira TAGOH <at@gclab.org>Akira TAGOH3-2/+6
* plugins/test/test-main.c (_test_op_validateunittest): fix a typo.
2006-12-02 * hieroglyph/scanner.c (_hg_scanner_parse_number): removeAkira TAGOH3-2/+4
an unnecessary push back.
2006-12-022006-12-03 Akira TAGOH <at@gclab.org>Akira TAGOH7-93/+502
* hieroglyph/hgstack.c (_hg_stack_real_set_flags): modify due to using HgList instead of GList. (_hg_stack_real_relocate): likewise. (_hg_stack_real_dup): likewise. (hg_stack_new): likewise. (_hg_stack_push): likewise. (hg_stack_pop): likewise. (hg_stack_clear): likewise. (hg_stack_index): likewise. (hg_stack_roll): likewise. (hg_stack_dump): likewise. * hieroglyph/hglist.c (hg_list_iter_get_index): new function. (hg_list_iter_roll): new function.
2006-11-212006-11-21 Akira TAGOH <at@gclab.org>Akira TAGOH4-17/+56
* hieroglyph/hglist.c (hg_list_get_iter_previous): new function. (hg_list_get_iter_last): new function.
2006-11-13 * hieroglyph/operator.c (_hg_operator_op_arc): fix a typo.Akira TAGOH3-2/+4
2006-11-13 * hieroglyph/hgfile.c (hg_file_object_ungetc): improve dealing withAkira TAGOH3-3/+25
ungetc.
2006-11-12 * hieroglyph/vm.c (hg_vm_get_save_level): just ask HgMemPool instead ofAkira TAGOH14-87/+124
managing snapshot in VM. * hieroglyph/hgmem.c (hg_mem_pool_get_n_snapshots): new function. (hg_mem_pool_get_snapshot): new function. (hg_mem_pool_clear_snapshot): new function. (hg_mem_pool_add_root_node): renamed. (hg_mem_pool_remove_root_node): likewise. (hg_mem_pool_add_pool_reference): likewise. (hg_mem_pool_remove_pool_reference): likewise.
2006-11-12 * hieroglyph/ilist.c (_hg_list_iter_delete_link): fix a memory leak.Akira TAGOH3-5/+6
2006-11-122006-11-13 Akira TAGOH <at@gclab.org>Akira TAGOH3-1/+8
* hieroglyph/scanner.c (_hg_scanner_parse_number): push back a space to deal with it later.
2006-11-12 * hieroglyph/hgmem.c (hg_mem_init): remove GAllocator initializationAkira TAGOH11-113/+305
code. (hg_mem_finalize): remove GAllocator finalization code. (hg_mem_pool_destroy): use HgList instead of GList. (hg_mem_pool_is_own_object): likewise. (hg_mem_pool_save_snapshot): save an snapshot image to the list in pool. (hg_mem_pool_get_age_of_snapshot): new function. (_hg_mem_set_flags): new function. (hg_mem_add_root_node): use HgList instead of GList. (hg_mem_remove_root_node): likewise. (hg_mem_add_pool_reference): likewise. (hg_mem_remove_pool_reference): likewise. * hieroglyph/hgallocator-bfit.c (_hg_allocator_bfit_relocate): use HgList instead of GList. (_hg_allocator_bfit_real_set_flags): new function to avoid a fail of restoring a snapshot when the unused complex objects are freed after snapping shot, because snapshot image doesn't take care of mere complex objects. (_hg_allocator_bfit_real_garbage_collection): use HgList instead of GList. (_hg_allocator_bfit_real_restore_snapshot): take an argument to adjust the amount of objects for the fudge factor. * hieroglyph/hgmacros.h (HG_MEMOBJ_GET_SNAPSHOT_AGE): add a new macro. (HG_MEMOBJ_SET_SNAPSHOT_AGE): add a new macro.
2006-11-122006-11-12 Akira TAGOH <at@gclab.org>Akira TAGOH5-79/+104
* hieroglyph/hglist.c (hg_list_length): fixed an infinite loop issue. (hg_list_remove): reimplement with iterator to be simplified. * hieroglyph/ilist.c (_hg_list_length): fixed an infinite loop issue. (_hg_list_remove): reimplement with iterator to be simplified.
2006-11-04 * hieroglyph/vm.c (hg_vm_finalize): change the order of fnalization.Akira TAGOH5-22/+36
* hieroglyph/hglog.c (hg_logv): don't use HgString to get it working even when memory allocation error happens.
2006-11-04 * hieroglyph/vm.c (hg_vm_lookup): ues logger facility.Akira TAGOH8-88/+94
(hg_vm_lookup_with_string): likewise. (hg_vm_set_error): likewise. * hieroglyph/hgplugins.c (_hg_plugin_load): use logger facility. * hieroglyph/hgmem.c (_hg_mem_init_stack_start): use logger facility. (hg_mem_pool_new): likewise. (hg_mem_gc_mark_array_region): likewise. * hieroglyph/hgallocator-bfit.c (_hg_allocator_bfit_real_garbage_collection): use logger facility. (_hg_allocator_bfit_real_gc_mark): likewise. * src/hgs.c (main): set flags from HIEROGLYPH_DEBUG environment variable. * devices/cairo/hgdevice-cairo.c (_hg_cairo_device_print_path): use logger facility. (_hg_cairo_device_real_eofill): likewise. (_hg_cairo_device_real_fill): likewise. (_hg_cairo_device_real_stroke): likewise. (_hg_cairo_device_set_matrix): likewise.
2006-11-042006-11-04 Akira TAGOH <at@gclab.org>Akira TAGOH5-73/+83
* hieroglyph/vm.c (hg_vm_init): initialize logger facility. (hg_vm_finalize): finalize logger. * hieroglyph/hglog.c (hg_log_set_flag): new function. (hg_logv): allow to output a message without initialization.
2006-10-21* add the log domain.Akira TAGOH9-19/+48
2006-10-212006-10-22 Akira TAGOH <at@gclab.org>Akira TAGOH35-276/+594
* hieroglyph/Makefile.am (libhieroglyph_la_SOURCES): added hglog.c. * hieroglyph/hglog.[ch]: new files for logger.
2006-10-212006-10-21 Akira TAGOH <at@gclab.org>Akira TAGOH3-9/+19
* hieroglyph/vm.c (_hg_vm_op_rollbacksecuritylevel): ignore the errors.
2006-10-17 * hieroglyph/operator.c (_hg_operator_op_exec): save the currentAkira TAGOH4-5/+65
security level and rollback it after finished the object's execution. * hieroglyph/vm.c (_hg_vm_op_rollbacksecuritylevel): new function. (hg_vm_set_security_level): implemented. (hg_vm_get_security_level): implemented.
2006-10-172006-10-18 Akira TAGOH <at@gclab.org>Akira TAGOH5-18/+117
* hieroglyph/operator.c (_hg_operator_op_countdictstack): check VMerror. (_hg_operator_op_countexecstack): likewise. (_hg_operator_op_currentdict): likewise. (_hg_operator_op_currentfile): likewise. (_hg_operator_op_dup): likewise. (_hg_operator_op_private_hg_getsecuritylevel): new function. (_hg_operator_op_private_hg_setsecuritylevel): new function.
2006-10-162006-10-16 Akira TAGOH <at@gclab.org>Akira TAGOH3-1/+16
* plugins/test/hg_unittest.ps (initunittest): erase a prompt. (.updateunittestprogress): show a pinwheel.
2006-10-15* src/hgs.c: rename --sync to --sync-io.Akira TAGOH2-2/+2
2006-10-15* TODO: updated.Akira TAGOH2-1/+3
2006-10-15 * hieroglyph/operator.c (_hg_operator_op_restore): drop the save objectAkira TAGOH3-1/+5
out of ostack if restore successfully complete.
2006-10-15 * hieroglyph/vm.c (hg_vm_startjob): allow an empty initializer toAkira TAGOH3-2/+8
just makes VM initialization.
2006-10-15 * src/hgs.c (main): add --sync option.Akira TAGOH3-1/+8
2006-10-15 * hieroglyph/hgfile.c (hg_file_io_synchronous): new function.Akira TAGOH4-1/+15
(hg_file_object_write): call fsync after writing according to the current state of I/O synchronous.
2006-10-15 * hieroglyph/hgstring.c (hg_string_append_printf): new function.Akira TAGOH4-2/+40
(hg_string_append_vprintf): new function.
2006-10-152006-10-15 Akira TAGOH <at@gclab.org>Akira TAGOH3-2/+6
* hieroglyph/hgdict.c (_hg_dict_traverse_set_flags): removed the unnecessary debugging code.
2006-10-12 * tests/ps/test-exp.ps: new testcase.Akira TAGOH5-7/+34
* tests/ps/test-ps.sh (run_test): new function. * hieroglyph/scanner.c (_hg_scanner_parse_number): fixed a typo.