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

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

Issue 6430: [Chromium-reviews] Fix issue 3039/3040 (Add to dictionary crasher) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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 | « no previous file | chrome/third_party/hunspell/src/hunspell/hashmgr.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 #ifndef _HASHMGR_HXX_ 1 #ifndef _HASHMGR_HXX_
2 #define _HASHMGR_HXX_ 2 #define _HASHMGR_HXX_
3 3
4 #include <cstdio> 4 #include <cstdio>
5 #include "htypes.hxx" 5 #include "htypes.hxx"
6 6
7 #ifdef HUNSPELL_CHROME_CLIENT 7 #ifdef HUNSPELL_CHROME_CLIENT
8 #include "chrome/common/stl_util-inl.h" 8 #include "chrome/common/stl_util-inl.h"
9 #include "chrome/third_party/hunspell/google/bdict_reader.h" 9 #include "chrome/third_party/hunspell/google/bdict_reader.h"
10 #include "base/string_piece.h" 10 #include "base/string_piece.h"
11 #include <string> 11 #include <string>
12 #include <map> 12 #include <map>
13 #endif 13 #endif
14 14
15 enum flag { FLAG_CHAR, FLAG_LONG, FLAG_NUM, FLAG_UNI }; 15 enum flag { FLAG_CHAR, FLAG_LONG, FLAG_NUM, FLAG_UNI };
16 16
17 class HashMgr 17 class HashMgr
18 { 18 {
19 #ifdef HUNSPELL_CHROME_CLIENT 19 #ifdef HUNSPELL_CHROME_CLIENT
20 // Not owned by this class, owned by the Hunspell object. 20 // Not owned by this class, owned by the Hunspell object.
21 hunspell::BDictReader* bdict_reader; 21 hunspell::BDictReader* bdict_reader;
22 std::map<StringPiece, struct hentry *> custom_word_to_hentry_map_; 22 std::map<StringPiece, int> custom_word_to_affix_id_map_;
23 std::vector<std::string*> pointer_to_strings_; 23 std::vector<std::string*> pointer_to_strings_;
24 #endif 24 #endif
25 int tablesize; 25 int tablesize;
26 struct hentry * tableptr; 26 struct hentry * tableptr;
27 int userword; 27 int userword;
28 flag flag_mode; 28 flag flag_mode;
29 int complexprefixes; 29 int complexprefixes;
30 int utf8; 30 int utf8;
31 char * ignorechars; 31 char * ignorechars;
32 unsigned short * ignorechars_utf16; 32 unsigned short * ignorechars_utf16;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 int parse_aliasf(char * line, FILE * af); 94 int parse_aliasf(char * line, FILE * af);
95 #endif 95 #endif
96 96
97 #ifdef HUNSPELL_EXPERIMENTAL 97 #ifdef HUNSPELL_EXPERIMENTAL
98 int parse_aliasm(char * line, FILE * af); 98 int parse_aliasm(char * line, FILE * af);
99 #endif 99 #endif
100 100
101 }; 101 };
102 102
103 #endif 103 #endif
OLDNEW
« no previous file with comments | « no previous file | chrome/third_party/hunspell/src/hunspell/hashmgr.cxx » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698