home *** CD-ROM | disk | FTP | other *** search
/ Computer Club Elmshorn Atari PD / CCE_PD.iso / pc / 0600 / CCE_0638.ZIP / CCE_0638 / UPDATE / UPDATE30.ZOO / ispell-3.0.09 / diffs < prev    next >
Text File  |  1993-04-30  |  7KB  |  274 lines

  1. RCS file: /net/acae127/home/bammi/etc/src/master/atari/ispell/buildhash.c,v
  2. retrieving revision 1.1.1.1
  3. diff -c -r1.1.1.1 buildhash.c
  4. *** 1.1.1.1    1993/04/30 20:58:35
  5. --- buildhash.c    1993/04/30 21:25:36
  6. ***************
  7. *** 222,227 ****
  8. --- 222,231 ----
  9.       _Heapsize = 2*HEAPSIZE;
  10.   #endif /* AMIGA */
  11.   
  12. + #ifdef atarist
  13. +     _binmode(1);
  14. + #endif
  15.       while (argc > 1  &&  *argv[1] == '-')
  16.       {
  17.       argc--;
  18. ===================================================================
  19. RCS file: /net/acae127/home/bammi/etc/src/master/atari/ispell/config.X,v
  20. retrieving revision 1.1.1.1
  21. diff -c -r1.1.1.1 config.X
  22. *** 1.1.1.1    1993/04/30 20:58:35
  23. --- config.X    1993/04/30 21:25:39
  24. ***************
  25. *** 214,219 ****
  26. --- 214,224 ----
  27.   #define DEFHASH "!!DEFHASH!!"
  28.   #endif
  29.   
  30. + /* Extension to use for hash files */
  31. + #ifndef HASHEXT
  32. + #define HASHEXT ".hash"
  33. + #endif
  34.   /* Aliases for some routines */
  35.   #ifdef USG
  36.   extern char *memcpy ();
  37. ===================================================================
  38. RCS file: /net/acae127/home/bammi/etc/src/master/atari/ispell/ispell.c,v
  39. retrieving revision 1.1.1.1
  40. diff -c -r1.1.1.1 ispell.c
  41. *** 1.1.1.1    1993/04/30 20:58:40
  42. --- ispell.c    1993/04/30 21:25:42
  43. ***************
  44. *** 536,541 ****
  45. --- 536,546 ----
  46.       }
  47.       }
  48.   
  49. + #ifdef atarist
  50. + #include <stddef.h>
  51. + size_t __DEFAULT_BUFSIZ__  = 128L * 1024;
  52. + #endif
  53.   main (argc, argv)
  54.       int        argc;
  55.       char *    argv[];
  56. ***************
  57. *** 553,563 ****
  58. --- 558,583 ----
  59.       _Heapsize = HEAPSIZE;
  60.   #endif
  61.   
  62. + #ifdef atarist
  63. +     _binmode(1);
  64. + #endif
  65.       Cmd = *argv;
  66.   
  67.       Trynum = 0;
  68.   
  69. + #ifdef atarist
  70. +     {
  71. +     char *getenv();
  72. +     char *p = getenv("DICTIONARY");
  73. +         if(p)
  74. +         strcpy(hashname, p);
  75. +         else
  76. +         (void) sprintf (hashname,"%s/%s",LIBDIR,DEFHASH);
  77. +     }
  78. + #else
  79.       (void) sprintf (hashname,"%s/%s",LIBDIR,DEFHASH);
  80. + #endif
  81.   
  82.       cpd = NULL;
  83.   
  84. ***************
  85. *** 821,837 ****
  86.               usage ();
  87.               p = *argv;
  88.               }
  89.           if (index (p, '/') != NULL)
  90.               (void) strcpy (hashname, p);
  91.           else
  92.               (void) sprintf (hashname, "%s/%s", LIBDIR, p);
  93.           if (cpd == NULL  &&  *p != '\0')
  94.               LibDict = p;
  95.           p = rindex (p, '.');
  96. !         if (p != NULL  &&  strcmp (p, ".hash") == 0)
  97.               *p = '\0';    /* Don't want ext. in LibDict */
  98.           else
  99. !             (void) strcat (hashname, ".hash");
  100.           break;
  101.           case 'V':        /* Display 8-bit characters as M-xxx */
  102.           vflag = 1;
  103. --- 841,861 ----
  104.               usage ();
  105.               p = *argv;
  106.               }
  107. + #ifdef atarist
  108. +         if ( (index (p, '/') != NULL) || (index (p , '\\') != NULL) )
  109. + #else
  110.           if (index (p, '/') != NULL)
  111. + #endif
  112.               (void) strcpy (hashname, p);
  113.           else
  114.               (void) sprintf (hashname, "%s/%s", LIBDIR, p);
  115.           if (cpd == NULL  &&  *p != '\0')
  116.               LibDict = p;
  117.           p = rindex (p, '.');
  118. !         if (p != NULL  &&  strcmp (p, HASHEXT) == 0)
  119.               *p = '\0';    /* Don't want ext. in LibDict */
  120.           else
  121. !             (void) strcat (hashname, HASHEXT);
  122.           break;
  123.           case 'V':        /* Display 8-bit characters as M-xxx */
  124.           vflag = 1;
  125. ***************
  126. *** 883,888 ****
  127. --- 907,913 ----
  128.         argc == 1 ? ISPELL_C_NO_FILE : ISPELL_C_NO_FILES);
  129.       exit (1);
  130.       }
  131.       if (linit () < 0)
  132.       exit (1);
  133.   
  134. ***************
  135. *** 914,920 ****
  136.       (void) strcpy (libdictname, DEFHASH);
  137.       LibDict = libdictname;
  138.       p = rindex (libdictname, '.');
  139. !     if (p != NULL  &&  strcmp (p, ".hash") == 0)
  140.           *p = '\0';    /* Don't want ext. in LibDict */
  141.       }
  142.       if (!nodictflag)
  143. --- 939,945 ----
  144.       (void) strcpy (libdictname, DEFHASH);
  145.       LibDict = libdictname;
  146.       p = rindex (libdictname, '.');
  147. !     if (p != NULL  &&  strcmp (p, HASHEXT) == 0)
  148.           *p = '\0';    /* Don't want ext. in LibDict */
  149.       }
  150.       if (!nodictflag)
  151. ***************
  152. *** 1043,1048 ****
  153. --- 1068,1076 ----
  154.   
  155.       maxlen = MAXNAMLEN - strlen(BAKEXT);
  156.       top = (char *) rindex(bakfile, '/');
  157. + #ifdef atarist
  158. +     top = (top) ? top : (char *) rindex(bakfile, '\\');
  159. + #endif
  160.       top = top ? top + 1 : bakfile;
  161.       if (strlen(top) > maxlen)
  162.           *(top + maxlen) = '\000';
  163. ***************
  164. *** 1132,1134 ****
  165. --- 1160,1172 ----
  166.       (void) putchar ('\n');
  167.       }
  168.       }
  169. + #ifdef atarist
  170. + void
  171. + regerror(s)
  172. + char *s;
  173. + {
  174. +     (void) fprintf (stderr, "%s\n", s);
  175. +     sleep(2);
  176. + }
  177. + #endif
  178. ===================================================================
  179. RCS file: /net/acae127/home/bammi/etc/src/master/atari/ispell/lookup.c,v
  180. retrieving revision 1.1.1.1
  181. diff -c -r1.1.1.1 lookup.c
  182. *** 1.1.1.1    1993/04/30 20:58:42
  183. --- lookup.c    1993/04/30 21:25:48
  184. ***************
  185. *** 151,156 ****
  186. --- 151,157 ----
  187.       }
  188.   
  189.       hashsize = read (hashfd, (char *) &hashheader, sizeof hashheader);
  190.       if (hashsize < sizeof hashheader)
  191.       {
  192.       if (hashsize < 0)
  193. ***************
  194. *** 284,289 ****
  195. --- 285,291 ----
  196.       else
  197.           entry->affix = NULL;
  198.       }
  199.       /*
  200.       ** Warning - 'entry' and 'i' are reset in the body of the loop
  201.       ** below.  Don't try to optimize it by (e.g.) moving the decrement
  202. ***************
  203. *** 346,351 ****
  204. --- 348,354 ----
  205.           ind->numents = 0;
  206.           }
  207.       }
  208.       /*
  209.       ** Warning - 'entry' and 'i' are reset in the body of the loop
  210.       ** below.  Don't try to optimize it by (e.g.) moving the decrement
  211. ***************
  212. *** 407,412 ****
  213. --- 410,416 ----
  214.           ind->numents = 0;
  215.           }
  216.       }
  217.   #ifdef INDEXDUMP
  218.       (void) fprintf (stderr, "Prefix index table:\n");
  219.       dumpindex (pflagindex, 0);
  220. ===================================================================
  221. RCS file: /net/acae127/home/bammi/etc/src/master/atari/ispell/term.c,v
  222. retrieving revision 1.1.1.1
  223. diff -c -r1.1.1.1 term.c
  224. *** 1.1.1.1    1993/04/30 20:58:45
  225. --- term.c    1993/04/30 21:25:51
  226. ***************
  227. *** 151,156 ****
  228. --- 151,163 ----
  229.   #include <sgtty.h>
  230.   #endif
  231.   #include <signal.h>
  232. + #ifdef atarist
  233. + #ifndef __MINT__
  234. + #undef SIGTSTP
  235. + #endif
  236. + #endif
  237.   #include "ispell.h"
  238.   #include "msgs.h"
  239.   
  240. ===================================================================
  241. RCS file: /net/acae127/home/bammi/etc/src/master/atari/ispell/tree.c,v
  242. retrieving revision 1.1.1.1
  243. diff -c -r1.1.1.1 tree.c
  244. *** 1.1.1.1    1993/04/30 20:58:46
  245. --- tree.c    1993/04/30 21:25:54
  246. ***************
  247. *** 321,326 ****
  248. --- 321,333 ----
  249.       */
  250.       abspath = (*p == '/'  ||  strncmp (p, "./", 2) == 0
  251.         ||  strncmp (p, "../", 3) == 0);
  252. + #ifdef atarist
  253. + #define ISDRIVE(d) ((((d) >= 'a') && ((d) <= 'z')) || (((d) >= 'A') && ((d) <= 'Z')))
  254. +         if(!abspath)
  255. +       abspath = (*p == '\\'  ||  strncmp (p, ".\\", 2) == 0
  256. +       ||  strncmp (p, "..\\", 3) == 0) || (ISDRIVE(*p) && (p[1] == ':'));
  257. + #endif
  258.       if (abspath)
  259.           {
  260.           (void) strcpy (personaldict, p);
  261.