Changeset 404


Ignore:
Timestamp:
Jan 25, 2004, 2:15:36 PM (21 years ago)
Author:
Gary Byers
Message:

Start to make RLET assert foreign-type ordinals, then give up on the idea.
(FOREIGN-TYPES would need to work earlier in the cold load than they do.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/lib/macros.lisp

    r338 r404  
    25302530      (if (typep ftype 'foreign-record-type)
    25312531        (setq result (nconc result (%foreign-record-field-forms name ftype record-name inits)))
    2532         (when inits
    2533           (if (and ftype (null (cdr inits)))
     2532        (progn
     2533          ;(setq result (nconc result `((%assert-macptr-ftype ,name ,ftype))))
     2534          (when inits
     2535            (if (and ftype (null (cdr inits)))
    25342536              (setq result
    25352537                    (nconc result
     
    25372539                              ,(car inits)))))
    25382540              (error "Unexpected or malformed initialization forms: ~s in field type: ~s"
    2539                      inits record-name)))))))
     2541                     inits record-name))))))))
    25402542
    25412543(defun %foreign-record-field-forms (ptr record-type record-name inits)
     
    25452547  (let* ((result ()))
    25462548    (do* ()
    2547          ((null inits) (nreverse result))
     2549         ((null inits)
     2550          `((progn
     2551              ;(%assert-macptr-ftype ,ptr ,record-type)
     2552              ,@(nreverse result))))
    25482553      (let* ((accessor (decompose-record-accessor (pop inits)))
    25492554             (valform (pop inits)))
Note: See TracChangeset for help on using the changeset viewer.