Changeset 14462
- Timestamp:
- Dec 1, 2010, 2:01:09 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/source/objc-bridge/objc-support.lisp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/objc-bridge/objc-support.lisp
r14377 r14462 48 48 (incf n))))) 49 49 50 50 51 (defun %note-protocol (p) 51 (with-macptrs ((cname (objc-message-send p "name" :address))) 52 ;; In Cocotron (which is ultimately based on the GNU ObjC runtime), 53 ;; it may be the case that some Protocol objects aren't fully initialized 54 ;; when this code runs, hence the sleazy use of PREF here. 55 (with-macptrs ((cname #+cocotron-objc (pref p #>Protocol.nameCString) 56 #-cocotron-objc (objc-message-send p "name" :address))) 52 57 (let* ((namelen (%cstrlen cname)) 53 58 (name (make-string namelen))) … … 64 69 65 70 (defun note-class-protocols (class) 66 #-(or apple-objc-2.0 cocotron-objc)71 #-(or apple-objc-2.0) 67 72 (do* ((protocols (pref class :objc_class.protocols) 68 73 (pref protocols :objc_protocol_list.next))) … … 73 78 (with-macptrs ((p (paref list (:* (:* (:struct :<P>rotocol))) i))) 74 79 (%note-protocol p)))))) 75 #+(or apple-objc-2.0 cocotron-objc)80 #+(or apple-objc-2.0) 76 81 (rlet ((p-out-count :int 0)) 77 82 (with-macptrs ((protocols (#_class_copyProtocolList class p-out-count)))
Note:
See TracChangeset
for help on using the changeset viewer.
