-<?xml version='1.0' ?> <!-- -*- DocBook -*- -->
+<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
- "file:///usr/share/sgml/docbook/dtd/xml/4.2/docbookx.dtd" [
-<!ENTITY % myents SYSTEM "entities.xml">
+ "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
+<!ENTITY % myents SYSTEM "entities.inc">
%myents;
]>
<chapter id="notes">
<title>Programming Notes</title>
- <sect1>
+ <sect1 id="impl-specific">
<title>Implementation Specific Notes</title>
<para>
</para>
</sect2>
</sect1>
- <sect1>
+ <sect1 id="object-represen">
<title>Foreign Object Representation and Access</title>
<para> There are two main approaches used to represent foreign
objects: an integer that represents an address in memory, and a
</para>
</sect1>
- <sect1>
+ <sect1 id="optimizing">
<title>Optimizing Code Using UFFI</title>
<sect2>
<title>Background</title>
<para>
Here is an example that should both methods being used for
maximum cross-implementation optimization:
- <programlisting>
+ <screen>
(uffi:def-type the-struct-type-def the-struct-type)
(let ((a-foreign-struct (allocate-foreign-object 'the-struct-type)))
(declare 'the-struct-type-def a-foreign-struct)
(get-slot-value a-foreign-struct 'the-struct-type 'field-name))
- </programlisting>
+ </screen>
</para>
</sect2>
</sect1>