X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=doc%2Fref.sgml;h=aaf1feac499abe4fde3a6c841017de27e7a7328e;hb=63b0648b562bc5a8db5ef013804b1ff4e5c52314;hp=33f8a568d7e317d990aade3ca42ee60cf8efaa09;hpb=0e2874cd053926b5687403d7a824f8eea28f847b;p=uffi.git diff --git a/doc/ref.sgml b/doc/ref.sgml index 33f8a56..aaf1fea 100644 --- a/doc/ref.sgml +++ b/doc/ref.sgml @@ -27,34 +27,16 @@ - - uffi-declare - - This is used wherever a declare - expression can be placed. For example: - - - -(let ((my-structure (uffi:allocate-foreign-object 'a-struct))) - (uffi:uffi-declare a-struct my-structure)) - - - - - - slot-type + + def-type - This is used inside of defclass and - defstruct expressions to set the type - for a field. Because the type identifier is not evaluated in - &cl;, the expression must be backquoted for effect. For - example: - + This is used wherever a &cl; deftype + expression can be placed. Used to declare types to +the compiler for optimization. Currently, on &cmucl; takes advantage +of this. -(eval - `(defclass a-class () - ((char-ptr :type ,(uffi:slot-type (* :char)))))) +(uffi:def-type my-struct-def my-struct-foreign-type)