| OLD | NEW |
| 1 #include "license.hunspell" | 1 #include "license.hunspell" |
| 2 #include "license.myspell" | 2 #include "license.myspell" |
| 3 | 3 |
| 4 #ifndef MOZILLA_CLIENT | 4 #ifndef MOZILLA_CLIENT |
| 5 #include <cstdlib> | 5 #include <cstdlib> |
| 6 #include <cstring> | 6 #include <cstring> |
| 7 #include <cctype> | 7 #include <cctype> |
| 8 #include <cstdio> | 8 #include <cstdio> |
| 9 #else | 9 #else |
| 10 #include <stdlib.h> | 10 #include <stdlib.h> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 PfxEntry::~PfxEntry() | 53 PfxEntry::~PfxEntry() |
| 54 { | 54 { |
| 55 aflag = 0; | 55 aflag = 0; |
| 56 if (appnd) free(appnd); | 56 if (appnd) free(appnd); |
| 57 if (strip) free(strip); | 57 if (strip) free(strip); |
| 58 pmyMgr = NULL; | 58 pmyMgr = NULL; |
| 59 appnd = NULL; | 59 appnd = NULL; |
| 60 strip = NULL; | 60 strip = NULL; |
| 61 if (opts & aeUTF8) { | 61 if (opts & aeUTF8) { |
| 62 for (int i = 0; i < 8; i++) { | 62 for (int i = 0; i < numconds; i++) { |
| 63 if (conds.utf8.wchars[i]) free(conds.utf8.wchars[i]); | 63 if (conds.utf8.wchars[i]) free(conds.utf8.wchars[i]); |
| 64 } | 64 } |
| 65 } | 65 } |
| 66 #ifdef HUNSPELL_EXPERIMENTAL | 66 #ifdef HUNSPELL_EXPERIMENTAL |
| 67 if (morphcode && !(opts & aeALIASM)) free(morphcode); | 67 if (morphcode && !(opts & aeALIASM)) free(morphcode); |
| 68 #endif | 68 #endif |
| 69 if (contclass && !(opts & aeALIASF)) free(contclass); | 69 if (contclass && !(opts & aeALIASF)) free(contclass); |
| 70 } | 70 } |
| 71 | 71 |
| 72 // add prefix to this word assuming conditions hold | 72 // add prefix to this word assuming conditions hold |
| (...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 conds[X] = conds[X] | (1 << 0) (aeiou are not allowed) | 861 conds[X] = conds[X] | (1 << 0) (aeiou are not allowed) |
| 862 where X is all characters *but* a, e, i, o, or u | 862 where X is all characters *but* a, e, i, o, or u |
| 863 | 863 |
| 864 | 864 |
| 865 conds['y'] = (1 << 1) (the last char must be a y) | 865 conds['y'] = (1 << 1) (the last char must be a y) |
| 866 all other bits for all other entries in the conds array are zero | 866 all other bits for all other entries in the conds array are zero |
| 867 | 867 |
| 868 | 868 |
| 869 #endif | 869 #endif |
| 870 | 870 |
| OLD | NEW |