diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-08-05 20:55:33 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-08-05 20:55:33 -0700 |
commit | ec6de08243cf8f1a71063fd61082399907d88051 (patch) | |
tree | f88a251b3f35a8a9b49440f10c5b3838cd5ceba0 /lib.c | |
parent | 989fecaf090d255e92c1c473e4888014cef538e8 (diff) | |
download | txr-ec6de08243cf8f1a71063fd61082399907d88051.tar.gz txr-ec6de08243cf8f1a71063fd61082399907d88051.tar.bz2 txr-ec6de08243cf8f1a71063fd61082399907d88051.zip |
New exception type: system-error.
* lib.c (system_error_s): New symbol variable.
(obj_init): Initialize new variable.
* lib.h (system_error_s): Declared.
* unwind.c (uw_init): Register system-error exception type.
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -94,6 +94,7 @@ val eof_s, eol_s, assert_s; val error_s, type_error_s, internal_error_s; val numeric_error_s, range_error_s; val query_error_s, file_error_s, process_error_s, syntax_error_s; +val system_error_s; val gensym_counter_s; val nothrow_k, args_k, colon_k, auto_k; @@ -6894,6 +6895,7 @@ static void obj_init(void) file_error_s = intern(lit("file-error"), user_package); process_error_s = intern(lit("process-error"), user_package); syntax_error_s = intern(lit("syntax-error"), user_package); + system_error_s = intern(lit("system-error"), user_package); assert_s = intern(lit("assert"), user_package); args_k = intern(lit("args"), keyword_package); |