diff options
author | Greg J. Badros <gjb@cs.washington.edu> | 1999-12-16 20:48:05 +0000 |
---|---|---|
committer | Greg J. Badros <gjb@cs.washington.edu> | 1999-12-16 20:48:05 +0000 |
commit | 0c95b57d77efbe82bb0ade78df5d78d6d0f2a641 (patch) | |
tree | 4cd49dc6b94effdaed1476f397dc7c82d371b008 /libguile/print.c | |
parent | 9c24ff3e6c28e7b9adc6b386ea0033e8a947c40e (diff) | |
download | guile-0c95b57d77efbe82bb0ade78df5d78d6d0f2a641.tar.gz |
* coop-threads.c: Remove K&R function headers.
* scm_validate.h: Added SCM_VALIDATE_THREAD.
* *.c: Remove SCM_NIMP(X) when it is an extraneous pre-test given
that SCM_FOOP macros all now include SCM_NIMP in their expansion.
This simplifies lots of code, making it far more readable.
Diffstat (limited to 'libguile/print.c')
-rw-r--r-- | libguile/print.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libguile/print.c b/libguile/print.c index c96853c25..31f719328 100644 --- a/libguile/print.c +++ b/libguile/print.c @@ -417,7 +417,7 @@ taloop: env = SCM_ENV (exp); scm_puts ("#<procedure", port); } - if (SCM_NIMP (name) && SCM_ROSTRINGP (name)) + if (SCM_ROSTRINGP (name)) { scm_putc (' ', port); scm_puts (SCM_ROCHARS (name), port); @@ -708,7 +708,7 @@ scm_prin1 (SCM exp, SCM port, int writingp) /* If PORT is a print-state/port pair, use that. Else create a new print-state. */ - if (SCM_NIMP (port) && SCM_PORT_WITH_PS_P (port)) + if (SCM_PORT_WITH_PS_P (port)) { pstate_scm = SCM_PORT_WITH_PS_PS (port); port = SCM_PORT_WITH_PS_PORT (port); @@ -794,7 +794,7 @@ scm_iprlist (char *hdr,SCM exp,int tlr,SCM port,scm_print_state *pstate) O(depth * N) instead of O(N^2). */ hare = SCM_CDR (exp); tortoise = exp; - while (SCM_NIMP (hare) && SCM_ECONSP (hare)) + while (SCM_ECONSP (hare)) { if (hare == tortoise) goto fancy_printing; |