Bug 1322666 - Change MAXWORDLEN to 100, matching the previous default from Hunspell 1.3. r=masayuki

This commit is contained in:
Ryan VanderMeulen 2016-12-14 21:42:32 -05:00
parent 9784365b21
commit 0d5d58913a
2 changed files with 25 additions and 1 deletions

View File

@ -83,7 +83,7 @@
#define MAXSUGGESTION 15
#define MAXSHARPS 5
#define MAXWORDLEN 176
#define MAXWORDLEN 100
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
# define H_DEPRECATED __attribute__((__deprecated__))

View File

@ -0,0 +1,24 @@
Bug 1322666 - Change MAXWORDLEN to 100
diff --git a/extensions/spellcheck/hunspell/src/hunspell.hxx b/extensions/spellcheck/hunspell/src/hunspell.hxx
--- a/extensions/spellcheck/hunspell/src/hunspell.hxx
+++ b/extensions/spellcheck/hunspell/src/hunspell.hxx
@@ -78,17 +78,17 @@
#include "atypes.hxx"
#include <string>
#include <vector>
#define SPELL_XML "<?xml?>"
#define MAXSUGGESTION 15
#define MAXSHARPS 5
-#define MAXWORDLEN 176
+#define MAXWORDLEN 100
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
# define H_DEPRECATED __attribute__((__deprecated__))
#elif defined(_MSC_VER) && (_MSC_VER >= 1300)
# define H_DEPRECATED __declspec(deprecated)
#else
# define H_DEPRECATED
#endif