mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Cleanup of symbol code
This commit is contained in:
parent
695131a4d8
commit
1af80a9331
2 changed files with 4 additions and 4 deletions
6
cgen.scm
6
cgen.scm
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue