diff options
Diffstat (limited to 'lisplib.c')
-rw-r--r-- | lisplib.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -214,6 +214,20 @@ static val with_stream_instantiate(val set_fun) return nil; } +static val hash_set_entries(val dlt, val fun) +{ + val name[] = { lit("with-hash-table-iter"), nil }; + set_dlt_entries(dlt, name, fun); + return nil; +} + +static val hash_instantiate(val set_fun) +{ + funcall1(set_fun, nil); + load(format(nil, lit("~a/hash.tl"), stdlib_path, nao)); + return nil; +} + val dlt_register(val dlt, val (*instantiate)(val), val (*set_entries)(val, val)) @@ -233,6 +247,7 @@ void lisplib_init(void) dlt_register(dl_table, path_test_instantiate, path_test_set_entries); dlt_register(dl_table, struct_instantiate, struct_set_entries); dlt_register(dl_table, with_stream_instantiate, with_stream_set_entries); + dlt_register(dl_table, hash_instantiate, hash_set_entries); } val lisplib_try_load(val sym) |