home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / isp31b3.zip / ispell / patch.os2 < prev    next >
Text File  |  1995-07-10  |  2KB  |  87 lines

  1. diff -t source/ispell.c /user/mail/ispell3.1/ispell/ispell.c
  2. 139a140,144
  3. > #ifdef OS2
  4. > static char *l ;                        /* Name of the dictionary
  5. >                                            directory */
  6. > static char *t ;                        /* Name of the temporary directory*/
  7. > #endif
  8. 255a261,268
  9. > #ifdef OS2
  10. >      l = getenv ("DICTDIR");
  11. >      if (l == NULL) { /* I'd like to force the user to have dictir
  12. >                          defined */
  13. >        printf("Please define DICTDIR in your config.sys \n");
  14. >        exit(10);
  15. >      }
  16. > #endif
  17. 268,269c281,285
  18. <         (void) sprintf (hashname, "%s/%s", LIBDIR, DEFHASH);
  19. ---
  20. > #ifdef OS2
  21. >         (void) sprintf (hashname, "%s/%s", l, DEFHASH);
  22. > #else
  23. >         (void) sprintf (hashname, "%s/%s", LIBDIR, DEFHASH);
  24. > #endif
  25. 626a643,645
  26. > #ifdef OS2
  27. >                 LibDict = l ;
  28. > #else
  29. 627a647
  30. > #endif
  31. 640a661,665
  32. > #ifdef OS2
  33. >                   (void) sprintf (hashname, "%s/%s", l, p);
  34. >                 /* We don't want the compile-time option for os2 */
  35. >                  (void) strcat (hashname, HASHSUFFIX);
  36. > #else
  37. 641a667,671
  38. > #endif
  39. > #ifdef OS2      /* Hopefully we don't need all this, since we have
  40. >                    DICTDIR */
  41. >                 LibDict = l ;
  42. > #else
  43. 651a682
  44. > #endif
  45. 817a849,858
  46. > #ifdef OS2
  47. >   /* Ok this is os2, so we use the TMP environmenti-variable */
  48. >     t = getenv ("TMP");
  49. >     if (l == NULL) { /* I'd like to force the user to have tmp
  50. >                         defined */
  51. >       printf("Please define TMP in your config.sys \n");
  52. >       exit(10);
  53. >     }
  54. >      (void) sprintf (tempfile, "%s/%s", t, TEMPNAME);
  55. > #else
  56. 818a860
  57. > #endif
  58. diff -t source/term.c /user/mail/ispell3.1/ispell/term.c
  59. 66a67
  60. > #include <process.h>
  61. 451a453,457
  62. >     
  63. > #ifdef OS2
  64. >     if ((i = spawnvp (P_NOWAIT, argv[0], (char **) argv)) <= 0)
  65. >       {
  66. > #else
  67. 454a461
  68. > #endif
  69. 465c472,473
  70. <         (void) printf (TERM_C_CANT_FORK);
  71. ---
  72. >         
  73. > (void) printf (TERM_C_CANT_FORK);
  74. diff -t source/tree.c /user/mail/ispell3.1/ispell/tree.c
  75. 68a69
  76. 228a230,235
  77. > #ifdef OS2
  78. >                   /* On OS2 we do not use home instead use LibDict,
  79. >                      Maybe it would be better, to query the
  80. >                      environment-variable DICTDIR here */ 
  81. >                 (void) sprintf (personaldict, "%s/%s", LibDict, p);
  82. > #else
  83. 229a237
  84. > #endif
  85.