diff options
Diffstat (limited to 'specs')
-rw-r--r-- | specs/CH01.xml | 2 | ||||
-rw-r--r-- | specs/CH02.xml | 6 | ||||
-rw-r--r-- | specs/CH09.xml | 36 | ||||
-rw-r--r-- | specs/CH10.xml | 6 | ||||
-rw-r--r-- | specs/appB.xml | 8 |
5 files changed, 29 insertions, 29 deletions
diff --git a/specs/CH01.xml b/specs/CH01.xml index 5282382..6a493c8 100644 --- a/specs/CH01.xml +++ b/specs/CH01.xml @@ -100,7 +100,7 @@ or On a POSIX-based system, the Intrinsics object library file is named <function>libXt.a</function> -and is usually referenced as \-lXt when linking the application. +and is usually referenced as -lXt when linking the application. </para> </sect1> diff --git a/specs/CH02.xml b/specs/CH02.xml index 6e2e163..0abf557 100644 --- a/specs/CH02.xml +++ b/specs/CH02.xml @@ -544,7 +544,7 @@ function calls with the specified <emphasis remap='I'>display_string</emphasis>. If <emphasis remap='I'>display_string</emphasis> is NULL, <xref linkend='XtOpenDisplay' xrefstyle='select: title'/> -uses the current value of the \-display option specified in <emphasis remap='I'>argv</emphasis>. +uses the current value of the -display option specified in <emphasis remap='I'>argv</emphasis>. If no display is specified in <emphasis remap='I'>argv</emphasis>, the user's default display is retrieved from the environment. On POSIX-based systems, @@ -559,8 +559,8 @@ If this succeeds, then calls <xref linkend='XtDisplayInitialize' xrefstyle='select: title'/> and passes it the opened display and -the value of the \-name option specified in <emphasis remap='I'>argv</emphasis> as the application name. -If no \-name option is specified +the value of the -name option specified in <emphasis remap='I'>argv</emphasis> as the application name. +If no -name option is specified and <emphasis remap='I'>application_name</emphasis> is non-NULL, <emphasis remap='I'>application_name</emphasis> is passed to <xref linkend='XtDisplayInitialize' xrefstyle='select: title'/>. 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 “\\” as an escape +The converter recognizes the backslash character “\” 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->addr != NULL) { \\ - if (toVal->size < sizeof(type)) { \\ - toVal->size = sizeof(type); \\ - return False; \\ - } \\ - *(type*)(toVal->addr) = (value); \\ - } \\ - else { \\ - static type static_val; \\ - static_val = (value); \\ - toVal->addr = (XPointer)&static_val; \\ - } \\ - toVal->size = sizeof(type); \\ - return True; \\ +#define done(type, value) \ + { \ + if (toVal->addr != NULL) { \ + if (toVal->size < sizeof(type)) { \ + toVal->size = sizeof(type); \ + return False; \ + } \ + *(type*)(toVal->addr) = (value); \ + } \ + else { \ + static type static_val; \ + static_val = (value); \ + toVal->addr = (XPointer)&static_val; \ + } \ + toVal->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, &num_params); *converter_data = (char *) False; return False; diff --git a/specs/CH10.xml b/specs/CH10.xml index be4232d..519f428 100644 --- a/specs/CH10.xml +++ b/specs/CH10.xml @@ -552,9 +552,9 @@ The following illustrates Pushbutton's default translation table: </para> <programlisting> static String defaultTranslations = - "<EnterWindow>: Highlight()\\n\\ - <LeaveWindow>: Unhighlight()\\n\\ - <Btn1Down>: Set()\\n\\ + "<EnterWindow>: Highlight()\n\ + <LeaveWindow>: Unhighlight()\n\ + <Btn1Down>: Set()\n\ <Btn1Up>: Notify() Unset()"; </programlisting> <para> diff --git a/specs/appB.xml b/specs/appB.xml index ec87056..ef67404 100644 --- a/specs/appB.xml +++ b/specs/appB.xml @@ -54,11 +54,11 @@ Syntax </row> <row> <entry>directive</entry> - <entry>= ( "#replace" | "#override" | "#augment" ) "\\\\n"</entry> + <entry>= ( "#replace" | "#override" | "#augment" ) "\\n"</entry> </row> <row> <entry>production</entry> - <entry>= lhs ":" rhs "\\\\n"</entry> + <entry>= lhs ":" rhs "\\n"</entry> </row> <row> <entry>lhs</entry> @@ -70,7 +70,7 @@ Syntax </row> <row> <entry>keychar</entry> - <entry>= [ "^" | "$" | "\\\\" ] <ISO Latin 1 character></entry> + <entry>= [ "^" | "$" | "\\" ] <ISO Latin 1 character></entry> </row> <row> <entry>event</entry> @@ -142,7 +142,7 @@ The <emphasis remap='I'>params</emphasis> field is parsed into a list of values that will be passed to the named action procedure. A <emphasis remap='I'>quoted string</emphasis> may contain an embedded quotation mark if the quotation mark is preceded by a single backslash (\). The -three-character sequence "\\\"" is interpreted as "single backslash +three-character sequence "\\"" is interpreted as "single backslash followed by end-of-string". </para> <para><emphasis role='strong'>Modifier Names</emphasis></para> |