Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Side by Side Diff: src/hunspell/affixmgr.cxx

Issue 9478011: Merge http://hunspell.cvs.sourceforge.net/viewvc/hunspell/hunspell/src/hunspell/affixmgr.cxx?r1=1.4… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/hunspell/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « README.chromium ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include "license.hunspell" 1 #include "license.hunspell"
2 #include "license.myspell" 2 #include "license.myspell"
3 3
4 #include <stdlib.h> 4 #include <stdlib.h>
5 #include <string.h> 5 #include <string.h>
6 #include <stdio.h> 6 #include <stdio.h>
7 #include <ctype.h> 7 #include <ctype.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 3524 matching lines...) Expand 10 before | Expand all | Expand 10 after
3535 mychomp(nl); 3535 mychomp(nl);
3536 tp = nl; 3536 tp = nl;
3537 i = 0; 3537 i = 0;
3538 char * pattern = NULL; 3538 char * pattern = NULL;
3539 char * pattern2 = NULL; 3539 char * pattern2 = NULL;
3540 piece = mystrsep(&tp, 0); 3540 piece = mystrsep(&tp, 0);
3541 while (piece) { 3541 while (piece) {
3542 if (*piece != '\0') { 3542 if (*piece != '\0') {
3543 switch(i) { 3543 switch(i) {
3544 case 0: { 3544 case 0: {
3545 if (strncmp(piece, keyword, sizeof(keyword)) != 0) { 3545 if (strncmp(piece, keyword, strlen(keyword)) != 0) {
3546 HUNSPELL_WARNING(stderr, "error: line %d: table is corrupt\n", af->getlinenum()); 3546 HUNSPELL_WARNING(stderr, "error: line %d: table is corrupt\n", af->getlinenum());
3547 delete *rl; 3547 delete *rl;
3548 *rl = NULL; 3548 *rl = NULL;
3549 return 1; 3549 return 1;
3550 } 3550 }
3551 break; 3551 break;
3552 } 3552 }
3553 case 1: { pattern = mystrrep(mystrdup(piece),"_"," "); break; } 3553 case 1: { pattern = mystrrep(mystrdup(piece),"_"," "); break; }
3554 case 2: { 3554 case 2: {
3555 pattern2 = mystrrep(mystrdup(piece),"_"," "); 3555 pattern2 = mystrrep(mystrdup(piece),"_"," ");
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after
4400 HUNSPELL_WARNING(stderr, "warning: line %d: incompatible stripping c haracters and condition\n", linenum); 4400 HUNSPELL_WARNING(stderr, "warning: line %d: incompatible stripping c haracters and condition\n", linenum);
4401 return 0; 4401 return 0;
4402 } 4402 }
4403 } 4403 }
4404 } 4404 }
4405 if (j < 0) return 1; 4405 if (j < 0) return 1;
4406 } 4406 }
4407 } 4407 }
4408 return 0; 4408 return 0;
4409 } 4409 }
OLDNEW
« no previous file with comments | « README.chromium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698