summaryrefslogtreecommitdiff
path: root/specs/CH08.xml
diff options
context:
space:
mode:
Diffstat (limited to 'specs/CH08.xml')
-rw-r--r--specs/CH08.xml26
1 files changed, 13 insertions, 13 deletions
diff --git a/specs/CH08.xml b/specs/CH08.xml
index 40fd053..926e8d8 100644
--- a/specs/CH08.xml
+++ b/specs/CH08.xml
@@ -102,23 +102,23 @@ call, it should specify the address
of a NULL-terminated array of type
<function>XtCallbackList</function>.
</para>
-<literallayout>
-<code>typedef struct {</code>
-<code> XtCallbackProc callback;</code>
-<code> XtPointer closure;</code>
-<code>} XtCallbackRec, *XtCallbackList;</code>
-</literallayout>
+<programlisting>
+typedef struct {
+ XtCallbackProc callback;
+ XtPointer closure;
+} XtCallbackRec, *XtCallbackList;
+</programlisting>
<para>
For example, the callback list for procedures A and B with client data
clientDataA and clientDataB, respectively, is
</para>
-<literallayout>
-<code>static XtCallbackRec callbacks[] = {</code>
-<code> {A, (XtPointer) clientDataA},</code>
-<code> {B, (XtPointer) clientDataB},</code>
-<code> {(XtCallbackProc) NULL, (XtPointer) NULL}</code>
-<code>};</code>
-</literallayout>
+<programlisting>
+static XtCallbackRec callbacks[] = {
+ {A, (XtPointer) clientDataA},
+ {B, (XtPointer) clientDataB},
+ {(XtCallbackProc) NULL, (XtPointer) NULL}
+};
+</programlisting>
<para>
Although callback lists are passed by address in arglists
and varargs lists,