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

Side by Side Diff: hunspell/google.patch

Issue 16997003: Use a direct include of strings headers in hunspell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/
Patch Set: Created 7 years, 6 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 | « hunspell/README.chromium ('k') | hunspell/google/bdict_writer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Index: src/hunspell/affixmgr.cxx 1 Index: src/hunspell/affixmgr.cxx
2 =================================================================== 2 ===================================================================
3 RCS file: /cvsroot/hunspell/hunspell/src/hunspell/affixmgr.cxx,v 3 RCS file: /cvsroot/hunspell/hunspell/src/hunspell/affixmgr.cxx,v
4 retrieving revision 1.41 4 retrieving revision 1.41
5 diff -u -r1.41 affixmgr.cxx 5 diff -u -r1.41 affixmgr.cxx
6 --- src/hunspell/affixmgr.cxx 16 Dec 2011 09:15:34 -0000 1.41 6 --- src/hunspell/affixmgr.cxx 16 Dec 2011 09:15:34 -0000 1.41
7 +++ src/hunspell/affixmgr.cxx 27 Feb 2013 01:10:35 -0000 7 +++ src/hunspell/affixmgr.cxx 27 Feb 2013 01:10:35 -0000
8 @@ -14,8 +14,14 @@ 8 @@ -14,8 +14,14 @@
9 9
10 #include "csutil.hxx" 10 #include "csutil.hxx"
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 +++ src/hunspell/hashmgr.hxx 27 Feb 2013 01:10:35 -0000 741 +++ src/hunspell/hashmgr.hxx 27 Feb 2013 01:10:35 -0000
742 @@ -8,10 +8,25 @@ 742 @@ -8,10 +8,25 @@
743 #include "htypes.hxx" 743 #include "htypes.hxx"
744 #include "filemgr.hxx" 744 #include "filemgr.hxx"
745 745
746 +#ifdef HUNSPELL_CHROME_CLIENT 746 +#ifdef HUNSPELL_CHROME_CLIENT
747 +#include <string> 747 +#include <string>
748 +#include <map> 748 +#include <map>
749 + 749 +
750 +#include "base/stl_util.h" 750 +#include "base/stl_util.h"
751 +#include "base/string_piece.h" 751 +#include "base/strings/string_piece.h"
752 +#include "third_party/hunspell/google/bdict_reader.h" 752 +#include "third_party/hunspell/google/bdict_reader.h"
753 +#endif 753 +#endif
754 + 754 +
755 enum flag { FLAG_CHAR, FLAG_LONG, FLAG_NUM, FLAG_UNI }; 755 enum flag { FLAG_CHAR, FLAG_LONG, FLAG_NUM, FLAG_UNI };
756 756
757 class LIBHUNSPELL_DLL_EXPORTED HashMgr 757 class LIBHUNSPELL_DLL_EXPORTED HashMgr
758 { 758 {
759 +#ifdef HUNSPELL_CHROME_CLIENT 759 +#ifdef HUNSPELL_CHROME_CLIENT
760 + // Not owned by this class, owned by the Hunspell object. 760 + // Not owned by this class, owned by the Hunspell object.
761 + hunspell::BDictReader* bdict_reader; 761 + hunspell::BDictReader* bdict_reader;
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
1326 char * suggest_morph_for_spelling_error(const char * word); 1326 char * suggest_morph_for_spelling_error(const char * word);
1327 1327
1328 private: 1328 private:
1329 +#ifdef HUNSPELL_CHROME_CLIENT 1329 +#ifdef HUNSPELL_CHROME_CLIENT
1330 + // Not owned by us, owned by the Hunspell object. 1330 + // Not owned by us, owned by the Hunspell object.
1331 + hunspell::BDictReader* bdict_reader; 1331 + hunspell::BDictReader* bdict_reader;
1332 +#endif 1332 +#endif
1333 int testsug(char** wlst, const char * candidate, int wl, int ns, int cpdsugg est, 1333 int testsug(char** wlst, const char * candidate, int wl, int ns, int cpdsugg est,
1334 int * timer, clock_t * timelimit); 1334 int * timer, clock_t * timelimit);
1335 int checkword(const char *, int, int, int *, clock_t *); 1335 int checkword(const char *, int, int, int *, clock_t *);
OLDNEW
« no previous file with comments | « hunspell/README.chromium ('k') | hunspell/google/bdict_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698