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

Side by Side Diff: chrome/third_party/hunspell/src/hunspell/htypes.hxx

Issue 18041: The first step towards Turkish spell-checker.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 | « chrome/third_party/hunspell/src/hunspell/hashmgr.cxx ('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 #ifndef _HTYPES_HXX_ 1 #ifndef _HTYPES_HXX_
2 #define _HTYPES_HXX_ 2 #define _HTYPES_HXX_
3 3
4 #ifdef HUNSPELL_CHROME_CLIENT
5 // This is a workaround for preventing errors in parsing Turkish BDICs, which
6 // contain very long AF lines (~ 12,000 chars).
7 // TODO(hbono) change the HashMgr::parse_aliasf() function to be able to parse
8 // longer lines than MAXDELEN.
9 #define MAXDELEN (8192 * 2)
10 #else
4 #define MAXDELEN 8192 11 #define MAXDELEN 8192
12 #endif // HUNSPELL_CHROME_CLIENT
5 13
6 #define ROTATE_LEN 5 14 #define ROTATE_LEN 5
7 15
8 #define ROTATE(v,q) \ 16 #define ROTATE(v,q) \
9 (v) = ((v) << (q)) | (((v) >> (32 - q)) & ((1 << (q))-1)); 17 (v) = ((v) << (q)) | (((v) >> (32 - q)) & ((1 << (q))-1));
10 // approx. number of user defined words 18 // approx. number of user defined words
11 #define USERWORD 1000 19 #define USERWORD 1000
12 20
13 struct hentry 21 struct hentry
14 { 22 {
15 short wlen; 23 short wlen;
16 short alen; 24 short alen;
17 /* NOTE: Removed by mbelshe since this is not used. 25 /* NOTE: Removed by mbelshe since this is not used.
18 * The english dictionary is 63K in size, so removing this 26 * The english dictionary is 63K in size, so removing this
19 * itty bitty field saves us ~250KB of RAM. 27 * itty bitty field saves us ~250KB of RAM.
20 char wbeg[2]; 28 char wbeg[2];
21 */ 29 */
22 char * word; 30 char * word;
23 unsigned short * astr; 31 unsigned short * astr;
24 struct hentry * next; 32 struct hentry * next;
25 struct hentry * next_homonym; 33 struct hentry * next_homonym;
26 #ifdef HUNSPELL_EXPERIMENTAL 34 #ifdef HUNSPELL_EXPERIMENTAL
27 char * description; 35 char * description;
28 #endif 36 #endif
29 }; 37 };
30 38
31 #endif 39 #endif
OLDNEW
« no previous file with comments | « chrome/third_party/hunspell/src/hunspell/hashmgr.cxx ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698