summaryrefslogtreecommitdiff
path: root/libs/hunspell/src/hunspelldll.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/hunspell/src/hunspelldll.c')
-rw-r--r--libs/hunspell/src/hunspelldll.c73
1 files changed, 0 insertions, 73 deletions
diff --git a/libs/hunspell/src/hunspelldll.c b/libs/hunspell/src/hunspelldll.c
index fae1c5acd5..fdd667ce8f 100644
--- a/libs/hunspell/src/hunspelldll.c
+++ b/libs/hunspell/src/hunspelldll.c
@@ -34,79 +34,6 @@
#include "hunspelldll.h"
#include <windows.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <cstring>
-#include <cstdlib>
-#include <cstdio>
-
-LIBHUNSPELL_DLL_EXPORTED void* hunspell_initialize(char* aff_file,
- char* dict_file) {
- Hunspell* pMS = new Hunspell(aff_file, dict_file);
- return pMS;
-}
-
-LIBHUNSPELL_DLL_EXPORTED void* hunspell_initialize_key(char* aff_file,
- char* dict_file,
- char* key) {
- Hunspell* pMS = new Hunspell(aff_file, dict_file, key);
- return pMS;
-}
-
-LIBHUNSPELL_DLL_EXPORTED void hunspell_uninitialize(Hunspell* pMS) {
- delete pMS;
-}
-
-LIBHUNSPELL_DLL_EXPORTED int hunspell_spell(Hunspell* pMS, char* word) {
- return pMS->spell(word);
-}
-
-LIBHUNSPELL_DLL_EXPORTED int hunspell_suggest(Hunspell* pMS,
- char* word,
- char*** slst) {
- return pMS->suggest(slst, word);
-}
-
-#ifdef HUNSPELL_EXPERIMENTAL
-LIBHUNSPELL_DLL_EXPORTED int hunspell_suggest_auto(Hunspell* pMS,
- char* word,
- char*** slst) {
- return pMS->suggest_auto(slst, word);
-}
-#endif
-
-LIBHUNSPELL_DLL_EXPORTED void hunspell_free_list(Hunspell* pMS,
- char*** slst,
- int len) {
- pMS->free_list(slst, len);
-}
-
-// deprecated (use hunspell_free_list)
-LIBHUNSPELL_DLL_EXPORTED void hunspell_suggest_free(Hunspell* pMS,
- char** slst,
- int len) {
- for (int i = 0; i < len; i++) {
- free(slst[i]);
- }
-}
-
-LIBHUNSPELL_DLL_EXPORTED char* hunspell_get_dic_encoding(Hunspell* pMS) {
- return pMS->get_dic_encoding();
-}
-
-LIBHUNSPELL_DLL_EXPORTED int hunspell_add(Hunspell* pMS, char* word) {
- return pMS->add(word);
-}
-
-LIBHUNSPELL_DLL_EXPORTED int hunspell_add_with_affix(Hunspell* pMS,
- char* word,
- char* modelword) {
- return pMS->add_with_affix(word, modelword);
-}
-
-LIBHUNSPELL_DLL_EXPORTED int hunspell_remove(Hunspell* pMS, char* word) {
- return pMS->remove(word);
-}
BOOL APIENTRY DllMain(HINSTANCE hInst /* Library instance handle. */,
DWORD reason /* Reason this function is being called. */,