;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: objects.lisp,v 1.10 2002/12/30 20:49:12 kevin Exp $
+;;;; $Id: objects.lisp,v 1.12 2003/05/30 18:46:45 kevin Exp $
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
#+mcl
(defsetf deref-pointer deref-pointer-set)
-#+(or lispworks (and mcl (not openmcl))) ;; with LW, deref is a character
+#+(or (and mcl (not openmcl))) ;; with LW, deref is a character
(defmacro ensure-char-character (obj)
obj)
-#+(or allegro cmu sbcl scl openmcl)
+#+(or allegro lispworks cmu sbcl scl openmcl)
(defmacro ensure-char-character (obj)
`(code-char ,obj))
(defmacro ensure-char-integer (obj)
obj)
+;; Returns the numeric value of a byte at a pointer
+;; Highly optimized
+(defmacro byte-value-at-pointer (ptr)
+ )
+
(defmacro pointer-address (obj)
#+(or cmu scl)
`(system:sap-int (alien:alien-sap ,obj))