Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 324863 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-4 / +6 lines)
Line  Link Here
0
-- comm-1.9.2/mozilla/extensions/spellcheck/hunspell/src/hashmgr.cpp
0
++ comm-1.9.2/mozilla/extensions/spellcheck/hunspell/src/hashmgr.cpp
Lines 187-193 Link Here
187
    struct hentry* hp = 
187
    struct hentry* hp = 
188
	(struct hentry *) malloc (sizeof(struct hentry) + wbl + descl);
188
	(struct hentry *) malloc (sizeof(struct hentry) + wbl + descl);
189
    if (!hp) return 1;
189
    if (!hp) return 1;
190
    char * hpw = &(hp->word);
190
    char * hpw = HENTRY_WORD(hp);
191
    strcpy(hpw, word);
191
    strcpy(hpw, word);
192
    if (ignorechars != NULL) {
192
    if (ignorechars != NULL) {
193
      if (utf8) {
193
      if (utf8) {
194
-- comm-1.9.2/mozilla/extensions/spellcheck/hunspell/src/htypes.hxx
194
++ comm-1.9.2/mozilla/extensions/spellcheck/hunspell/src/htypes.hxx
Lines 57-62 Link Here
57
#ifndef _HTYPES_HXX_
57
#ifndef _HTYPES_HXX_
58
#define _HTYPES_HXX_
58
#define _HTYPES_HXX_
59
59
60
#include <cstddef>
61
60
#define ROTATE_LEN   5
62
#define ROTATE_LEN   5
61
63
62
#define ROTATE(v,q) \
64
#define ROTATE(v,q) \
Lines 68-74 Link Here
68
#define H_OPT_PHON   (1 << 2)
70
#define H_OPT_PHON   (1 << 2)
69
71
70
// see also csutil.hxx
72
// see also csutil.hxx
71
#define HENTRY_WORD(h) &(h->word)
73
#define HENTRY_WORD(h) ((char *) h + offsetof(struct hentry, word))
72
74
73
// approx. number  of user defined words
75
// approx. number  of user defined words
74
#define USERWORD 1000
76
#define USERWORD 1000

Return to bug 324863