[gspell/wip/entry] Entry utils: add _gspell_entry_word_new() to the header
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gspell/wip/entry] Entry utils: add _gspell_entry_word_new() to the header
- Date: Sat, 29 Oct 2016 17:38:00 +0000 (UTC)
commit 3d88855cf445bba1eec2d62fead711a53f34b6f4
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Oct 29 19:08:50 2016 +0200
Entry utils: add _gspell_entry_word_new() to the header
It'll be useful for the unit test.
gspell/gspell-entry-utils.c | 6 +++---
gspell/gspell-entry-utils.h | 7 +++++--
2 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/gspell/gspell-entry-utils.c b/gspell/gspell-entry-utils.c
index 05488a3..65af122 100644
--- a/gspell/gspell-entry-utils.c
+++ b/gspell/gspell-entry-utils.c
@@ -20,8 +20,8 @@
#include "gspell-entry-utils.h"
#include <string.h>
-static GspellEntryWord *
-entry_word_new (void)
+GspellEntryWord *
+_gspell_entry_word_new (void)
{
return g_new0 (GspellEntryWord, 1);
}
@@ -80,7 +80,7 @@ _gspell_entry_utils_get_words (GtkEntry *entry)
word_end = word_start + strlen (word_start);
}
- word = entry_word_new ();
+ word = _gspell_entry_word_new ();
word->byte_start = word_start - text;
word->byte_end = word_end - text;
word->word_str = g_strndup (word_start, word_end - word_start);
diff --git a/gspell/gspell-entry-utils.h b/gspell/gspell-entry-utils.h
index cdac6d6..3aa101e 100644
--- a/gspell/gspell-entry-utils.h
+++ b/gspell/gspell-entry-utils.h
@@ -37,10 +37,13 @@ struct _GspellEntryWord
};
G_GNUC_INTERNAL
-void _gspell_entry_word_free (gpointer data);
+GspellEntryWord *_gspell_entry_word_new (void);
G_GNUC_INTERNAL
-GSList * _gspell_entry_utils_get_words (GtkEntry *entry);
+void _gspell_entry_word_free (gpointer data);
+
+G_GNUC_INTERNAL
+GSList * _gspell_entry_utils_get_words (GtkEntry *entry);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]