"Features/bugs" in latest ispell enhancements
ries at trwrb.UUCP
ries at trwrb.UUCP
Thu Jan 29 07:46:02 AEST 1987
[Fellow Netters]
I experienced several problems with the newest version of ispell
enhancements posted by bobm at rtech.UUCP (Bob Mcqueer). Our system
is a Pyramid 98X running OSx V3.1.
The problem manifested itself under the BSD universe by having
ispell just sit there doing nothing after doing an "ispell
filename".
Compilation under the ATT universe worked (after fixing two
items, see below). Term.c was the culprit. Anyway, the
following mods seems to allow ispell to work OK in either
universe, your mileage may very. Hey, I even ran this through
ispell 8-{)!
TERM.C - change tpgrp from short to int (this bug was posted to
the net, but apparently backed out by the latest
posting)
MAKEFILE - Added TERMLIB variable so that if you have SYSV set,
set TERMLIB to "-lcurses". Use "-ltermlib" for BSD.
BUILDHASH.C - Add "exit(0)" after output(). (this "pyramid
feature" was posted to the net, but apparently
backed out by the latest posting)
CONFIG.H - Surround LIBDIR with ifndef to avoid "defined more
than once" messages. Add an index->strchr conversion
if SYSV defined.
- Marc Ries (trwrb!ries)
#=========================================
#======== THIS IS NOT A SHAR FILE ========
#=========================================
*** oterm.c Wed Jan 28 12:49:39 1987
--- term.c Wed Jan 28 12:50:04 1987
***************
*** 70,76
terminit ()
{
int done();
! short tpgrp;
int onstop();
extern short ospeed;
--- 70,76 -----
terminit ()
{
int done();
! int tpgrp;
int onstop();
extern short ospeed;
*** oMakefile Wed Jan 28 12:33:54 1987
--- Makefile Wed Jan 28 12:41:26 1987
***************
*** 12,18
#
# buildhash <infile> <outfile>
! CFLAGS = -O -DSYSV
BINDIR = /staff1/ries/bin
LIBDIR = /staff1/ries/lib
DEFHASH = ispell.hash
--- 12,18 -----
#
# buildhash <infile> <outfile>
! CFLAGS = -O
BINDIR = /staff1/ries/bin
LIBDIR = /staff1/ries/lib
DEFHASH = ispell.hash
***************
*** 17,22
LIBDIR = /staff1/ries/lib
DEFHASH = ispell.hash
DEFDICT = dict.191
all: buildhash ispell $(DEFHASH)
--- 17,24 -----
LIBDIR = /staff1/ries/lib
DEFHASH = ispell.hash
DEFDICT = dict.191
+ # TERMLIB = -lcurses
+ TERMLIB = -ltermlib
all: buildhash ispell $(DEFHASH)
***************
*** 33,39
ispell: ispell.o term.o good.o lookup.o hash.o tree.o
cc $(CFLAGS) -o ispell ispell.o term.o good.o lookup.o \
! hash.o tree.o -ltermlib
clean:
rm -f *.o buildhash ispell core a.out mon.out hash.out \
--- 35,41 -----
ispell: ispell.o term.o good.o lookup.o hash.o tree.o
cc $(CFLAGS) -o ispell ispell.o term.o good.o lookup.o \
! hash.o tree.o $(TERMLIB)
clean:
rm -f *.o buildhash ispell core a.out mon.out hash.out \
*** obuildhash.c Wed Jan 28 11:52:48 1987
--- buildhash.c Wed Jan 28 12:46:19 1987
***************
*** 103,108
filltable ();
output ();
}
output ()
--- 103,109 -----
filltable ();
output ();
+ exit(0);
}
output ()
*** oconfig.h Wed Jan 28 13:05:55 1987
--- config.h Wed Jan 28 12:31:44 1987
***************
*** 4,9
** LIBDIR be a directory which will contain nothing else, so sensible
** names can be constructed for the -d option without conflict.
*/
#define LIBDIR "/usr/local/lib"
#define DEFHASH "ispell.hash"
--- 4,10 -----
** LIBDIR be a directory which will contain nothing else, so sensible
** names can be constructed for the -d option without conflict.
*/
+ #ifndef LIBDIR
#define LIBDIR "/usr/local/lib"
#endif /* LIBDIR */
#define DEFHASH "ispell.hash"
***************
*** 5,10
** names can be constructed for the -d option without conflict.
*/
#define LIBDIR "/usr/local/lib"
#define DEFHASH "ispell.hash"
/* environment variable for user's word list */
--- 6,12 -----
*/
#ifndef LIBDIR
#define LIBDIR "/usr/local/lib"
+ #endif /* LIBDIR */
#define DEFHASH "ispell.hash"
#ifdef SYSV
***************
*** 6,11
*/
#define LIBDIR "/usr/local/lib"
#define DEFHASH "ispell.hash"
/* environment variable for user's word list */
#define PDICTVAR "WORDLIST"
--- 8,17 -----
#define LIBDIR "/usr/local/lib"
#endif /* LIBDIR */
#define DEFHASH "ispell.hash"
+
+ #ifdef SYSV
+ #define index strchr
+ #endif
/* environment variable for user's word list */
#define PDICTVAR "WORDLIST"
More information about the Comp.sources.bugs
mailing list