summaryrefslogtreecommitdiff
path: root/specs
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-04-19 18:53:13 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2019-04-21 18:27:14 -0400
commitdca1a94c4d08009af860012cba6c4849f4a04a9a (patch)
treea27d00577db76e3fa129cb993ae368128f53dd28 /specs
parentd2df1c47e7f0511c2f1c269bec25a0c4b519fe88 (diff)
fill in prototype information for a code example, as well as for
the XtRFunction resource type. Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'specs')
-rw-r--r--specs/CH01.xml8
-rw-r--r--specs/CH09.xml2
2 files changed, 5 insertions, 5 deletions
diff --git a/specs/CH01.xml b/specs/CH01.xml
index 6a493c8..8d77f87 100644
--- a/specs/CH01.xml
+++ b/specs/CH01.xml
@@ -1754,9 +1754,9 @@ static XtResource resources[] = {
}
/* Forward declarations of procedures */
-static void ClassInitialize();
-static void Initialize();
-static void Realize();
+static void ClassInitialize(void);
+static void Initialize(Widget, Widget, ArgList, Cardinal*);
+static void Realize(Widget, XtValueMask*, XSetWindowAttributes*);
static void SetText();
static void GetText();
.
@@ -2297,7 +2297,7 @@ a class structure is constant.
The following example provides the class initialization procedure for a Label class.
</para>
<programlisting>
-static void ClassInitialize()
+static void ClassInitialize(void)
{
XtSetTypeConverter(XtRString, XtRJustify, CvtStringToJustify,
NULL, 0, XtCacheNone, NULL);
diff --git a/specs/CH09.xml b/specs/CH09.xml
index 6fe5dd8..6e1aa47 100644
--- a/specs/CH09.xml
+++ b/specs/CH09.xml
@@ -266,7 +266,7 @@ The Intrinsics define the following resource types:
</row>
<row>
<entry><function>XtRFunction</function></entry>
- <entry>(*)()</entry>
+ <entry>(*)(Widget)</entry>
</row>
<row>
<entry><function>XtRGeometry</function></entry>