Changeset View
Changeset View
Standalone View
Standalone View
textproc/hunspell/files/patch-add-const
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | @@ -155,7 +155,7 @@ class LIBHUNSPELL_DLL_EXPORTED Hunspell | ||||
H_DEPRECATED void free_list(char*** slst, int n); | H_DEPRECATED void free_list(char*** slst, int n); | ||||
const std::string& get_dict_encoding() const; | const std::string& get_dict_encoding() const; | ||||
- char* get_dic_encoding(); | - char* get_dic_encoding(); | ||||
+ H_DEPRECATED const char* get_dic_encoding() const; | + H_DEPRECATED const char* get_dic_encoding() const; | ||||
/* morphological functions */ | /* morphological functions */ | ||||
--- src/win_api/hunspelldll.c.orig 2016-11-28 10:34:55 UTC | |||||
+++ src/win_api/hunspelldll.c | |||||
@@ -73,7 +73,7 @@ LIBHUNSPELL_DLL_EXPORTED void hunspell_f | |||||
pMS->free_list(slst, len); | |||||
} | |||||
-LIBHUNSPELL_DLL_EXPORTED char* hunspell_get_dic_encoding(Hunspell* pMS) { | |||||
+LIBHUNSPELL_DLL_EXPORTED const char* hunspell_get_dic_encoding(Hunspell* pMS) { | |||||
return pMS->get_dic_encoding(); | |||||
} | |||||
--- src/win_api/hunspelldll.h.orig 2016-11-28 10:34:55 UTC | |||||
+++ src/win_api/hunspelldll.h | |||||
@@ -59,7 +59,7 @@ LIBHUNSPELL_DLL_EXPORTED void hunspell_f | |||||
char*** slst, | |||||
int len); | |||||
// make local copy of returned string!! | |||||
-LIBHUNSPELL_DLL_EXPORTED char* hunspell_get_dic_encoding(Hunspell* pMS); | |||||
+LIBHUNSPELL_DLL_EXPORTED const char* hunspell_get_dic_encoding(Hunspell* pMS); | |||||
// add word to dict (word is valid until spell object is not destroyed) | |||||
LIBHUNSPELL_DLL_EXPORTED int hunspell_add(Hunspell* pMS, char* word); |