1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-07 10:13:12 +02:00

spell: rename variable "broker" to "spell_enchant_broker"

This commit is contained in:
Sébastien Helleu
2025-03-16 15:47:18 +01:00
parent 6b19987e7f
commit 6d11468059
5 changed files with 15 additions and 12 deletions
+8 -6
View File
@@ -58,7 +58,7 @@ char *spell_nick_completer = NULL;
int spell_len_nick_completer = 0;
#ifdef USE_ENCHANT
EnchantBroker *broker = NULL;
EnchantBroker *spell_enchant_broker = NULL;
#endif /* USE_ENCHANT */
/*
@@ -1177,11 +1177,13 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
#ifdef USE_ENCHANT
/* acquire enchant broker */
broker = enchant_broker_init ();
if (!broker)
spell_enchant_broker = enchant_broker_init ();
if (!spell_enchant_broker)
return WEECHAT_RC_ERROR;
#ifdef ENCHANT_MYSPELL_DICT_DIR
enchant_broker_set_param(broker, "enchant.myspell.dictionary.path", ENCHANT_MYSPELL_DICT_DIR);
enchant_broker_set_param(spell_enchant_broker,
"enchant.myspell.dictionary.path",
ENCHANT_MYSPELL_DICT_DIR);
#endif
#endif /* USE_ENCHANT */
@@ -1247,8 +1249,8 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
#ifdef USE_ENCHANT
/* release enchant broker */
enchant_broker_free (broker);
broker = NULL;
enchant_broker_free (spell_enchant_broker);
spell_enchant_broker = NULL;
#endif /* USE_ENCHANT */
if (spell_nick_completer)