1 This is the change file for CWEB's COMMON under VAX/VMS.
4 1987 BL (Bjorn Larsen, University of Oslo)
7 01-FEB-1992 ST (Stephan Trebels <trebels@ams02.dnet.gwdg.de>)
8 > include ctype,stdio,ssdef from textlibrary SYS$SHARE:VAXCDEF.TLB
9 > change error return code to SS$_ABORT
10 (perhaps better than %NONAME-E-NOMSG, Message number 2 )
12 (also modified by Don Knuth to match changes in the master file)
13 (only the two changes by BL are necessary for initial bootstrapping
14 via hand-editing of common.c)
16 @x section 5 (01-FEB-1992 ST)
19 #include ctype /* VMS searches Textlibraries faster */
22 @x section 8 (01-FEB-1992 ST)
25 #include stdio /* VMS searches Textlibraries faster */
28 @x section 61 (01-FEB-1992 ST)
29 programs are started. Here, for instance, we pass the operating system
30 a status of 0 if and only if only harmless messages were printed.
32 programs are started. Here, for instance, we pass VAX/VMS
33 a status of |SS$_NORMAL| if and only if only harmless
34 messages have been printed.
35 A suitable status to signal an error condition to VAX/VMS could be
36 |SS$_ABORT|, telling the operating system to
37 print |"%SYSTEM-F-ABORT, abort"|, if |history > harmless_message|.
40 @x section 61 (1987 BL) (01-FEB-1992 ST) (11-JAN-1993 DEK)
41 if (history > harmless_message) return(1);
45 VAX/VMS and UNIX have different error status conventions.
46 VAX/VMS uses odd values (for example |SS$_NORMAL|) to indicate success,
47 even values indicate errors, resulting in messages displayed
48 on the screen. |SS$_ABORT| has been chosen, to indicate an
49 error and display something that's not complete nonsense.
51 if (history > harmless_message) exit(SS$_ABORT);
52 else exit(SS$_NORMAL);
55 @x section 69 (01-FEB-1992 ST)
56 An omitted change file argument means that |"/dev/null"| should be used,
57 when no changes are desired.
59 An omitted change file argument means that the
60 null device |"NL:"| should be used, when no changes are desired.
63 @x section 70 (1987 BL) (01-FEB-1992 ST) (05-APR-1992 DEK)
64 if (found_change<=0) strcpy(change_file_name,"/dev/null");
66 if (found_change<=) strcpy(change_file_name,"NL:");
67 /* {\tt NL:} is the VAX/VMS notation for {\tt /dev/null} */
70 @x section 82 (01-FEB-1992 ST)
73 @* VAX/VMS specific code.
74 We have used |SS$_NORMAL| and |SS$_ABORT| as return codes,
75 so we have to include the system message codes.
78 #include ssdef /* we need VAX/VMS system messages */