When testing for combinations of NOT and GENERAL-CAR-CDR, refer to
authorTaylor R. Campbell <net/mumble/campbell>
Mon, 2 Feb 2009 15:33:38 +0000 (15:33 +0000)
committerTaylor R. Campbell <net/mumble/campbell>
Mon, 2 Feb 2009 15:33:38 +0000 (15:33 +0000)
the primitives, not to the values of the top-level variables by those
names.

v7/src/compiler/fggen/fggen.scm

index 0584b86cb3735a0f7b18ac3b09411940666e01d9..c1644924fe3994288a5cf3fc7d334136a4af3986 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: fggen.scm,v 4.45 2008/02/14 02:12:14 cph Exp $
+$Id: fggen.scm,v 4.46 2009/02/02 15:33:38 riastradh Exp $
 
 Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
     1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
@@ -575,11 +575,11 @@ USA.
 (define (generate/combination block continuation context expression)
   (scode/combination-components expression
     (lambda (operator operands)
-      (cond ((eq? not operator)
+      (cond ((eq? (ucode-primitive not) operator)
             (generate/conditional block continuation context
                                   (scode/make-conditional (car operands)
                                                           #F #T)))
-           ((and (eq? general-car-cdr operator)
+           ((and (eq? (ucode-primitive general-car-cdr) operator)
                  (let ((n (cadr operands)))
                    (and (exact-integer? n)
                         (positive? n))))