home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 3 / CDPDIII.bin / fish / 791-800 / ff793 / snap / fix_main < prev    next >
Text File  |  1993-01-10  |  967b  |  29 lines

  1. This patch fixes the problem with
  2. run >nil: snap
  3. endcli
  4. as described in the Changes file.
  5. Please note that this file only describes the procedure for Aztec.
  6.  
  7. 1. In _main.c at line 84, replace
  8.  
  9.     if (_devtab[1].fd = Output())
  10.         _devtab[2].fd = Open("*", (long)MODE_OLDFILE);
  11.  
  12.    with
  13.  
  14.     if (_devtab[1].fd = (struct FileHandle *)Output()) {
  15.         struct CommandLineInterface *cli;
  16.         struct FileHandle *cos;
  17.         cli = (struct CommandLineInterface *)((long)pp->pr_CLI << 2);
  18.         cos = (struct FileHandle *)((long)pp->pr_COS << 2);
  19.         if (cli && cos && cli->cli_Background &&
  20.           pp->pr_ConsoleTask != (APTR)cos->fh_Type)
  21.             _devtab[2].fd = (struct FileHandle *)Open("NIL:", (long)MODE_OLDFILE);
  22.         else
  23.             _devtab[2].fd = (struct FileHandle *)Open("*", (long)MODE_OLDFILE);
  24.     }
  25.  
  26. 2. Compile _main.c. You may have to add some casting in a couple of places.
  27.  
  28. 3. Replace _main in c.lib. 'lb c.lib -r _main _main'
  29.