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

Unified Diff: chrome/third_party/hunspell/src/hunspell/htypes.hxx

Issue 155841: Update Hunspell to the latest stable version to use the latest dictionary for... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/third_party/hunspell/src/hunspell/htypes.hxx
===================================================================
--- chrome/third_party/hunspell/src/hunspell/htypes.hxx (revision 21721)
+++ chrome/third_party/hunspell/src/hunspell/htypes.hxx (working copy)
@@ -15,25 +15,28 @@
#define ROTATE(v,q) \
(v) = ((v) << (q)) | (((v) >> (32 - q)) & ((1 << (q))-1));
+
+// hentry options
+#define H_OPT (1 << 0)
+#define H_OPT_ALIASM (1 << 1)
+#define H_OPT_PHON (1 << 2)
+
+// see also csutil.hxx
+#define HENTRY_WORD(h) &(h->word)
+
// approx. number of user defined words
#define USERWORD 1000
struct hentry
{
- short wlen;
- short alen;
- /* NOTE: Removed by mbelshe since this is not used.
- * The english dictionary is 63K in size, so removing this
- * itty bitty field saves us ~250KB of RAM.
- char wbeg[2];
- */
- char * word;
- unsigned short * astr;
- struct hentry * next;
- struct hentry * next_homonym;
-#ifdef HUNSPELL_EXPERIMENTAL
- char * description;
-#endif
+ unsigned char blen; // word length in bytes
+ unsigned char clen; // word length in characters (different for UTF-8 enc.)
+ short alen; // length of affix flag vector
+ unsigned short * astr; // affix flag vector
+ struct hentry * next; // next word with same hash code
+ struct hentry * next_homonym; // next homonym word (with same hash code)
+ char var; // variable fields (only for special pronounciation yet)
+ char word; // variable-length word (8-bit or UTF-8 encoding)
};
#endif
Property changes on: chrome\third_party\hunspell\src\hunspell\htypes.hxx
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/third_party/hunspell/src/hunspell/hashmgr.cxx ('k') | chrome/third_party/hunspell/src/hunspell/hunspell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698