[gtksourceview] utils: rename string_to_int()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] utils: rename string_to_int()
- Date: Sun, 24 Sep 2017 09:49:30 +0000 (UTC)
commit 2e61b5094e90092a75f2ed66fe70beefeb6f4a2d
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Sep 24 11:37:38 2017 +0200
utils: rename string_to_int()
gtksourceview/gtksourcecontextengine.c | 2 +-
gtksourceview/gtksourceregex.c | 2 +-
gtksourceview/gtksourceview-utils.c | 2 +-
gtksourceview/gtksourceview-utils.h | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtksourceview/gtksourcecontextengine.c b/gtksourceview/gtksourcecontextengine.c
index 97d345d..91574d4 100644
--- a/gtksourceview/gtksourcecontextengine.c
+++ b/gtksourceview/gtksourcecontextengine.c
@@ -6000,7 +6000,7 @@ _gtk_source_context_data_add_sub_pattern (GtkSourceContextData *ctx_data,
#endif
sp_def->style = g_strdup (style);
sp_def->where = where_num;
- number = _gtk_source_string_to_int (name);
+ number = _gtk_source_utils_string_to_int (name);
if (number < 0)
{
diff --git a/gtksourceview/gtksourceregex.c b/gtksourceview/gtksourceregex.c
index 560ec88..ed8f349 100644
--- a/gtksourceview/gtksourceregex.c
+++ b/gtksourceview/gtksourceregex.c
@@ -198,7 +198,7 @@ replace_start_regex (const GMatchInfo *match_info,
escapes = g_match_info_fetch (match_info, 1);
num_string = g_match_info_fetch (match_info, 2);
- num = _gtk_source_string_to_int (num_string);
+ num = _gtk_source_utils_string_to_int (num_string);
if (num < 0)
{
diff --git a/gtksourceview/gtksourceview-utils.c b/gtksourceview/gtksourceview-utils.c
index 2683aa5..37de2d6 100644
--- a/gtksourceview/gtksourceview-utils.c
+++ b/gtksourceview/gtksourceview-utils.c
@@ -122,7 +122,7 @@ _gtk_source_utils_get_file_list (gchar **path,
* (e.g. \%{1@start} or \%{blah@start}) are named or numbers.
*/
gint
-_gtk_source_string_to_int (const gchar *str)
+_gtk_source_utils_string_to_int (const gchar *str)
{
guint64 number;
gchar *end_str;
diff --git a/gtksourceview/gtksourceview-utils.h b/gtksourceview/gtksourceview-utils.h
index 8b8417e..ca65d2b 100644
--- a/gtksourceview/gtksourceview-utils.h
+++ b/gtksourceview/gtksourceview-utils.h
@@ -35,7 +35,7 @@ GSList * _gtk_source_utils_get_file_list (gchar **path,
gboolean only_dirs);
G_GNUC_INTERNAL
-gint _gtk_source_string_to_int (const gchar *str);
+gint _gtk_source_utils_string_to_int (const gchar *str);
G_GNUC_INTERNAL
gchar * _gtk_source_pango_font_description_to_css (const PangoFontDescription
*font_desc);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]