summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2006-11-12 17:22:56 +0000
committerAkira TAGOH <akira@tagoh.org>2006-11-12 17:22:56 +0000
commitc167021975803379e5612d9cd47f943dd7fc3e4b (patch)
treeb2776568e4dbe65ed4dd3fd78b2d1719d57e9f86 /plugins
parentd7fb234f7ce7aefe480b31617e3ad5ff387c7268 (diff)
* hieroglyph/vm.c (hg_vm_get_save_level): just ask HgMemPool instead of
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.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/debug/debug-main.c4
-rw-r--r--plugins/libedit/libedit-main.c4
-rw-r--r--plugins/test/test-main.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/plugins/debug/debug-main.c b/plugins/debug/debug-main.c
index c7ce966..02f6c0d 100644
--- a/plugins/debug/debug-main.c
+++ b/plugins/debug/debug-main.c
@@ -41,7 +41,7 @@
hg_operator_build_operator__inline(_debug_op_, vm, pool, sdict, name, func, __hg_op); \
if (__hg_op != NULL) { \
__debug_operator_list[HG_debug_op_##func] = __hg_op; \
- hg_mem_add_root_node(pool, __hg_op); \
+ hg_mem_pool_add_root_node(pool, __hg_op); \
} \
} G_STMT_END
#define REMOVE_OP(pool, sdict, name, func) \
@@ -55,7 +55,7 @@
if (__hg_op == __debug_operator_list[HG_debug_op_##func]) { \
hg_dict_remove(sdict, __hg_key); \
} \
- hg_mem_remove_root_node(pool, __hg_op); \
+ hg_mem_pool_remove_root_node(pool, __hg_op); \
hg_mem_free(__hg_op); \
} \
hg_mem_free(__hg_key); \
diff --git a/plugins/libedit/libedit-main.c b/plugins/libedit/libedit-main.c
index 8a26cac..f3be90c 100644
--- a/plugins/libedit/libedit-main.c
+++ b/plugins/libedit/libedit-main.c
@@ -50,7 +50,7 @@
hg_operator_build_operator__inline(_libedit_op_, vm, pool, sdict, name, func, __hg_op); \
if (__hg_op != NULL) { \
__libedit_operator_list[HG_libedit_op_##func] = __hg_op; \
- hg_mem_add_root_node(pool, __hg_op); \
+ hg_mem_pool_add_root_node(pool, __hg_op); \
} \
} G_STMT_END
#define REMOVE_OP(pool, sdict, name, func) \
@@ -64,7 +64,7 @@
if (__hg_op == __libedit_operator_list[HG_libedit_op_##func]) { \
hg_dict_remove(sdict, __hg_key); \
} \
- hg_mem_remove_root_node(pool, __hg_op); \
+ hg_mem_pool_remove_root_node(pool, __hg_op); \
hg_mem_free(__hg_op); \
} \
hg_mem_free(__hg_key); \
diff --git a/plugins/test/test-main.c b/plugins/test/test-main.c
index 7284b74..a215975 100644
--- a/plugins/test/test-main.c
+++ b/plugins/test/test-main.c
@@ -45,7 +45,7 @@
hg_operator_build_operator__inline(_test_op_, vm, pool, sdict, name, func, __hg_op); \
if (__hg_op != NULL) { \
__test_operator_list[HG_test_op_##func] = __hg_op; \
- hg_mem_add_root_node(pool, __hg_op); \
+ hg_mem_pool_add_root_node(pool, __hg_op); \
} \
} G_STMT_END
#define REMOVE_OP(pool, sdict, name, func) \
@@ -59,7 +59,7 @@
if (__hg_op == __test_operator_list[HG_test_op_##func]) { \
hg_dict_remove(sdict, __hg_key); \
} \
- hg_mem_remove_root_node(pool, __hg_op); \
+ hg_mem_pool_remove_root_node(pool, __hg_op); \
hg_mem_free(__hg_op); \
} \
hg_mem_free(__hg_key); \