home *** CD-ROM | disk | FTP | other *** search
/ The UNIX CD Bookshelf / OREILLY_TUCB_UNIX_CD.iso / upt / examples / SOURCES / ISPELL / I386 / ISPELL. next >
Encoding:
Text File  |  1998-07-24  |  4.2 KB  |  168 lines

  1. --- config.X.rtr    Fri Feb 24 16:28:40 1995
  2. +++ config.X    Mon Feb 27 08:51:40 1995
  3. @@ -260,7 +260,7 @@
  4.  ** DEFHASH (which will usually be named english.hash).
  5.  */
  6.  #ifndef LANGUAGES
  7. -#define LANGUAGES "{american,MASTERDICTS=american.med+,HASHFILES=americanmed+.hash,EXTRADICT=/usr/dict/words}"
  8. +#define LANGUAGES "{american,MASTERDICTS=american.med+,HASHFILES=americanmed+.hash,EXTRADICT=}"
  9.  #endif /* LANGUAGES */
  10.  
  11.  /*
  12. --- correct.c.rtr    Wed Nov  2 13:44:44 1994
  13. +++ correct.c    Mon Feb 27 09:33:52 1995
  14. @@ -157,7 +157,7 @@
  15.            struct flagent * sufent,
  16.            ichar_t savearea[MAX_CAPS][INPUTWORDLEN + MAXAFFIXLEN],
  17.            int * nsaved));
  18. -static char *    getline P ((char * buf));
  19. +static char *    getline_local P ((char * buf));
  20.  void        askmode P ((void));
  21.  void        copyout P ((char ** cc, int cnt));
  22.  static void    lookharder P ((char * string));
  23. @@ -439,7 +439,7 @@
  24.  
  25.          move (li - 1, 0);
  26.          (void) putchar ('!');
  27. -        if (getline (buf) == NULL)
  28. +        if (getline_local(buf) == NULL)
  29.              {
  30.              (void) putchar (7);
  31.              erase ();
  32. @@ -464,7 +464,7 @@
  33.              (void) printf ("%s ", CORR_C_READONLY);
  34.              }
  35.          (void) printf (CORR_C_REPLACE_WITH);
  36. -        if (getline (ctok) == NULL)
  37. +        if (getline_local (ctok) == NULL)
  38.              {
  39.              (void) putchar (7);
  40.              /* Put it back */
  41. @@ -526,7 +526,7 @@
  42.          char    buf[100];
  43.          move (li - 1, 0);
  44.          (void) printf (CORR_C_LOOKUP_PROMPT);
  45. -        if (getline (buf) == NULL)
  46. +        if (getline_local (buf) == NULL)
  47.              {
  48.              (void) putchar (7);
  49.              erase ();
  50. @@ -1380,7 +1380,7 @@
  51.  #endif /* NO_CAPITALIZATION_SUPPORT */
  52.      }
  53.  
  54. -static char * getline (s)
  55. +static char * getline_local (s)
  56.      register char *    s;
  57.      {
  58.      register char *    p;
  59. --- term.c.rtr    Wed Nov  2 13:44:28 1994
  60. +++ term.c    Mon Feb 27 13:24:39 1995
  61. @@ -2,7 +2,7 @@
  62.  static char Rcs_Id[] =
  63.      "$Id: term.c,v 1.48 1994/10/25 05:46:11 geoff Exp $";
  64.  #endif
  65. -
  66. +#define ioctl FOOBAR
  67.  /*
  68.   * term.c - deal with termcap, and unix terminal mode settings
  69.   *
  70. @@ -65,10 +65,11 @@
  71.  #include "proto.h"
  72.  #include "msgs.h"
  73.  #ifdef USG
  74. -#include <termio.h>
  75. +#include <termios.h>
  76.  #else
  77.  #include <sgtty.h>
  78.  #endif
  79. +#undef TIOCGWINSZ
  80.  #include <signal.h>
  81.  
  82.  void        erase P ((void));
  83. @@ -136,8 +137,8 @@
  84.      }
  85.  
  86.  #ifdef USG
  87. -static struct termio    sbuf;
  88. -static struct termio    osbuf;
  89. +static struct termios    sbuf;
  90. +static struct termios    osbuf;
  91.  #else
  92.  static struct sgttyb    sbuf;
  93.  static struct sgttyb    osbuf;
  94. @@ -247,7 +248,7 @@
  95.      (void) fprintf (stderr, TERM_C_NO_BATCH);
  96.      exit (1);
  97.      }
  98. -    (void) ioctl (0, TCGETA, (char *) &osbuf);
  99. +    tcgetattr(0, &osbuf);
  100.      termchanged = 1;
  101.  
  102.      sbuf = osbuf;
  103. @@ -256,7 +257,7 @@
  104.      sbuf.c_iflag &= ~(INLCR | IGNCR | ICRNL);
  105.      sbuf.c_cc[VMIN] = 1;
  106.      sbuf.c_cc[VTIME] = 1;
  107. -    (void) ioctl (0, TCSETAW, (char *) &sbuf);
  108. +    tcsetattr(0, TCSADRAIN,  &sbuf);
  109.  
  110.      uerasechar = osbuf.c_cc[VERASE];
  111.      ukillchar = osbuf.c_cc[VKILL];
  112. @@ -344,7 +345,7 @@
  113.      if (te)
  114.          tputs (te, 1, putch);
  115.  #ifdef USG
  116. -    (void) ioctl (0, TCSETAW, (char *) &osbuf);
  117. +    tcsetattr(0, TCSADRAIN, &osbuf);
  118.  #else
  119.      (void) ioctl (0, TIOCSETP, (char *) &osbuf);
  120.  #ifdef TIOCSLTC
  121. @@ -360,7 +361,7 @@
  122.      int        signo;
  123.      {
  124.  #ifdef USG
  125. -    (void) ioctl (0, TCSETAW, (char *) &osbuf);
  126. +    tcsetattr(0, TCSADRAIN, &osbuf);
  127.  #else
  128.      (void) ioctl (0, TIOCSETP, (char *) &osbuf);
  129.  #ifdef TIOCSLTC
  130. @@ -375,7 +376,7 @@
  131.      /* stop here until continued */
  132.      (void) signal (signo, onstop);
  133.  #ifdef USG
  134. -    (void) ioctl (0, TCSETAW, (char *) &sbuf);
  135. +    tcsetattr(0, TCSADRAIN, &sbuf);
  136.  #else
  137.      (void) ioctl (0, TIOCSETP, (char *) &sbuf);
  138.  #ifdef TIOCSLTC
  139. @@ -435,7 +436,7 @@
  140.      argv[i] = NULL;
  141.  
  142.  #ifdef USG
  143. -    (void) ioctl (0, TCSETAW, (char *) &osbuf);
  144. +    tcsetattr(0, TCSADRAIN, &osbuf);
  145.  #else
  146.      (void) ioctl (0, TIOCSETP, (char *) &osbuf);
  147.  #ifdef TIOCSLTC
  148. @@ -481,7 +482,7 @@
  149.  #endif
  150.  
  151.  #ifdef USG
  152. -    (void) ioctl (0, TCSETAW, (char *) &sbuf);
  153. +    tcsetattr(0, TCSADRAIN, &sbuf);
  154.  #else
  155.      (void) ioctl (0, TIOCSETP, (char *) &sbuf);
  156.  #ifdef TIOCSLTC
  157. --- local.h.rtr    Fri Feb 24 16:28:38 1995
  158. +++ local.h    Mon Feb 27 09:19:24 1995
  159. @@ -82,7 +82,7 @@
  160.  
  161.  #define MINIMENU    /* Display a mini-menu at the bottom of the screen */
  162.  #define NO8BIT        /* Remove this if you use ISO character sets */
  163. -#undef USG        /* Define this on System V */
  164. +#define USG        /* Define this on System V */
  165.  
  166.  /*
  167.   * Important directory paths
  168.