summaryrefslogtreecommitdiff
path: root/specs/CH09.xml
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-04-15 17:13:05 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2019-04-16 18:48:58 -0400
commitcbf4dd22eedc33309efacfb2a1a795debdd44b3b (patch)
tree1482e541ab88ad2d69ef98148f7c123de5c53dfb /specs/CH09.xml
parent1474d2e826773f3f5aa61ef2ad827c977ee5d084 (diff)
trim spurious backslashes from translation of nroff to docbook xml
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'specs/CH09.xml')
-rw-r--r--specs/CH09.xml36
1 files changed, 18 insertions, 18 deletions
diff --git a/specs/CH09.xml b/specs/CH09.xml
index 09993a0..27591b6 100644
--- a/specs/CH09.xml
+++ b/specs/CH09.xml
@@ -1573,7 +1573,7 @@ Alphabetic case is not significant in the conversion.
The String-to-CommandArgArray conversion parses a String into an
array of strings.
White space characters separate elements of the command line.
-The converter recognizes the backslash character &ldquo;\\&rdquo; as an escape
+The converter recognizes the backslash character &ldquo;\&rdquo; as an escape
character to allow the following white space character to be part of the
array element.
</para>
@@ -1943,22 +1943,22 @@ a function of the particular display (and colormap).
</para>
<programlisting>
-#define done(type, value) \\
- { \\
- if (toVal-&gt;addr != NULL) { \\
- if (toVal-&gt;size &lt; sizeof(type)) { \\
- toVal-&gt;size = sizeof(type); \\
- return False; \\
- } \\
- *(type*)(toVal-&gt;addr) = (value); \\
- } \\
- else { \\
- static type static_val; \\
- static_val = (value); \\
- toVal-&gt;addr = (XPointer)&amp;static_val; \\
- } \\
- toVal-&gt;size = sizeof(type); \\
- return True; \\
+#define done(type, value) \
+ { \
+ if (toVal-&gt;addr != NULL) { \
+ if (toVal-&gt;size &lt; sizeof(type)) { \
+ toVal-&gt;size = sizeof(type); \
+ return False; \
+ } \
+ *(type*)(toVal-&gt;addr) = (value); \
+ } \
+ else { \
+ static type static_val; \
+ static_val = (value); \
+ toVal-&gt;addr = (XPointer)&amp;static_val; \
+ } \
+ toVal-&gt;size = sizeof(type); \
+ return True; \
}
static Boolean CvtStringToPixel(
@@ -2001,7 +2001,7 @@ static Boolean CvtStringToPixel(
"noColormap",
"cvtStringToPixel",
"XtToolkitError",
- "Cannot allocate colormap entry for \\"%s\\"",
+ "Cannot allocate colormap entry for \"%s\"",
params, &amp;num_params);
*converter_data = (char *) False;
return False;