[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
guile/guile-core/libguile eval.c
From: |
Marius Vollmer |
Subject: |
guile/guile-core/libguile eval.c |
Date: |
Sun, 20 May 2001 16:39:55 -0700 |
CVSROOT: /cvs
Module name: guile
Changes by: Marius Vollmer <address@hidden> 01/05/20 16:39:55
Modified files:
guile-core/libguile: eval.c
Log message:
Use SCM_EQ_P insteda of `==' or `!=' in certain
places. (scm_c_improper_memq): Return q instead of SCM_BOOL_T.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/guile/guile-core/libguile/eval.c.diff?cvsroot=OldCVS&tr1=1.221&tr2=1.222&r1=text&r2=text
Patches:
Index: guile/guile-core/libguile/eval.c
diff -u guile/guile-core/libguile/eval.c:1.221
guile/guile-core/libguile/eval.c:1.222
--- guile/guile-core/libguile/eval.c:1.221 Sat May 19 17:35:43 2001
+++ guile/guile-core/libguile/eval.c Sun May 20 16:39:55 2001
@@ -302,7 +302,7 @@
}
#endif
#ifdef USE_THREADS
- if (SCM_CAR (vloc) != var)
+ if (!SCM_EQ_P (SCM_CAR (vloc), var))
goto race;
#endif
SCM_SETCAR (vloc, iloc);
@@ -357,7 +357,7 @@
#endif
#ifdef USE_THREADS
- if (SCM_CAR (vloc) != var)
+ if (!SCM_EQ_P (SCM_CAR (vloc), var))
{
/* Some other thread has changed the very cell we are working
on. In effect, it must have done our job or messed it up
@@ -411,7 +411,7 @@
{
SCM sym =
scm_module_reverse_lookup (scm_env_module (env), SCM_GLOC_VAR (c));
- if (sym == SCM_BOOL_F)
+ if (SCM_EQ_P (sym, SCM_BOOL_F))
sym = sym_three_question_marks;
SCM_SETCAR (form, sym);
}
@@ -639,7 +639,7 @@
SCM_SYNTAX(s_lambda, "lambda", scm_makmmacro, scm_m_lambda);
SCM_GLOBAL_SYMBOL(scm_sym_lambda, s_lambda);
-/* Return #t if OBJ is `eq?' to one of the elements of LIST or to the
+/* Return true if OBJ is `eq?' to one of the elements of LIST or to the
cdr of the last cons. (Thus, LIST is not required to be a proper
list and when OBJ also found in the improper ending.) */
@@ -649,7 +649,7 @@
for (; SCM_CONSP (list); list = SCM_CDR (list))
{
if (SCM_EQ_P (SCM_CAR (list), obj))
- return SCM_BOOL_T;
+ return 1;
}
return SCM_EQ_P (list, obj);
}