home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
n
/
newmarch.zip
/
ERRATA
< prev
next >
Wrap
INI File
|
1992-11-24
|
2KB
|
69 lines
[This file was last modified on 11 Sept 1992]
This file contains corrections and errata for the book "The X Window
System and Motif" by Jan D Newmarch (1992). Sorry if these mistakes
have caused any problems.
Jan
--------------------------------------------------------------------
p.74 Program 7 is missing a definition of the variable "depth".
Add "int depth;" at line 7:
initX ()
{ int depth;
...
--------------------------------------------------------------------
p105 Program 11 mispells "XmNarmCallback" as "XNarmCallback" in
line 15 of p105. Make this change:
XtAddCallback (arrow_widget, XmNarmCallback,
^
--------------------------------------------------------------------
p113 In program 12, The declaration of function "main" disagrees
with its definition. Either change line 10 of the program
to
int main ();
or line 24 to
void main (argc, argv)
--------------------------------------------------------------------
p113 In program 12, a semicolon was omitted at the end of line 28.
Widget app_shell;
^
--------------------------------------------------------------------
p159 Program 19 is missing a forward declaration of the function
"CloseCB ()". Add this say to line 4 of the program:
void CloseCB ();
--------------------------------------------------------------------
p166 In program 20, the function "edit_saveCB ()" is missing a
definition of the variable "args". Change the first line
of p166 to
{ Arg args[MAX_ARGS];
--------------------------------------------------------------------
p167 In program 20, the variable "edit_dialog" is declared local to
function "PopupEdit ()" in line 21 of p167. This variable
is used by other functions such as "edit_cancel ()". Make
it a global variable.
--------------------------------------------------------------------
p184 In program 21, the "XtAddCallback ()" in function "CreateHelp()"
(line 10, p184) is missing an argument. Change this to
XtAddCallback (message_box, XmNokCallback, CloseCB, NULL);
^^^^^^^^
--------------------------------------------------------------------
p202 In lines 26 and 30, the value "XrmoptionNextArg" is incorrect.
It should be "XrmoptionSepArg"
^^^
--------------------------------------------------------------------
p204 In line 11, XtOffSet should be XtOffset.
^