mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Removed debug code
This commit is contained in:
parent
2ce058bf12
commit
36d0485288
2 changed files with 3 additions and 7 deletions
4
cgen.scm
4
cgen.scm
|
@ -981,7 +981,7 @@
|
|||
(emit "static void c_entry_pt(argc, env,cont) int argc; closure env,cont; { "))
|
||||
(else
|
||||
(emit (string-append "void c_" (lib:name->string lib-name) "_entry_pt(argc, cont,value) int argc; closure cont; object value;{ "))
|
||||
(emit (string-append "printf(\"init " (lib:name->string lib-name) "\\n\");"))
|
||||
; DEBUG (emit (string-append "printf(\"init " (lib:name->string lib-name) "\\n\");"))
|
||||
))
|
||||
|
||||
;; Initialize global table
|
||||
|
@ -1082,7 +1082,7 @@
|
|||
(string-append "(" this-clo ".fn)(0, &" this-clo ", &" this-clo ");"))
|
||||
(emit "}")
|
||||
(emit "static void c_entry_pt_first_lambda(int argc, closure cont, object value) {")
|
||||
(emit (string-append "printf(\"init first lambda\\n\");"))
|
||||
; DEBUG (emit (string-append "printf(\"init first lambda\\n\");"))
|
||||
(emit compiled-program)))
|
||||
(else
|
||||
;; Do not use funcall1 macro as it might not have been defined
|
||||
|
|
|
@ -421,11 +421,7 @@ list assq(x,l) object x; list l;
|
|||
return boolean_f;}
|
||||
|
||||
list assoc(x,l) object x; list l;
|
||||
{
|
||||
printf("JAE DEBUG, assoc received: ");
|
||||
Cyc_display(l);
|
||||
printf("\n");
|
||||
if (nullp(l) || is_value_type(l) || type_of(l) != cons_tag) return boolean_f;
|
||||
{if (nullp(l) || is_value_type(l) || type_of(l) != cons_tag) return boolean_f;
|
||||
for (; !nullp(l); l = cdr(l))
|
||||
{register list la = car(l); if (boolean_f != equalp(x,car(la))) return la;}
|
||||
return boolean_f;}
|
||||
|
|
Loading…
Add table
Reference in a new issue