summaryrefslogtreecommitdiff
path: root/specs/CH08.xml
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-04-11 19:20:23 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2019-04-16 18:46:02 -0400
commit6f75d2fefcf4e5c158546590bcfafc73293e4038 (patch)
treea162363dd02b63feedc5ab52c8c5af32f666afb7 /specs/CH08.xml
parentd9afa0ca6e677b446ce43f2f189c08cfe87f68f3 (diff)
add (with an external script "markup-literallayout") <code> tags
within <literallayout>. Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'specs/CH08.xml')
-rw-r--r--specs/CH08.xml22
1 files changed, 11 insertions, 11 deletions
diff --git a/specs/CH08.xml b/specs/CH08.xml
index 2a987cc..5d867e6 100644
--- a/specs/CH08.xml
+++ b/specs/CH08.xml
@@ -99,22 +99,22 @@ call, it should specify the address
of a NULL-terminated array of type
<function>XtCallbackList</function>.
</para>
-<literallayout >
-typedef struct {
- XtCallbackProc callback;
- XtPointer closure;
-} XtCallbackRec, *XtCallbackList;
+<literallayout>
+<code>typedef struct {</code>
+<code> XtCallbackProc callback;</code>
+<code> XtPointer closure;</code>
+<code>} XtCallbackRec, *XtCallbackList;</code>
</literallayout>
<para>
For example, the callback list for procedures A and B with client data
clientDataA and clientDataB, respectively, is
</para>
-<literallayout >
-static XtCallbackRec callbacks[] = {
- {A, (XtPointer) clientDataA},
- {B, (XtPointer) clientDataB},
- {(XtCallbackProc) NULL, (XtPointer) NULL}
-};
+<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>
<para>
Although callback lists are passed by address in arglists