diff options
author | jmz <jmz@FreeBSD.org> | 2001-06-22 22:09:11 +0000 |
---|---|---|
committer | jmz <jmz@FreeBSD.org> | 2001-06-22 22:09:11 +0000 |
commit | 7257a394f9222528d99c1d136d1757ffe568a4e7 (patch) | |
tree | 58e34e5721e5d6167d7e70e695f300bc62fc22a3 /textproc/ispell/files | |
parent | 8fea3083ae6236d492f164b15e204dad166b6dc6 (diff) | |
download | FreeBSD-ports-7257a394f9222528d99c1d136d1757ffe568a4e7.zip FreeBSD-ports-7257a394f9222528d99c1d136d1757ffe568a4e7.tar.gz |
Upgrade to version 3.2.04.
Diffstat (limited to 'textproc/ispell/files')
-rw-r--r-- | textproc/ispell/files/patch-ab | 31 | ||||
-rw-r--r-- | textproc/ispell/files/patch-ac | 37 | ||||
-rw-r--r-- | textproc/ispell/files/patch-ad | 57 | ||||
-rw-r--r-- | textproc/ispell/files/patch-ae | 116 | ||||
-rw-r--r-- | textproc/ispell/files/patch-sec1 | 40 |
5 files changed, 6 insertions, 275 deletions
diff --git a/textproc/ispell/files/patch-ab b/textproc/ispell/files/patch-ab index 42d7015..f27b79a 100644 --- a/textproc/ispell/files/patch-ab +++ b/textproc/ispell/files/patch-ab @@ -1,30 +1,11 @@ ---- Makefile.orig Thu Oct 12 20:04:06 1995 -+++ Makefile Sat Jan 22 22:44:42 2000 -@@ -253,7 +253,7 @@ - set -ex; \ - rm -f $$ELISPDIR/ispell.el; \ - $$INSTALL ispell.el $$ELISPDIR; \ -- if sh iwhich $$EMACS >/dev/null; then \ -+ if sh iwhich ___XXX___$$EMACS >/dev/null; then \ - echo '(byte-compile-file "'"$$ELISPDIR/ispell.el"'")' \ - > /tmp/emi$$$$; \ - $$EMACS -batch -l /tmp/emi$$$$; \ -@@ -508,7 +508,7 @@ - local.h: - set +e; [ -r local.h ] || cp local.h.samp local.h +--- Makefile~ Thu Jun 7 21:06:33 2001 ++++ Makefile Fri Jun 22 23:36:46 2001 +@@ -474,7 +474,7 @@ + set +e; \ + [ -r local.h ] || (cp local.h.samp local.h; chmod u+w local.h) -msgs.h: config.sh FRC -+msgs.h: config.sh ++msgs.h: config.sh @. ./config.sh; \ set $(SHELLDEBUG); \ set +e; \ -@@ -522,7 +522,8 @@ - else \ - set -x; \ - rm -f msgs.h; ln $$msgs msgs.h || cp $$msgs msgs.h; \ -- fi -+ fi; \ -+ touch msgs.h - - FRC: - diff --git a/textproc/ispell/files/patch-ac b/textproc/ispell/files/patch-ac deleted file mode 100644 index 57d5f39..0000000 --- a/textproc/ispell/files/patch-ac +++ /dev/null @@ -1,37 +0,0 @@ -*** sq.c.orig Tue Jan 25 21:32:18 1994 ---- sq.c Tue Dec 16 19:02:22 1997 -*************** -*** 49,54 **** ---- 49,55 ---- - */ - - #include <stdio.h> -+ #include <string.h> - - #ifdef __STDC__ - #define P(x) x -*************** -*** 82,90 **** - { - char word[257]; - static char prev[257] = ""; - -! while (gets (word) != NULL) - trunc (word, prev); - return 0; - } - ---- 83,95 ---- - { - char word[257]; - static char prev[257] = ""; -+ char *s; - -! while (fgets (word, sizeof(word), stdin) != NULL) { -! if ((s = strchr(word, '\n')) != NULL) -! *s = '\0'; - trunc (word, prev); -+ } - return 0; - } - diff --git a/textproc/ispell/files/patch-ad b/textproc/ispell/files/patch-ad deleted file mode 100644 index 759a070..0000000 --- a/textproc/ispell/files/patch-ad +++ /dev/null @@ -1,57 +0,0 @@ -*** unsq.c.bak Tue Jan 25 21:32:18 1994 ---- unsq.c Tue Dec 16 19:08:44 1997 -*************** -*** 49,54 **** ---- 49,55 ---- - */ - - #include <stdio.h> -+ #include <string.h> - #include "msgs.h" - - #ifdef __STDC__ -*************** -*** 99,104 **** ---- 100,107 ---- - register char * prevp; - register int same_count; - register int count_char; -+ int wsize; -+ char *s; - - count_char = getchar (); - if (count_char == EOF) -*************** -*** 114,126 **** - } - prevp = prev; - wordp = word; -! while (same_count--) - *wordp++ = (*prevp++); -! if (gets (wordp) == NULL) - { - (void) fprintf (stderr, UNSQ_C_SURPRISE_EOF); - exit (1); - } - (void) strcpy (prev, word); - return 0 ; - } ---- 117,134 ---- - } - prevp = prev; - wordp = word; -! wsize = 257; -! while (same_count--) { - *wordp++ = (*prevp++); -! wsize--; -! } -! if (fgets (wordp, wsize, stdin) == NULL) - { - (void) fprintf (stderr, UNSQ_C_SURPRISE_EOF); - exit (1); - } -+ if ((s = strchr(wordp, '\n')) != NULL) -+ *s = '\0'; - (void) strcpy (prev, word); - return 0 ; - } diff --git a/textproc/ispell/files/patch-ae b/textproc/ispell/files/patch-ae deleted file mode 100644 index 80fa93e..0000000 --- a/textproc/ispell/files/patch-ae +++ /dev/null @@ -1,116 +0,0 @@ -*** correct.c Thu Oct 12 12:04:06 1995 ---- correct.c.3.1.20b Tue Oct 5 12:55:03 1999 -*************** -*** 1488,1500 **** - * all that likely). - */ - bufsize = strlen (contextbufs[0]); -! if (contextbufs[0][bufsize - 1] == '\n') -! { -! hadnl = 1; -! contextbufs[0][--bufsize] = '\0'; -! } -! else -! hadnl = 0; - if (bufsize == (sizeof contextbufs[0]) / 2 - 1) - { - ch = (unsigned char) contextbufs[0][bufsize - 1]; ---- 1488,1494 ---- - * all that likely). - */ - bufsize = strlen (contextbufs[0]); -! hadnl = (contextbufs[0][bufsize - 1] == '\n'); - if (bufsize == (sizeof contextbufs[0]) / 2 - 1) - { - ch = (unsigned char) contextbufs[0][bufsize - 1]; -*************** -*** 1556,1564 **** ---- 1550,1562 ---- - } - else if (contextbufs[0][0] == '~') - { -+ if (hadnl) -+ contextbufs[0][bufsize - 1] = '\0'; - defdupchar = findfiletype (&contextbufs[0][1], 1, (int *) NULL); - if (defdupchar < 0) - defdupchar = 0; -+ if (hadnl) -+ contextbufs[0][bufsize - 1] = '\n'; - } - else - { -*** defmt.c Thu Oct 12 12:04:06 1995 ---- defmt.c.3.1.20b Tue Oct 5 12:54:41 1999 -*************** -*** 548,554 **** - (void) fprintf (ofile, "%s", ctoken); - } - -! if (!lflag && (aflag || hadlf)) - (void) putc ('\n', ofile); - } - ---- 548,554 ---- - (void) fprintf (ofile, "%s", ctoken); - } - -! if (!lflag && hadlf) - (void) putc ('\n', ofile); - } - -*************** -*** 588,593 **** ---- 588,595 ---- - return 0; - } - -+ /* Updates bufp to point to the next character to skip. */ -+ /* Should only be called on non-word characters. */ - static int TeX_math_begin (bufp) - char ** bufp; - { -*************** -*** 604,613 **** - if (**bufp == TEXLEFTPAREN || **bufp == TEXLEFTSQUARE) - return 1; - else if (!isalpha(**bufp) && **bufp != '@') -! { -! (*bufp)++; -! continue; -! } - else if (TeX_strncmp (*bufp, "begin", 5) == 0) - { - if (TeX_math_check ('b', bufp)) ---- 606,612 ---- - if (**bufp == TEXLEFTPAREN || **bufp == TEXLEFTSQUARE) - return 1; - else if (!isalpha(**bufp) && **bufp != '@') -! return 0; - else if (TeX_strncmp (*bufp, "begin", 5) == 0) - { - if (TeX_math_check ('b', bufp)) -*************** -*** 637,648 **** - { - if (*(*bufp)++ == TEXDOT - && (**bufp == TEXRIGHTSQUARE || **bufp == TEXRIGHTANGLE)) -! return TeX_math_begin (bufp); - } -- return 0; - } -! else -! return 0; - } - - static int TeX_LR_begin (bufp) ---- 636,645 ---- - { - if (*(*bufp)++ == TEXDOT - && (**bufp == TEXRIGHTSQUARE || **bufp == TEXRIGHTANGLE)) -! break; - } - } -! return 0; - } - - static int TeX_LR_begin (bufp) diff --git a/textproc/ispell/files/patch-sec1 b/textproc/ispell/files/patch-sec1 deleted file mode 100644 index 24632fe..0000000 --- a/textproc/ispell/files/patch-sec1 +++ /dev/null @@ -1,40 +0,0 @@ ---- ispell.c-orig Thu May 24 14:52:00 2001 -+++ ispell.c Thu May 24 15:00:06 2001 -@@ -802,6 +802,7 @@ - { - struct stat statbuf; - char * cp; -+ int fd; - - currentfile = filename; - -@@ -835,15 +836,20 @@ - - (void) fstat (fileno (infile), &statbuf); - (void) strcpy (tempfile, TEMPNAME); -- if (mktemp (tempfile) == NULL || tempfile[0] == '\0' -- || (outfile = fopen (tempfile, "w")) == NULL) -- { -- (void) fprintf (stderr, CANT_CREATE, -- (tempfile == NULL || tempfile[0] == '\0') -- ? "temporary file" : tempfile); -- (void) sleep ((unsigned) 2); -- return; -- } -+ -+ if ((fd = mkstemp(tempfile)) == -1) { -+ fprintf(stderr, "Error: Can't create (mkstemp) temporary file\n"); -+ sleep(2); -+ return; -+ } -+ if ((outfile = fdopen(fd, "w")) == NULL) { -+ unlink(tempfile); -+ close(fd); -+ fprintf(stderr, "Error: Can't open (fdopen) temporary file\n"); -+ sleep(2); -+ return; -+ } -+ /* Is this necessary ? */ - (void) chmod (tempfile, statbuf.st_mode); - - quit = 0; |