Changeset 327


Ignore:
Timestamp:
Jan 17, 2004, 7:58:52 PM (21 years ago)
Author:
Gary Byers
Message:

More pathname info for DESCRIBE. Use INSTANCE-SLOTS vice INSTANCE.SLOTS,
so .accessors will work on other instance types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/library/lispequ.lisp

    r269 r327  
    262262  %pathname-directory
    263263  %pathname-name
    264   %pathname-type
     264  %pathname-type)
     265
     266(def-accessors (logical-pathname) %svref
     267  ()                                    ; 'logical-pathname
     268  %pathname-directory
     269  %pathname-name
     270  %pathname-type 
    265271  %logical-pathname-host
    266272  %logical-pathname-version)
     
    941947;;; Doing this via %SLOT-REF traps if the slot is unbound
    942948(defmacro standard-instance-instance-location-access (instance location)
    943   `(%slot-ref (instance.slots ,instance) ,location))
     949  `(%slot-ref (instance-slots ,instance) ,location))
    944950
    945951;;; Get the "raw" contents of the slot, even if it's %SLOT-UNBOUND-MARKER.
    946952(defmacro %standard-instance-instance-location-access (instance location)
    947   `(%svref (instance.slots ,instance) ,location))
     953  `(%svref (instance-slots ,instance) ,location))
    948954
    949955(defmacro set-standard-instance-instance-location-access (instance location new)
    950   `(setf (%svref (instance.slots ,instance) ,location) ,new))
     956  `(setf (%svref (instance-slots ,instance) ,location) ,new))
    951957
    952958(defsetf standard-instance-instance-location-access
Note: See TracChangeset for help on using the changeset viewer.