summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2006-04-06 04:04:47 +0000
committerAkira TAGOH <akira@tagoh.org>2006-04-06 04:04:47 +0000
commit30f3a98939def78e7773d9fc9f9a33bb16657f56 (patch)
treee1c4afc5d73f596dbc174060a7473b29b8964404 /tests
parent08d9443eb60bc1061917c5ada06bbbbccd71f882 (diff)
2006-04-05 Akira TAGOH <at@gclab.org>
* hieroglyph/hgmem.c (hg_allocator_new): new again. (hg_allocator_destroy): likewise. * hieroglyph/hgallocator-ffit.c (hg_allocator_ffit_get_vtable): new function. (hg_allocator_ffit_new): removed. (hg_allocator_ffit_destroy): removed. * hieroglyph/hgfile.c (hg_file_init): trivial thing to support optional allocator. * libretto/scanner.c: use own error function to not push self into the estack. * libretto/vm.c: trivial thing to support optional allocator.
Diffstat (limited to 'tests')
-rw-r--r--tests/hgarray.c2
-rw-r--r--tests/hgdict.c2
-rw-r--r--tests/hgfile.c2
-rw-r--r--tests/hgmem.c2
-rw-r--r--tests/hgstring.c2
-rw-r--r--tests/snapshot.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/tests/hgarray.c b/tests/hgarray.c
index 67a0bbc..b5e0f1f 100644
--- a/tests/hgarray.c
+++ b/tests/hgarray.c
@@ -13,7 +13,7 @@ main(void)
guint i;
hg_mem_init();
- allocator = hg_allocator_new();
+ allocator = hg_allocator_new(hg_allocator_ffit_get_vtable());
pool = hg_mem_pool_new(allocator, "test", 128, TRUE);
if (pool == NULL) {
g_print("Failed to create a memory pool.\n");
diff --git a/tests/hgdict.c b/tests/hgdict.c
index 8ba49bb..a091078 100644
--- a/tests/hgdict.c
+++ b/tests/hgdict.c
@@ -12,7 +12,7 @@ main(void)
HgValueNode *key, *val, *node;
hg_mem_init();
- allocator = hg_allocator_new();
+ allocator = hg_allocator_new(hg_allocator_ffit_get_vtable());
pool = hg_mem_pool_new(allocator, "test", 384, FALSE);
if (pool == NULL) {
g_print("Failed to create a memory pool.\n");
diff --git a/tests/hgfile.c b/tests/hgfile.c
index 63387c0..241f4a2 100644
--- a/tests/hgfile.c
+++ b/tests/hgfile.c
@@ -13,7 +13,7 @@ main(void)
hg_mem_init();
hg_file_init();
- allocator = hg_allocator_new();
+ allocator = hg_allocator_new(hg_allocator_ffit_get_vtable());
pool = hg_mem_pool_new(allocator, "test", 128, TRUE);
if (pool == NULL) {
hg_stderr_printf("Failed to create a memory pool.\n");
diff --git a/tests/hgmem.c b/tests/hgmem.c
index aa3e6da..0b2594c 100644
--- a/tests/hgmem.c
+++ b/tests/hgmem.c
@@ -11,7 +11,7 @@ main(void)
gchar *s, *s2;
hg_mem_init();
- allocator = hg_allocator_new();
+ allocator = hg_allocator_new(hg_allocator_ffit_get_vtable());
pool = hg_mem_pool_new(allocator, "test", 256, TRUE);
if (pool == NULL) {
g_print("Failed to create a pool.\n");
diff --git a/tests/hgstring.c b/tests/hgstring.c
index 7e226b3..15a7ed5 100644
--- a/tests/hgstring.c
+++ b/tests/hgstring.c
@@ -10,7 +10,7 @@ main(void)
HgString *s;
hg_mem_init();
- allocator = hg_allocator_new();
+ allocator = hg_allocator_new(hg_allocator_ffit_get_vtable());
pool = hg_mem_pool_new(allocator, "test", 256, TRUE);
if (pool == NULL) {
g_print("Failed to create a memory pool.\n");
diff --git a/tests/snapshot.c b/tests/snapshot.c
index ad53af2..b754499 100644
--- a/tests/snapshot.c
+++ b/tests/snapshot.c
@@ -19,7 +19,7 @@ main(void)
hg_mem_init();
- allocator = hg_allocator_new();
+ allocator = hg_allocator_new(hg_allocator_ffit_get_vtable());
pool = hg_mem_pool_new(allocator, "test", 256, TRUE);
if (pool == NULL) {
g_print("Failed to create a pool\n");