Changeset 10045


Ignore:
Timestamp:
Jul 15, 2008, 1:36:30 PM (11 years ago)
Author:
gb
Message:

C 'sizeof' can be used on parenthesized expressions as well as types.
We don't yet handle expressions; ignore errors if parsing a type fails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/library/parse-ffi.lisp

    r6977 r10045  
    256256           (noperands (length operands)))
    257257      (case operator
    258         (c::resolve-type (let* ((foreign-type  (parse-c-ffi-type (car operands))))
     258        (c::resolve-type (let* ((foreign-type  (ignore-errors (parse-c-ffi-type (car operands)))))
    259259                           (when foreign-type
    260260                             (setf (cdr expression) nil
     
    281281                  (c::~ (lognot operand))
    282282                  (c::size-of
    283                    (let* ((bits (ensure-foreign-type-bits operand)))
     283                   (let* ((bits (ignore-errors (ensure-foreign-type-bits operand))))
    284284                     (when bits
    285285                       (ash (+ bits 7) -3))))
Note: See TracChangeset for help on using the changeset viewer.