diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-04-05 22:53:59 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-04-05 22:53:59 -0700 |
commit | 1a18cf60f6f675fc6e0508cae87c4990706046e8 (patch) | |
tree | 6ef033de3ca830ac27fd4fdc46ad7f908ac197a6 /parser.y | |
parent | 0dc63a9258e21d09783f02b89e9b1ab1abbee7eb (diff) | |
download | txr-1a18cf60f6f675fc6e0508cae87c4990706046e8.tar.gz txr-1a18cf60f6f675fc6e0508cae87c4990706046e8.tar.bz2 txr-1a18cf60f6f675fc6e0508cae87c4990706046e8.zip |
lib: get rid of preprocessor macros for packages.
The identifiers user_package, system_package and
keyword_package are preprocessor symbols that expand to other
preprocessor symbols for no good reason. Time to get rid of
this.
* lib.c (system_package_var, keyword_package_var,
user_package_var): Variables renamed to system_package,
keyword_package and user_package.
(symbol_package, keywordp, obj_init): Fix variable
references to follow rename.
* lib.h (keyword_package, user_package, system_package):
Macros removed.
(system_package_var, keyword_package_var,
user_package_var): Variables renamed.
* eval.c (eval_init): Fix variable references to
follow rename.
* parser.y (sym_helper): Likewise.
Diffstat (limited to 'parser.y')
-rw-r--r-- | parser.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1343,7 +1343,7 @@ static val sym_helper(parser_t *parser, wchar_t *lexeme, val meta_allowed) val sym_name = string(colon + 1); scrub_scanner(parser->scanner, SYMTOK, tokfree); free(tokfree); - sym = intern(sym_name, keyword_package_var); + sym = intern(sym_name, keyword_package); } else if (colon != 0) { val pkg_name = string(lexeme); val sym_name = string(colon + 1); |