diff options
author | Dimitrij Mijoski <dmjpp@hotmail.com> | 2022-03-16 13:55:15 +0100 |
---|---|---|
committer | Reuben Thomas <rrt@sc3d.org> | 2022-03-19 06:21:57 +0000 |
commit | e523f845add260106335cecfe08534cf8732cc29 (patch) | |
tree | 5bb3304708a5ffc49b035ab332b84614dd9afb1c /providers/enchant_hunspell.cpp | |
parent | 49d87fea52bb19770f76710cfaf69881246a7219 (diff) | |
download | enchant-e523f845add260106335cecfe08534cf8732cc29.tar.gz |
Reduce dependency on gnulib by requiring C99 and POSIX 2008
- Remove gnulib modules c99, getopt-posix, strdup-posix, ssize_t
- Also remove obsolete gnulib module snippet/unused-parameter, use
_GL_UNUSED instead of older _GL_UNUSED_PARAMETER, and instead of
[[maybe_unused]].
Thanks to @dimztimz for providing the patch on which this commit is based.
Diffstat (limited to 'providers/enchant_hunspell.cpp')
-rw-r--r-- | providers/enchant_hunspell.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/providers/enchant_hunspell.cpp b/providers/enchant_hunspell.cpp index f0156a2..cc7934d 100644 --- a/providers/enchant_hunspell.cpp +++ b/providers/enchant_hunspell.cpp @@ -43,7 +43,6 @@ #include <vector> #include "enchant-provider.h" -#include "unused-parameter.h" #include <hunspell/hunspell.hxx> // hunspell itself uses this definition (which only supports the BMP) @@ -411,7 +410,7 @@ hunspell_provider_enum_dicts (const char * const directory, extern "C" { static char ** -hunspell_provider_list_dicts (EnchantProvider * me _GL_UNUSED_PARAMETER, +hunspell_provider_list_dicts (EnchantProvider * me _GL_UNUSED, size_t * out_n_dicts) { std::vector<std::string> dict_dirs, dicts; @@ -436,7 +435,7 @@ hunspell_provider_list_dicts (EnchantProvider * me _GL_UNUSED_PARAMETER, } static EnchantDict * -hunspell_provider_request_dict(EnchantProvider * me _GL_UNUSED_PARAMETER, const char *const tag) +hunspell_provider_request_dict(EnchantProvider * me _GL_UNUSED, const char *const tag) { HunspellChecker * checker = new HunspellChecker(); @@ -460,7 +459,7 @@ hunspell_provider_request_dict(EnchantProvider * me _GL_UNUSED_PARAMETER, const } static void -hunspell_provider_dispose_dict (EnchantProvider * me _GL_UNUSED_PARAMETER, EnchantDict * dict) +hunspell_provider_dispose_dict (EnchantProvider * me _GL_UNUSED, EnchantDict * dict) { HunspellChecker *checker = (HunspellChecker *) dict->user_data; delete checker; @@ -469,7 +468,7 @@ hunspell_provider_dispose_dict (EnchantProvider * me _GL_UNUSED_PARAMETER, Encha } static int -hunspell_provider_dictionary_exists (struct str_enchant_provider * me _GL_UNUSED_PARAMETER, +hunspell_provider_dictionary_exists (struct str_enchant_provider * me _GL_UNUSED, const char *const tag) { std::vector <std::string> names; @@ -492,13 +491,13 @@ hunspell_provider_dispose (EnchantProvider * me) } static const char * -hunspell_provider_identify (EnchantProvider * me _GL_UNUSED_PARAMETER) +hunspell_provider_identify (EnchantProvider * me _GL_UNUSED) { return "hunspell"; } static const char * -hunspell_provider_describe (EnchantProvider * me _GL_UNUSED_PARAMETER) +hunspell_provider_describe (EnchantProvider * me _GL_UNUSED) { return "Hunspell Provider"; } |