Hopefully the attached "diff.txt" has enough information ;-) Errors happen, but sort of funny to find it in a spell checker. ;-)
I noticed there were a lot of trailing blanks in this file prezip.c file which generated a fair number more differences than what is shown in diff.txt (attached) which could have been removed if Kwrite is set to automatically truncate trailing spaces, but this was the error worth fixing.... see attached diff.txt If you want to remove trailing blanks as well, then see attached "diff_rem_spaces.txt" which also includes fixing lines with trailing blanks. Thanks.
--- aspell-0.60-pre3/prog/prezip.c 2004-06-20 06:12:04.000000000 -0700 +++ aspell-0.60-pre3/prog/prezip.c 2004-08-22 02:58:28.000000000 -0700 @@ -248,7 +248,7 @@ usage: printf("%s\n" - "Usgae:\n" + "Usage:\n" " To Compress: %s -z\n" " To Decompress: %s -d\n", HEAD, argv[0], argv[0]); return 1;
--- aspell-0.60-pre3/prog/prezip.c 2004-06-20 06:12:04.000000000 -0700 +++ aspell-0.60-pre3/prog/prezip.c 2004-08-22 02:58:28.000000000 -0700 @@ -4,8 +4,8 @@ * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without - * fee, provided that the above copyright notice appear in all copies - * and that both that copyright notice and this permission notice + * fee, provided that the above copyright notice appear in all copies + * and that both that copyright notice and this permission notice * appear in supporting documentation. Kevin Atkinson makes no * representations about the suitability of this software for any * purpose. It is provided "as is" without express or implied @@ -73,9 +73,9 @@ if (argc < 2) { goto usage; - + } else if (strcmp(argv[1], "-z") == 0) { - + Word w1,w2; Word * prev = &w1; Word * cur = &w2; @@ -115,7 +115,7 @@ /* get the length of the prefix */ l = 0; while (p[l] != '\0' && w[l] != '\0' && p[l] == w[l]) ++l; - + /* prefix compress, and write word */ if (l < 30) { putc(l, stdout); @@ -124,7 +124,7 @@ putc(30, stdout); while (i >= 255) {putc(255, stdout); i -= 255;} putc(i, stdout); - } + } fputs(w+l, stdout); /* swap prev and next */ @@ -134,7 +134,7 @@ prev = tmp; } } - + putc(31, stdout); putc(255, stdout); @@ -142,7 +142,7 @@ free(w2.str); } else if (strcmp(argv[1], "-d") == 0) { - + int ret = 0; Word cur; @@ -158,7 +158,7 @@ c = getc(stdin); - if (c == 2) + if (c == 2) { while (c != EOF && ret <= 0) { ret = -1; @@ -198,7 +198,7 @@ } } } - else if (c == 1) + else if (c == 1) { while (c != -1) { if (c == 0) @@ -248,7 +248,7 @@ usage: printf("%s\n" - "Usgae:\n" + "Usage:\n" " To Compress: %s -z\n" " To Decompress: %s -d\n", HEAD, argv[0], argv[0]); return 1;
_______________________________________________ Aspell-devel mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/aspell-devel