diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2011-11-30 14:19:03 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2011-11-30 14:19:03 -0800 |
commit | c6d7aca5df641e419f5b74d14b463901d63fc1f2 (patch) | |
tree | 4dd4411f919fc6a214242d0aee89e887b4f5e228 | |
parent | b3ee9cdddd521d0ee87a114269fc683f93d215e0 (diff) | |
download | txr-c6d7aca5df641e419f5b74d14b463901d63fc1f2.tar.gz txr-c6d7aca5df641e419f5b74d14b463901d63fc1f2.tar.bz2 txr-c6d7aca5df641e419f5b74d14b463901d63fc1f2.zip |
Removing useless hash table.
* parser.h (ln_to_forms_hash): Declaration removed.
* parser.l (ln_to_forms_hash): Variable removed.
(parse_init): Initialization and protection of ln_to_forms_hash
removed.
* parser.y (rl): Update of ln_to_forms_hash removed.
* txr.1:
-rw-r--r-- | ChangeLog | 14 | ||||
-rw-r--r-- | parser.h | 1 | ||||
-rw-r--r-- | parser.l | 4 | ||||
-rw-r--r-- | parser.y | 1 |
4 files changed, 15 insertions, 5 deletions
@@ -1,5 +1,19 @@ 2011-11-30 Kaz Kylheku <kaz@kylheku.com> + Removing useless hash table. + + * parser.h (ln_to_forms_hash): Declaration removed. + + * parser.l (ln_to_forms_hash): Variable removed. + (parse_init): Initialization and protection of ln_to_forms_hash + removed. + + * parser.y (rl): Update of ln_to_forms_hash removed. + + * txr.1: + +2011-11-30 Kaz Kylheku <kaz@kylheku.com> + * configure (extra_debugging): New variable. EXTRA_DEBUGGING conditionally generated in config.h. @@ -30,7 +30,6 @@ extern val yyin_stream; extern const wchar_t *spec_file; extern val spec_file_str; extern val form_to_ln_hash; -extern val ln_to_forms_hash; int yyparse(void); val get_spec(void); void yyerror(const char *s); @@ -68,7 +68,6 @@ int opt_loglevel = 1; /* 0 - quiet; 1 - normal; 2 - verbose */ int errors; val form_to_ln_hash; -val ln_to_forms_hash; static val prepared_error_message; @@ -649,8 +648,7 @@ val source_loc(val form) void parse_init(void) { protect(&yyin_stream, &prepared_error_message, - &form_to_ln_hash, &ln_to_forms_hash, (val *) 0); + &form_to_ln_hash, (val *) 0); form_to_ln_hash = make_hash(t, nil, nil); - ln_to_forms_hash = make_hash(nil, t, nil); } @@ -907,7 +907,6 @@ static val choose_quote(val quoted_form) val rl(val form, val lineno) { sethash(form_to_ln_hash, form, lineno); - pushhash(ln_to_forms_hash, lineno, form); return form; } |