home *** CD-ROM | disk | FTP | other *** search
- diff -t source/ispell.c /user/mail/ispell3.1/ispell/ispell.c
- 139a140,144
- > #ifdef OS2
- > static char *l ; /* Name of the dictionary
- > directory */
- > static char *t ; /* Name of the temporary directory*/
- > #endif
- 255a261,268
- > #ifdef OS2
- > l = getenv ("DICTDIR");
- > if (l == NULL) { /* I'd like to force the user to have dictir
- > defined */
- > printf("Please define DICTDIR in your config.sys \n");
- > exit(10);
- > }
- > #endif
- 268,269c281,285
- < (void) sprintf (hashname, "%s/%s", LIBDIR, DEFHASH);
- <
- ---
- > #ifdef OS2
- > (void) sprintf (hashname, "%s/%s", l, DEFHASH);
- > #else
- > (void) sprintf (hashname, "%s/%s", LIBDIR, DEFHASH);
- > #endif
- 626a643,645
- > #ifdef OS2
- > LibDict = l ;
- > #else
- 627a647
- > #endif
- 640a661,665
- > #ifdef OS2
- > (void) sprintf (hashname, "%s/%s", l, p);
- > /* We don't want the compile-time option for os2 */
- > (void) strcat (hashname, HASHSUFFIX);
- > #else
- 641a667,671
- > #endif
- > #ifdef OS2 /* Hopefully we don't need all this, since we have
- > DICTDIR */
- > LibDict = l ;
- > #else
- 651a682
- > #endif
- 817a849,858
- > #ifdef OS2
- > /* Ok this is os2, so we use the TMP environmenti-variable */
- > t = getenv ("TMP");
- > if (l == NULL) { /* I'd like to force the user to have tmp
- > defined */
- > printf("Please define TMP in your config.sys \n");
- > exit(10);
- > }
- > (void) sprintf (tempfile, "%s/%s", t, TEMPNAME);
- > #else
- 818a860
- > #endif
- diff -t source/term.c /user/mail/ispell3.1/ispell/term.c
- 66a67
- > #include <process.h>
- 451a453,457
- >
- > #ifdef OS2
- > if ((i = spawnvp (P_NOWAIT, argv[0], (char **) argv)) <= 0)
- > {
- > #else
- 454a461
- > #endif
- 465c472,473
- < (void) printf (TERM_C_CANT_FORK);
- ---
- >
- > (void) printf (TERM_C_CANT_FORK);
- diff -t source/tree.c /user/mail/ispell3.1/ispell/tree.c
- 68a69
- >
- 228a230,235
- > #ifdef OS2
- > /* On OS2 we do not use home instead use LibDict,
- > Maybe it would be better, to query the
- > environment-variable DICTDIR here */
- > (void) sprintf (personaldict, "%s/%s", LibDict, p);
- > #else
- 229a237
- > #endif
-