diff options
Diffstat (limited to 'lisplib.c')
-rw-r--r-- | lisplib.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -242,6 +242,21 @@ static val except_instantiate(val set_fun) return nil; } +static val type_set_entries(val dlt, val fun) +{ + val name[] = { lit("typecase"), nil }; + set_dlt_entries(dlt, name, fun); + return nil; +} + +static val type_instantiate(val set_fun) +{ + funcall1(set_fun, nil); + load(format(nil, lit("~a/type.tl"), stdlib_path, nao)); + return nil; +} + + val dlt_register(val dlt, val (*instantiate)(val), @@ -264,6 +279,7 @@ void lisplib_init(void) dlt_register(dl_table, with_stream_instantiate, with_stream_set_entries); dlt_register(dl_table, hash_instantiate, hash_set_entries); dlt_register(dl_table, except_instantiate, except_set_entries); + dlt_register(dl_table, type_instantiate, type_set_entries); } val lisplib_try_load(val sym) |