Changeset 447


Ignore:
Timestamp:
Jan 31, 2004, 6:55:22 PM (21 years ago)
Author:
Gary Byers
Message:

Unparse :VOID, use keywords more consistently when unparsing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/lib/foreign-types.lisp

    r418 r447  
    564564
    565565(def-foreign-type-method (root :unparse) (type)
    566   `(!!unknown-foreign-type!! ,(type-of type)))
     566  (if (eq type *void-foreign-type*)
     567    :void
     568    `(!!unknown-foreign-type!! ,(type-of type))))
    567569
    568570(def-foreign-type-method (root :type=) (type1 type2)
     
    841843(def-foreign-type-method (pointer :unparse) (type)
    842844  (let ((to (foreign-pointer-type-to type)))
    843     `(* ,(if to
     845    `(:* ,(if to
    844846             (%unparse-foreign-type to)
    845847             t))))
     
    10571059(def-foreign-type-method (record :unparse) (type)
    10581060  `(,(case (foreign-record-type-kind type)
    1059        (:struct 'struct)
    1060        (:union 'union)
     1061       (:struct :struct)
     1062       (:union :union)
    10611063       (t '???))
    10621064    ,(foreign-record-type-name type)
     
    14271429
    14281430(def-foreign-type void (root))
     1431(defvar *void-foreign-type* (parse-foreign-type :void)
    14291432(def-foreign-type address (* :void))
    14301433
Note: See TracChangeset for help on using the changeset viewer.