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

Side by Side Diff: chrome/third_party/hunspell/src/hunspell/affentry.cxx

Issue 113324: Apply codereview/115228 to 172.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/branches/172/src/
Patch Set: Created 11 years, 7 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
« no previous file with comments | « no previous file | chrome/third_party/hunspell/src/hunspell/affixmgr.cxx » ('j') | 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 #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
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/third_party/hunspell/src/hunspell/affixmgr.cxx » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698