Changeset 397


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

MACPTRs may say what they're pointing to, though this idea is hard to
bootstrap.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/level-1/l1-io.lisp

    r211 r397  
    14881488
    14891489(defun write-a-macptr (macptr stream)
    1490   (let ((null (%null-ptr-p macptr)))
     1490  (let* ((null (%null-ptr-p macptr))
     1491         (ftype (%macptr-ftype macptr))
     1492         (ftype-info (if ftype (unparse-foreign-type ftype))))
    14911493    (print-unreadable-object (macptr stream)
    14921494      (if null
    1493         (%write-string "A Null Mac Pointer" stream)
     1495        (progn
     1496          (%write-string "A Null Mac Pointer" stream)
     1497          (when ftype-info
     1498            (format stream " to foreign type ~s" ftype-info)))
    14941499        (progn
    14951500          (pp-start-block stream "A Mac Pointer")
    14961501          (%write-macptr-termination-info macptr stream)
     1502          (when ftype-info
     1503            (format stream " to foreign type ~s at" ftype-info))
    14971504          (stream-write-char stream #\ )
    14981505          (write-an-integer (%ptr-to-int macptr) stream 16. t))))))
Note: See TracChangeset for help on using the changeset viewer.