home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / APPS / TEKST / FUNNEL_S / OS2 / PATCHES.OS2 < prev    next >
Encoding:
Text File  |  1992-12-10  |  12.6 KB  |  401 lines

  1. Only in .: analyse.c
  2. Only in .: analyse.h
  3. Only in .: as.c
  4. Only in .: as.h
  5. Only in .: clock.c
  6. Only in .: clock.h
  7. diff -w -C2 new/command.c ./command.c
  8. *** new/command.c    Sun Aug 23 14:31:20 1992
  9. --- ./command.c    Wed May 27 06:02:17 1992
  10. ***************
  11. *** 80,86 ****
  12.   /* copies of each argument.                                                   */
  13.   /* Note: The first argument is placed in arr_arg[0].                          */
  14. ! #define FW_ARG_MAX 5
  15.   LOCVAR uword arg_num;
  16. ! LOCVAR char *arg_arr[FW_ARG_MAX+1]; /* Is this +1 necessary? */
  17.   
  18.   /* The FunnelWeb command interpreter allows 10 substitution strings.          */
  19. --- 80,86 ----
  20.   /* copies of each argument.                                                   */
  21.   /* Note: The first argument is placed in arr_arg[0].                          */
  22. ! #define ARG_MAX 5
  23.   LOCVAR uword arg_num;
  24. ! LOCVAR char *arg_arr[ARG_MAX+1]; /* Is this +1 necessary? */
  25.   
  26.   /* The FunnelWeb command interpreter allows 10 substitution strings.          */
  27. ***************
  28. *** 222,226 ****
  29.   {
  30.    uword i;
  31. !  for (i=0;i<=FW_ARG_MAX;i++)
  32.       arg_arr[i]=(char *) mm_perm(sizeof(cl_t));
  33.   
  34. --- 222,226 ----
  35.   {
  36.    uword i;
  37. !  for (i=0;i<=ARG_MAX;i++)
  38.       arg_arr[i]=(char *) mm_perm(sizeof(cl_t));
  39.   
  40. ***************
  41. *** 284,288 ****
  42.   
  43.       /* Exit if we are already full up with arguments. */
  44. !     if (arg_num==FW_ARG_MAX) break;
  45.   
  46.       /* Copy the next argument. */
  47. --- 284,288 ----
  48.   
  49.       /* Exit if we are already full up with arguments. */
  50. !     if (arg_num==ARG_MAX) break;
  51.   
  52.       /* Copy the next argument. */
  53. Only in .: command.h
  54. Only in .: data.c
  55. Only in .: data.h
  56. Only in .: dump.c
  57. Only in .: dump.h
  58. diff -w -C2 new/environ.h ./environ.h
  59. *** new/environ.h    Sat Aug 22 12:39:04 1992
  60. --- ./environ.h    Wed May 27 06:00:18 1992
  61. ***************
  62. *** 94,104 ****
  63.   
  64.   #define MAC 0
  65. ! #define SUN 0
  66.   #define VMS 0
  67.   #define PC  0
  68. - #define OS2 1
  69.   
  70.   /* Ensure that exactly one environment has been selected.                     */
  71. ! #if MAC+SUN+VMS+PC+OS2 != 1
  72.      #error Error: You must choose exactly one machine in ENVIRON.H.
  73.   #endif
  74. --- 94,103 ----
  75.   
  76.   #define MAC 0
  77. ! #define SUN 1
  78.   #define VMS 0
  79.   #define PC  0
  80.   
  81.   /* Ensure that exactly one environment has been selected.                     */
  82. ! #if MAC+SUN+VMS+PC != 1
  83.      #error Error: You must choose exactly one machine in ENVIRON.H.
  84.   #endif
  85. ***************
  86. *** 141,150 ****
  87.   #define STDC 0
  88.   #endif
  89. - #ifdef __GNUC__
  90. - #undef STDC
  91. - #define STDC 1
  92. - #endif
  93.   
  94.   /* Note: If THINK_C is predefined, it is predefined to be 1. */
  95. --- 140,143 ----
  96. Only in new: funnel.rsp
  97. Only in new: fw.def
  98. Only in .: help.c
  99. Only in .: help.h
  100. Only in .: help_gnu.c
  101. Only in .: help_gnu.ctx
  102. Only in .: help_gnu.h
  103. Only in .: help_gnu.txt
  104. Only in .: list.c
  105. Only in .: list.h
  106. Only in .: lister.c
  107. Only in .: lister.h
  108. diff -w -C2 new/machin.c ./machin.c
  109. *** new/machin.c    Sat Aug 22 20:55:12 1992
  110. --- ./machin.c    Wed May 27 04:45:05 1992
  111. ***************
  112. *** 93,97 ****
  113.   /******************************************************************************/
  114.   
  115. ! #if MAC | SUN | PC | OS2
  116.   LOCAL void fn_split P_((p_fn_t,p_fn_t,p_fn_t,p_fn_t));
  117.   LOCAL void fn_split(p_fn,p_path,p_name,p_ext)
  118. --- 93,97 ----
  119.   /******************************************************************************/
  120.   
  121. ! #if MAC | SUN | PC
  122.   LOCAL void fn_split P_((p_fn_t,p_fn_t,p_fn_t,p_fn_t));
  123.   LOCAL void fn_split(p_fn,p_path,p_name,p_ext)
  124. ***************
  125. *** 142,146 ****
  126.   /******************************************************************************/
  127.   
  128. ! #if MAC | SUN | PC | OS2
  129.   LOCAL void fn_join P_((p_fn_t,p_fn_t,p_fn_t,p_fn_t));
  130.   LOCAL void fn_join(p_fn,p_path,p_name,p_ext)
  131. --- 142,146 ----
  132.   /******************************************************************************/
  133.   
  134. ! #if MAC | SUN | PC
  135.   LOCAL void fn_join P_((p_fn_t,p_fn_t,p_fn_t,p_fn_t));
  136.   LOCAL void fn_join(p_fn,p_path,p_name,p_ext)
  137. ***************
  138. *** 165,169 ****
  139.   /******************************************************************************/
  140.   
  141. ! #if MAC | SUN | PC | OS2
  142.   EXPORT void fn_ins(p_cur,p_add)
  143.   p_fn_t p_cur;
  144. --- 165,169 ----
  145.   /******************************************************************************/
  146.   
  147. ! #if MAC | SUN | PC
  148.   EXPORT void fn_ins(p_cur,p_add)
  149.   p_fn_t p_cur;
  150. ***************
  151. *** 269,273 ****
  152.   
  153.   /* The other systems work like Unix. */
  154. ! #if SUN | VMS | PC | OS2
  155.   argc2=argc;
  156.   argv2=argv;
  157. --- 269,273 ----
  158.   
  159.   /* The other systems work like Unix. */
  160. ! #if SUN | VMS | PC
  161.   argc2=argc;
  162.   argv2=argv;
  163. ***************
  164. *** 301,305 ****
  165.   
  166.   /* Macintosh, VMS, and PC have difftime. */
  167. ! #if MAC | VMS | PC | OS2
  168.    if (base == -1)
  169.       return 0.0;
  170. --- 301,305 ----
  171.   
  172.   /* Macintosh, VMS, and PC have difftime. */
  173. ! #if MAC | VMS | PC
  174.    if (base == -1)
  175.       return 0.0;
  176. diff -w -C2 new/machin.h ./machin.h
  177. *** new/machin.h    Sat Aug 22 13:39:26 1992
  178. --- ./machin.h    Wed May 27 05:51:02 1992
  179. ***************
  180. *** 63,74 ****
  181.   #include "style.h"
  182.   
  183. - #ifndef OS2
  184. -    #error machine.h: os2 is not defined
  185. - #endif
  186. - #if !OS2 
  187. -    #error machine.h: os2 is not defined to be 1
  188. - #endif
  189.   /******************************************************************************/
  190.   
  191. --- 63,66 ----
  192. ***************
  193. *** 93,97 ****
  194.   /* The VMS VAX doesn't care about alignment, but operates more efficiently on */
  195.   /* longword boundaries.                                                       */
  196. ! #if SUN | VMS | OS2
  197.   #define ALIGN_POWER (2L)
  198.   #endif
  199. --- 85,89 ----
  200.   /* The VMS VAX doesn't care about alignment, but operates more efficiently on */
  201.   /* longword boundaries.                                                       */
  202. ! #if SUN | VMS
  203.   #define ALIGN_POWER (2L)
  204.   #endif
  205. ***************
  206. *** 121,125 ****
  207.   #endif
  208.   
  209. ! #if PC | OS2
  210.   #define FN_DELIM '\\'
  211.   #endif
  212. --- 113,117 ----
  213.   #endif
  214.   
  215. ! #if PC
  216.   #define FN_DELIM '\\'
  217.   #endif
  218. ***************
  219. *** 178,186 ****
  220.   
  221.   /* On a PC, we assume this is enough. */
  222. ! #if PC | OS2
  223.   #define COMLINE_MAX 300
  224.   #endif
  225.   
  226.   /* Make sure that the value is not too low. */
  227.   /* The value 300 is guaranteed by the command interpreter. */
  228. --- 170,177 ----
  229.   
  230.   /* On a PC, we assume this is enough. */
  231. ! #if PC
  232.   #define COMLINE_MAX 300
  233.   #endif
  234.   
  235.   /* Make sure that the value is not too low. */
  236.   /* The value 300 is guaranteed by the command interpreter. */
  237. ***************
  238. *** 210,214 ****
  239.   /* to be non-Unix, as non-Unix will work on ALL systems (including Unix).     */
  240.   
  241. ! #if MAC | VMS | PC | OS2
  242.   /* These systems do NOT use Unix EOLs. */
  243.   #define UNIX_EOL 0
  244. --- 201,205 ----
  245.   /* to be non-Unix, as non-Unix will work on ALL systems (including Unix).     */
  246.   
  247. ! #if MAC | VMS | PC
  248.   /* These systems do NOT use Unix EOLs. */
  249.   #define UNIX_EOL 0
  250. Only in new: make.report
  251. Only in new: makefile
  252. Only in .: mapper.c
  253. Only in .: mapper.h
  254. Only in .: memory.c
  255. Only in .: memory.h
  256. diff -w -C2 new/misc.c ./misc.c
  257. *** new/misc.c    Sun Aug 23 14:33:02 1992
  258. --- ./misc.c    Wed May 27 04:45:06 1992
  259. ***************
  260. *** 51,59 ****
  261.   /******************************************************************************/
  262.   
  263. ! EXPORT void wr_s  (s) char *s; {wf_wr(&f_s,s); fflush(stdout); }
  264.   EXPORT void wr_j  (s) char *s; {wf_wr(&f_j,s);}
  265.   EXPORT void wr_l  (s) char *s; {wf_wr(&f_l,s);}
  266.   
  267. ! EXPORT void wl_s  (s) char *s; {wf_wr(&f_s,s); wf_wr(&f_s,"\n"); fflush(stdout);}
  268.   EXPORT void wl_j  (s) char *s; {wf_wr(&f_j,s); wf_wr(&f_j,"\n");}
  269.   EXPORT void wl_l  (s) char *s; {wf_wr(&f_l,s); wf_wr(&f_l,"\n");}
  270. --- 51,59 ----
  271.   /******************************************************************************/
  272.   
  273. ! EXPORT void wr_s  (s) char *s; {wf_wr(&f_s,s);}
  274.   EXPORT void wr_j  (s) char *s; {wf_wr(&f_j,s);}
  275.   EXPORT void wr_l  (s) char *s; {wf_wr(&f_l,s);}
  276.   
  277. ! EXPORT void wl_s  (s) char *s; {wf_wr(&f_s,s); wf_wr(&f_s,"\n");}
  278.   EXPORT void wl_j  (s) char *s; {wf_wr(&f_j,s); wf_wr(&f_j,"\n");}
  279.   EXPORT void wl_l  (s) char *s; {wf_wr(&f_l,s); wf_wr(&f_l,"\n");}
  280. Only in .: misc.h
  281. Only in .: new
  282. Only in .: obj
  283. Only in .: option.c
  284. Only in .: option.h
  285. Only in .: parser.c
  286. Only in .: parser.h
  287. Only in .: patches.os2
  288. Only in .: scanner.c
  289. Only in .: scanner.h
  290. Only in .: section.c
  291. Only in .: section.h
  292. diff -w -C2 new/style.h ./style.h
  293. *** new/style.h    Thu Dec 10 14:30:19 1992
  294. --- ./style.h    Wed May 27 04:45:08 1992
  295. ***************
  296. *** 247,286 ****
  297.   /* that I really wanted the function argument to be a character, while       */
  298.   /* actually supplying an integer.                                            */
  299.   typedef int intchar;
  300.   
  301. ! /*****************************************************************************/
  302. ! /* The toupper() and tolower() macros in the ctype.h file that comes with    */
  303. ! /* current gcc/2 distribution do not work properly with the code for funnel- */
  304. ! /* web, since they do not confine their action to lowercase or uppercase     */
  305. ! /* letters, as appropriate. The following macros fix the problem.            */
  306. ! /* WARNING: this fix depends on the fact that this header file is ALWAYS     */
  307. ! /* included AFTER ctype.h in the funnelweb source files. Change that order   */
  308. ! /* and the fix will fail. I do not think that this kludge is all that awful, */
  309. ! /* even so, since, sooner or later (one hopes sooner), the libc library for  */
  310. ! /* gcc/2 will be changed to glibc, which is a proper ANSI standard library.  */
  311. ! /* The fix is a temporary kludge because one expects the problem to be       */
  312. ! /* temporary. (Yeah, I know, "famous last words".)                           */
  313. ! #ifdef OS2
  314. ! #ifdef toupper
  315. ! #undef toupper
  316. ! #define    toupper(c)    ((((c) >= 'a') && ((c) <= 'z')) ? ((c) - 'a' + 'A') : (c))
  317. ! #endif
  318. ! #ifdef tolower
  319. ! #undef tolower
  320. ! #define    tolower(c)    ((((c) >= 'A') && ((c) <= 'Z')) ? ((c) - 'A' + 'a') : (c))
  321. ! #endif
  322. ! #endif
  323. ! /*****************************************************************************/
  324.   /* For #ifndef preventing multiple inclusion of the body of this header file.*/
  325.   #endif
  326.   
  327. ! /*****************************************************************************/
  328.   /*                               End of STYLE.H                              */
  329. ! /*****************************************************************************/
  330.   
  331. --- 247,258 ----
  332.   /* that I really wanted the function argument to be a character, while        */
  333.   /* actually supplying an integer.                                             */
  334.   typedef int intchar;
  335.   
  336. ! /******************************************************************************/
  337.   /* For #ifndef preventing multiple inclusion of the body of this header file. */
  338.   #endif
  339.   
  340. ! /******************************************************************************/
  341.   /*                                End of STYLE.H                              */
  342. ! /******************************************************************************/
  343.   
  344. Only in .: table.c
  345. Only in .: table.h
  346. Only in .: tangle.c
  347. Only in .: tangle.h
  348. Only in .: texhead.c
  349. diff -w -C2 new/texhead.ctx ./texhead.ctx
  350. *** new/texhead.ctx    Sat Sep 12 21:12:15 1992
  351. --- ./texhead.ctx    Wed May 27 04:45:09 1992
  352. ***************
  353. *** 123,128 ****
  354.    WX("% so as to allow the user to fiddle this stuff to taste without having to");
  355.    WX("% modify the FunnelWeb C code.");
  356. !  WX("\\def\\fwodef{\\vskip0pt$\\lceil$\\parindent=20pt}");
  357. !  WX("\\def\\fwcdef{\\parindent=0pt\\vskip0pt$\\lfloor$}");
  358.    WX("\\def\\fwoquote{`}");
  359.    WX("\\def\\fwcquote{'}");
  360. --- 123,128 ----
  361.    WX("% so as to allow the user to fiddle this stuff to taste without having to");
  362.    WX("% modify the FunnelWeb C code.");
  363. !  WX("\\def\\fwodef{\\parindent=15pt\\vskip0pt$\\lbrace$\\parindent=20pt}");
  364. !  WX("\\def\\fwcdef{$\\rbrace$\\vskip0pt\\parindent=0pt}");
  365.    WX("\\def\\fwoquote{`}");
  366.    WX("\\def\\fwcquote{'}");
  367. Only in .: texhead.h
  368. diff -w -C2 new/texhead.tex ./texhead.tex
  369. *** new/texhead.tex    Sat Sep 12 21:10:15 1992
  370. --- ./texhead.tex    Wed May 27 04:45:09 1992
  371. ***************
  372. *** 123,128 ****
  373.   % so as to allow the user to fiddle this stuff to taste without having to
  374.   % modify the FunnelWeb C code.
  375. ! \def\fwodef{\vskip0pt$\lceil$\parindent=20pt}
  376. ! \def\fwcdef{\parindent=0pt\vskip0pt$\lfloor$}
  377.   \def\fwoquote{`}
  378.   \def\fwcquote{'}
  379. --- 123,128 ----
  380.   % so as to allow the user to fiddle this stuff to taste without having to
  381.   % modify the FunnelWeb C code.
  382. ! \def\fwodef{\parindent=15pt\vskip0pt$\lbrace$\parindent=20pt}
  383. ! \def\fwcdef{$\rbrace$\vskip0pt\parindent=0pt}
  384.   \def\fwoquote{`}
  385.   \def\fwcquote{'}
  386. Only in .: weave.c
  387. Only in .: weave.h
  388. Only in .: writfile.c
  389. Only in .: writfile.h
  390.