| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |