Cleanup of symbol code

This commit is contained in:
Justin Ethier 2015-05-22 21:54:24 -04:00
parent 695131a4d8
commit 1af80a9331
2 changed files with 4 additions and 4 deletions

View file

@ -949,8 +949,7 @@
;; Emit symbol definitions
(for-each
(lambda (sym)
(emit*
"defsymbol(" (mangle sym) ", " (symbol->string sym) ");"))
(emit* "defsymbol(" (mangle sym) ");"))
*symbols*)
;; Emit lambdas:
@ -990,7 +989,8 @@
(for-each
(lambda (sym)
(emit*
" quote_" (mangle sym) " = find_or_add_symbol(\"" (symbol->string sym) "\");"))
" quote_" (mangle sym) " = find_or_add_symbol(\""
(symbol->string sym) "\");"))
*symbols*)
;; Initialize global table

View file

@ -144,7 +144,7 @@ typedef symbol_type *symbol;
#define symbol_pname(x) (((symbol_type *) x)->pname)
#define symbol_plist(x) (((symbol_type *) x)->plist)
#define defsymbol(name,pname) \
#define defsymbol(name) \
static object quote_##name = nil;
/* Define numeric types */