[net.sources] ispell Sys V diffs

dyon@batcomputer.UUCP (01/16/87)

Here are the mods to term.c for ispell to run under Sys V.
"patch term.c this_stuff" should do it.  You probably want to make
the following changes to the Makefile:
(1) add -DSYSV to CFLAGS
(2) add -Dindex=strchr to CFLAGS
(3) change -ltermlib to -ltermcap
(4) add ispell.hash to the list of stuff "clean" should rm

Nothing else seemed to need changing.  My only complaint is that although
certain suffixes are detected, the plurals of the suffixes are not, eg
"reconcile" and "reconciliation" are valid words, but "reconcilations" is
not.

============================== diffs for term.c =============================
9,13d8
< #include <signal.h>
< 
< #ifdef SYSV
< #include <termio.h>
< #else
15,16c10
< #endif SYSV
< 
---
> #include <signal.h>
62,64d55
< #ifdef  SYSV
< struct termio sbuf, osbuf;
< #else
66d56
< #endif SYSV
77,83d66
< #ifdef SYSV
< 	if (!isatty(0)) {
< 		fprintf (stderr, "Can't deal with non interactive use yet.\n");
< 		exit (1);
< 	}
< #else
< 
97d79
< #endif SYSV
99,114d80
< #ifdef SYSV
< 	ioctl(0, TCGETA, &osbuf);
< 	termchanged = 1;
< 
< 	signal (SIGINT, done);
< 
< 	sbuf = osbuf;
< 	sbuf.c_lflag = ISIG;
< 	erasechar = sbuf.c_cc[VERASE];
< 	killchar = sbuf.c_cc[VKILL];
< 	sbuf.c_cc[VMIN] = 1;
< 	sbuf.c_cc[VTIME] = 1;
< 	ioctl (0, TCSETA, &sbuf);
< 
< #else
< 
118,119d83
< 	signal (SIGINT, done);
< 
128d91
< #endif SYSV
130c93,94
< #ifndef SYSV
---
> 	signal (SIGINT, done);
> 
135d98
< #endif
169,171d131
< #ifdef SYSV
< 		ioctl (0, TCSETA, &osbuf);
< #else
173d132
< #endif SYSV
177d135
< #ifndef SYSV
188d145
< #endif SYSV
192d148
< #ifndef SYSV
194d149
< #endif SYSV
200,202d154
< #ifdef SYSV
< 	ioctl (0, TCSETA, &osbuf);
< #else
204,205d155
< #endif SYSV
< 
208,209d157
< 
< #ifndef SYSV
213d160
< #endif SYSV
217d163
< #ifndef SYSV
221,222d166
< #endif SYSV
< 
226,228d169
< #ifdef SYSV
< 	ioctl (0, TCSETA, &sbuf);
< #else
230d170
< #endif SYSV
-- 
--Dyon Anniballi

dyon@batcomputer.tn.cornell.edu     |  dyon%batcomputer@crnlcs.bitnet
rochester!cornell!batcomputer!dyon  |  "No time for romantic escape...."