home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Club Elmshorn Atari PD
/
CCE_PD.iso
/
pc
/
0600
/
CCE_0638.ZIP
/
CCE_0638
/
UPDATE
/
UPDATE30.ZOO
/
ispell-3.0.09
/
diffs
< prev
next >
Wrap
Text File
|
1993-04-30
|
7KB
|
274 lines
RCS file: /net/acae127/home/bammi/etc/src/master/atari/ispell/buildhash.c,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 buildhash.c
*** 1.1.1.1 1993/04/30 20:58:35
--- buildhash.c 1993/04/30 21:25:36
***************
*** 222,227 ****
--- 222,231 ----
_Heapsize = 2*HEAPSIZE;
#endif /* AMIGA */
+ #ifdef atarist
+ _binmode(1);
+ #endif
+
while (argc > 1 && *argv[1] == '-')
{
argc--;
===================================================================
RCS file: /net/acae127/home/bammi/etc/src/master/atari/ispell/config.X,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 config.X
*** 1.1.1.1 1993/04/30 20:58:35
--- config.X 1993/04/30 21:25:39
***************
*** 214,219 ****
--- 214,224 ----
#define DEFHASH "!!DEFHASH!!"
#endif
+ /* Extension to use for hash files */
+ #ifndef HASHEXT
+ #define HASHEXT ".hash"
+ #endif
+
/* Aliases for some routines */
#ifdef USG
extern char *memcpy ();
===================================================================
RCS file: /net/acae127/home/bammi/etc/src/master/atari/ispell/ispell.c,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 ispell.c
*** 1.1.1.1 1993/04/30 20:58:40
--- ispell.c 1993/04/30 21:25:42
***************
*** 536,541 ****
--- 536,546 ----
}
}
+ #ifdef atarist
+ #include <stddef.h>
+ size_t __DEFAULT_BUFSIZ__ = 128L * 1024;
+ #endif
+
main (argc, argv)
int argc;
char * argv[];
***************
*** 553,563 ****
--- 558,583 ----
_Heapsize = HEAPSIZE;
#endif
+ #ifdef atarist
+ _binmode(1);
+ #endif
+
Cmd = *argv;
Trynum = 0;
+ #ifdef atarist
+ {
+ char *getenv();
+ char *p = getenv("DICTIONARY");
+ if(p)
+ strcpy(hashname, p);
+ else
+ (void) sprintf (hashname,"%s/%s",LIBDIR,DEFHASH);
+ }
+ #else
(void) sprintf (hashname,"%s/%s",LIBDIR,DEFHASH);
+ #endif
cpd = NULL;
***************
*** 821,837 ****
usage ();
p = *argv;
}
if (index (p, '/') != NULL)
(void) strcpy (hashname, p);
else
(void) sprintf (hashname, "%s/%s", LIBDIR, p);
if (cpd == NULL && *p != '\0')
LibDict = p;
p = rindex (p, '.');
! if (p != NULL && strcmp (p, ".hash") == 0)
*p = '\0'; /* Don't want ext. in LibDict */
else
! (void) strcat (hashname, ".hash");
break;
case 'V': /* Display 8-bit characters as M-xxx */
vflag = 1;
--- 841,861 ----
usage ();
p = *argv;
}
+ #ifdef atarist
+ if ( (index (p, '/') != NULL) || (index (p , '\\') != NULL) )
+ #else
if (index (p, '/') != NULL)
+ #endif
(void) strcpy (hashname, p);
else
(void) sprintf (hashname, "%s/%s", LIBDIR, p);
if (cpd == NULL && *p != '\0')
LibDict = p;
p = rindex (p, '.');
! if (p != NULL && strcmp (p, HASHEXT) == 0)
*p = '\0'; /* Don't want ext. in LibDict */
else
! (void) strcat (hashname, HASHEXT);
break;
case 'V': /* Display 8-bit characters as M-xxx */
vflag = 1;
***************
*** 883,888 ****
--- 907,913 ----
argc == 1 ? ISPELL_C_NO_FILE : ISPELL_C_NO_FILES);
exit (1);
}
+
if (linit () < 0)
exit (1);
***************
*** 914,920 ****
(void) strcpy (libdictname, DEFHASH);
LibDict = libdictname;
p = rindex (libdictname, '.');
! if (p != NULL && strcmp (p, ".hash") == 0)
*p = '\0'; /* Don't want ext. in LibDict */
}
if (!nodictflag)
--- 939,945 ----
(void) strcpy (libdictname, DEFHASH);
LibDict = libdictname;
p = rindex (libdictname, '.');
! if (p != NULL && strcmp (p, HASHEXT) == 0)
*p = '\0'; /* Don't want ext. in LibDict */
}
if (!nodictflag)
***************
*** 1043,1048 ****
--- 1068,1076 ----
maxlen = MAXNAMLEN - strlen(BAKEXT);
top = (char *) rindex(bakfile, '/');
+ #ifdef atarist
+ top = (top) ? top : (char *) rindex(bakfile, '\\');
+ #endif
top = top ? top + 1 : bakfile;
if (strlen(top) > maxlen)
*(top + maxlen) = '\000';
***************
*** 1132,1134 ****
--- 1160,1172 ----
(void) putchar ('\n');
}
}
+
+ #ifdef atarist
+ void
+ regerror(s)
+ char *s;
+ {
+ (void) fprintf (stderr, "%s\n", s);
+ sleep(2);
+ }
+ #endif
===================================================================
RCS file: /net/acae127/home/bammi/etc/src/master/atari/ispell/lookup.c,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 lookup.c
*** 1.1.1.1 1993/04/30 20:58:42
--- lookup.c 1993/04/30 21:25:48
***************
*** 151,156 ****
--- 151,157 ----
}
hashsize = read (hashfd, (char *) &hashheader, sizeof hashheader);
+
if (hashsize < sizeof hashheader)
{
if (hashsize < 0)
***************
*** 284,289 ****
--- 285,291 ----
else
entry->affix = NULL;
}
+
/*
** Warning - 'entry' and 'i' are reset in the body of the loop
** below. Don't try to optimize it by (e.g.) moving the decrement
***************
*** 346,351 ****
--- 348,354 ----
ind->numents = 0;
}
}
+
/*
** Warning - 'entry' and 'i' are reset in the body of the loop
** below. Don't try to optimize it by (e.g.) moving the decrement
***************
*** 407,412 ****
--- 410,416 ----
ind->numents = 0;
}
}
+
#ifdef INDEXDUMP
(void) fprintf (stderr, "Prefix index table:\n");
dumpindex (pflagindex, 0);
===================================================================
RCS file: /net/acae127/home/bammi/etc/src/master/atari/ispell/term.c,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 term.c
*** 1.1.1.1 1993/04/30 20:58:45
--- term.c 1993/04/30 21:25:51
***************
*** 151,156 ****
--- 151,163 ----
#include <sgtty.h>
#endif
#include <signal.h>
+
+ #ifdef atarist
+ #ifndef __MINT__
+ #undef SIGTSTP
+ #endif
+ #endif
+
#include "ispell.h"
#include "msgs.h"
===================================================================
RCS file: /net/acae127/home/bammi/etc/src/master/atari/ispell/tree.c,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 tree.c
*** 1.1.1.1 1993/04/30 20:58:46
--- tree.c 1993/04/30 21:25:54
***************
*** 321,326 ****
--- 321,333 ----
*/
abspath = (*p == '/' || strncmp (p, "./", 2) == 0
|| strncmp (p, "../", 3) == 0);
+ #ifdef atarist
+ #define ISDRIVE(d) ((((d) >= 'a') && ((d) <= 'z')) || (((d) >= 'A') && ((d) <= 'Z')))
+ if(!abspath)
+ abspath = (*p == '\\' || strncmp (p, ".\\", 2) == 0
+ || strncmp (p, "..\\", 3) == 0) || (ISDRIVE(*p) && (p[1] == ':'));
+
+ #endif
if (abspath)
{
(void) strcpy (personaldict, p);