mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-15 16:57:35 +02:00
WIP
This commit is contained in:
parent
40bc76ac65
commit
1fb0ae623b
2 changed files with 3 additions and 5 deletions
1
cgen.scm
1
cgen.scm
|
@ -817,6 +817,7 @@
|
||||||
(else #f))
|
(else #f))
|
||||||
|
|
||||||
(define (allocate-symbol sym)
|
(define (allocate-symbol sym)
|
||||||
|
(trace:error `(JAE DEBUG allocate-symbol ,sym ,(Cyc-reserved-symbol? sym)))
|
||||||
(if (and (not (member sym *symbols*))
|
(if (and (not (member sym *symbols*))
|
||||||
(not (Cyc-reserved-symbol? sym)))
|
(not (Cyc-reserved-symbol? sym)))
|
||||||
(set! *symbols* (cons sym *symbols*))))
|
(set! *symbols* (cons sym *symbols*))))
|
||||||
|
|
|
@ -614,11 +614,8 @@ object Cyc_is_symbol(object o){
|
||||||
return boolean_f;}
|
return boolean_f;}
|
||||||
|
|
||||||
object Cyc_is_reserved_symbol(object o) {
|
object Cyc_is_reserved_symbol(object o) {
|
||||||
TODO: why did this return #t all the time in self-compiled cyclone
|
if (Cyc_is_symbol(o) == boolean_t &&
|
||||||
when equalp was used below instead of equal? should switch them and
|
equalp(o, quote_Cyc_191procedure) == boolean_t)
|
||||||
debug to investigate. is this the same reason why the Cyc_procedure error
|
|
||||||
is thrown when trying to self-compile eval.c????
|
|
||||||
if (Cyc_is_symbol(o) == boolean_t && equal(o, quote_Cyc_191procedure))
|
|
||||||
return boolean_t;
|
return boolean_t;
|
||||||
return boolean_f; }
|
return boolean_f; }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue