diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-05-01 21:09:24 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-05-01 21:09:24 +0200 |
commit | 547fa99389439b62fca04243e62560bfcbafb0b4 (patch) | |
tree | 4458cff55054677ac7bed629998f59ec76dfddf0 /src | |
parent | Add options to --statprof. (diff) | |
download | calp-547fa99389439b62fca04243e62560bfcbafb0b4.tar.gz calp-547fa99389439b62fca04243e62560bfcbafb0b4.tar.xz |
Change function for creating hashtables.
Diffstat (limited to 'src')
-rw-r--r-- | src/guile_interface.scm.c | 2 | ||||
-rw-r--r-- | src/guile_type_helpers.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/guile_interface.scm.c b/src/guile_interface.scm.c index 4d70c127..20c413df 100644 --- a/src/guile_interface.scm.c +++ b/src/guile_interface.scm.c @@ -74,7 +74,7 @@ SCM_DEFINE (vcomponent_get_attribute, "%vcomponent-get-attribute", 2, 0, 0, // TODO why is it an error to unprotect the object here? // scm_from_strbuf should already have protected it... // scm_gc_unprotect_object(v->key.scm); - SCM htable = SCM_MAKE_HASH_TABLE(); + SCM htable = scm_make_hash_table (scm_from_ulong(32)); val = scm_cons(val, htable); v->key.scm = val; scm_gc_protect_object(v->key.scm); diff --git a/src/guile_type_helpers.h b/src/guile_type_helpers.h index 537c23c5..c936f45d 100644 --- a/src/guile_type_helpers.h +++ b/src/guile_type_helpers.h @@ -7,7 +7,6 @@ #include "strbuf.h" #define SCM_IS_LIST(x) scm_is_true(scm_list_p(x)) -#define SCM_MAKE_HASH_TABLE() scm_c_eval_string("(make-hash-table)") SCM scm_from_strbuf(strbuf* s); SCM scm_from_strbuf_symbol(strbuf* s); |