1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-11 14:21:10 +02:00

* print.c: Added #include "alist.h"

This commit is contained in:
Mikael Djurfeldt 1996-09-18 19:35:21 +00:00
parent d14af9f2d3
commit dbef8851ac

View file

@ -51,6 +51,7 @@
#include "read.h" #include "read.h"
#include "weaks.h" #include "weaks.h"
#include "unif.h" #include "unif.h"
#include "alist.h"
#include "print.h" #include "print.h"
@ -297,8 +298,8 @@ taloop:
SCM code = SCM_CODE (exp); SCM code = SCM_CODE (exp);
exp = scm_unmemocopy (code, exp = scm_unmemocopy (code,
SCM_EXTEND_ENV (SCM_CAR (code), SCM_EXTEND_ENV (SCM_CAR (code),
SCM_EOL, SCM_EOL,
SCM_ENV (exp))); SCM_ENV (exp)));
scm_iprlist ("#<CLOSURE ", exp, '>', port, writing); scm_iprlist ("#<CLOSURE ", exp, '>', port, writing);
} }
break; break;
@ -310,17 +311,17 @@ taloop:
case scm_tc7_string: case scm_tc7_string:
if (writing) if (writing)
{ {
scm_gen_putc ('\"', port); scm_gen_putc ('"', port);
for (i = 0; i < SCM_ROLENGTH (exp); ++i) for (i = 0; i < SCM_ROLENGTH (exp); ++i)
switch (SCM_ROCHARS (exp)[i]) switch (SCM_ROCHARS (exp)[i])
{ {
case '\"': case '"':
case '\\': case '\\':
scm_gen_putc ('\\', port); scm_gen_putc ('\\', port);
default: default:
scm_gen_putc (SCM_ROCHARS (exp)[i], port); scm_gen_putc (SCM_ROCHARS (exp)[i], port);
} }
scm_gen_putc ('\"', port); scm_gen_putc ('"', port);
break; break;
} }
else else
@ -363,7 +364,7 @@ taloop:
#endif #endif
case '(': case '(':
case ')': case ')':
case '\"': case '"':
case ';': case ';':
case SCM_WHITE_SPACES: case SCM_WHITE_SPACES:
case SCM_LINE_INCREMENTORS: case SCM_LINE_INCREMENTORS: