diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2019-04-14 18:45:06 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2019-04-16 18:47:10 -0400 |
commit | aab9b50bb755d741ee54203f91bdfc464a95642f (patch) | |
tree | 1ea045c043e39dbccd3e6cf0a7fc0e6b4cad5696 /specs/CH08.xml | |
parent | aa871eb5c087f3af40e49e77378a04fa872c7465 (diff) | |
download | xorg-lib-libXt-aab9b50bb755d741ee54203f91bdfc464a95642f.tar.gz |
use programlisting tag rather than workaround for literallayout font.
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'specs/CH08.xml')
-rw-r--r-- | specs/CH08.xml | 26 |
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, |