X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=doc%2Fnotes.sgml;h=c4e86036a66c38184e5fd0ef2df771bf2dcbd997;hb=964218d5bff2c25270df2c2c8fb9a280d72067f5;hp=cdb5f6d8788a7e81bf3a5ecdd28392874f1f461d;hpb=f3c0481a74e3289b222c26051fc817cc69e133a6;p=uffi.git diff --git a/doc/notes.sgml b/doc/notes.sgml index cdb5f6d..c4e8603 100644 --- a/doc/notes.sgml +++ b/doc/notes.sgml @@ -77,8 +77,9 @@ Here is an example that should both methods being used for maximum cross-implementation optimization: +(uffi:def-type the-struct-type-def the-struct-type) (let ((a-foreign-struct (allocate-foreign-object 'the-struct-type))) - (uffi-declare 'the-struct-type a-foreign-struct) + (declare 'the-struct-type-def a-foreign-struct) (get-slot-value a-foreign-struct 'the-struct-type 'field-name))