summaryrefslogtreecommitdiff
path: root/providers/enchant_aspell.c
diff options
context:
space:
mode:
authorDimitrij Mijoski <dmjpp@hotmail.com>2022-03-16 13:55:15 +0100
committerReuben Thomas <rrt@sc3d.org>2022-03-19 06:21:57 +0000
commite523f845add260106335cecfe08534cf8732cc29 (patch)
tree5bb3304708a5ffc49b035ab332b84614dd9afb1c /providers/enchant_aspell.c
parent49d87fea52bb19770f76710cfaf69881246a7219 (diff)
downloadenchant-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_aspell.c')
-rw-r--r--providers/enchant_aspell.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/providers/enchant_aspell.c b/providers/enchant_aspell.c
index 3bef4ef..8fec6d2 100644
--- a/providers/enchant_aspell.c
+++ b/providers/enchant_aspell.c
@@ -42,7 +42,6 @@
#include <aspell.h>
#include "enchant-provider.h"
-#include "unused-parameter.h"
EnchantProvider *init_enchant_provider (void);
@@ -132,7 +131,7 @@ aspell_dict_store_replacement (EnchantDict * me,
}
static EnchantDict *
-aspell_provider_request_dict (EnchantProvider * me _GL_UNUSED_PARAMETER, const char *const tag)
+aspell_provider_request_dict (EnchantProvider * me _GL_UNUSED, const char *const tag)
{
AspellConfig *spell_config = new_aspell_config ();
aspell_config_replace (spell_config, "language-tag", tag);
@@ -162,7 +161,7 @@ aspell_provider_request_dict (EnchantProvider * me _GL_UNUSED_PARAMETER, const c
}
static void
-aspell_provider_dispose_dict (EnchantProvider * me _GL_UNUSED_PARAMETER, EnchantDict * dict)
+aspell_provider_dispose_dict (EnchantProvider * me _GL_UNUSED, EnchantDict * dict)
{
AspellSpeller *manager = (AspellSpeller *) dict->user_data;
delete_aspell_speller (manager);
@@ -171,7 +170,7 @@ aspell_provider_dispose_dict (EnchantProvider * me _GL_UNUSED_PARAMETER, Enchant
}
static char **
-aspell_provider_list_dicts (EnchantProvider * me _GL_UNUSED_PARAMETER,
+aspell_provider_list_dicts (EnchantProvider * me _GL_UNUSED,
size_t * out_n_dicts)
{
AspellConfig * spell_config = new_aspell_config ();
@@ -213,13 +212,13 @@ aspell_provider_dispose (EnchantProvider * me)
}
static const char *
-aspell_provider_identify (EnchantProvider * me _GL_UNUSED_PARAMETER)
+aspell_provider_identify (EnchantProvider * me _GL_UNUSED)
{
return "aspell";
}
static const char *
-aspell_provider_describe (EnchantProvider * me _GL_UNUSED_PARAMETER)
+aspell_provider_describe (EnchantProvider * me _GL_UNUSED)
{
return "Aspell Provider";
}