[gtksourceview/wip/public-region] region: prefix debug_print() function with underscore
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/public-region] region: prefix debug_print() function with underscore
- Date: Fri, 1 Apr 2016 17:54:20 +0000 (UTC)
commit 98b0ca2e77ccee63840aba5136d4259d3ed9210f
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Apr 1 19:52:14 2016 +0200
region: prefix debug_print() function with underscore
So it's fully private.
gtksourceview/gtksourceregion.c | 12 ++++++------
gtksourceview/gtksourceregion.h | 2 +-
gtksourceview/gtksourcesearchcontext.c | 8 ++++----
testsuite/test-region.c | 4 ++--
4 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/gtksourceview/gtksourceregion.c b/gtksourceview/gtksourceregion.c
index f33cbb5..9028976 100644
--- a/gtksourceview/gtksourceregion.c
+++ b/gtksourceview/gtksourceregion.c
@@ -243,7 +243,7 @@ gtk_source_region_add (GtkSourceRegion *region,
end = *_end;
DEBUG (g_print ("---\n"));
- DEBUG (gtk_source_region_debug_print (region));
+ DEBUG (_gtk_source_region_debug_print (region));
DEBUG (g_message ("region_add (%d, %d)",
gtk_text_iter_get_offset (&start),
gtk_text_iter_get_offset (&end)));
@@ -328,7 +328,7 @@ gtk_source_region_add (GtkSourceRegion *region,
region->timestamp++;
- DEBUG (gtk_source_region_debug_print (region));
+ DEBUG (_gtk_source_region_debug_print (region));
}
void
@@ -361,7 +361,7 @@ gtk_source_region_subtract (GtkSourceRegion *region,
end = *_end;
DEBUG (g_print ("---\n"));
- DEBUG (gtk_source_region_debug_print (region));
+ DEBUG (_gtk_source_region_debug_print (region));
DEBUG (g_message ("region_substract (%d, %d)",
gtk_text_iter_get_offset (&start),
gtk_text_iter_get_offset (&end)));
@@ -485,12 +485,12 @@ gtk_source_region_subtract (GtkSourceRegion *region,
region->timestamp++;
- DEBUG (gtk_source_region_debug_print (region));
+ DEBUG (_gtk_source_region_debug_print (region));
/* Now get rid of empty subregions. */
gtk_source_region_clear_zero_length_subregions (region);
- DEBUG (gtk_source_region_debug_print (region));
+ DEBUG (_gtk_source_region_debug_print (region));
}
gint
@@ -793,7 +793,7 @@ gtk_source_region_iter_get_subregion (GtkSourceRegionIter *iter,
}
void
-gtk_source_region_debug_print (GtkSourceRegion *region)
+_gtk_source_region_debug_print (GtkSourceRegion *region)
{
GList *l;
diff --git a/gtksourceview/gtksourceregion.h b/gtksourceview/gtksourceregion.h
index 894cd80..304eeb2 100644
--- a/gtksourceview/gtksourceregion.h
+++ b/gtksourceview/gtksourceregion.h
@@ -94,7 +94,7 @@ gboolean gtk_source_region_iter_get_subregion (GtkSourceRegionIter *iter,
GtkTextIter *end);
GTK_SOURCE_INTERNAL
-void gtk_source_region_debug_print (GtkSourceRegion *region);
+void _gtk_source_region_debug_print (GtkSourceRegion *region);
G_END_DECLS
diff --git a/gtksourceview/gtksourcesearchcontext.c b/gtksourceview/gtksourcesearchcontext.c
index 080346b..9fd2718 100644
--- a/gtksourceview/gtksourcesearchcontext.c
+++ b/gtksourceview/gtksourcesearchcontext.c
@@ -1560,14 +1560,14 @@ scan_subregion (GtkSourceSearchContext *search,
{
DEBUG ({
g_print ("Region to scan, before:\n");
- gtk_source_region_debug_print (search->priv->scan_region);
+ _gtk_source_region_debug_print (search->priv->scan_region);
});
gtk_source_region_subtract (search->priv->scan_region, start, end);
DEBUG ({
g_print ("Region to scan, after:\n");
- gtk_source_region_debug_print (search->priv->scan_region);
+ _gtk_source_region_debug_print (search->priv->scan_region);
});
}
@@ -2368,14 +2368,14 @@ add_subregion_to_scan (GtkSourceSearchContext *search,
DEBUG ({
g_print ("add_subregion_to_scan(): region to scan, before:\n");
- gtk_source_region_debug_print (search->priv->scan_region);
+ _gtk_source_region_debug_print (search->priv->scan_region);
});
gtk_source_region_add (search->priv->scan_region, &start, &end);
DEBUG ({
g_print ("add_subregion_to_scan(): region to scan, after:\n");
- gtk_source_region_debug_print (search->priv->scan_region);
+ _gtk_source_region_debug_print (search->priv->scan_region);
});
install_idle_scan (search);
diff --git a/testsuite/test-region.c b/testsuite/test-region.c
index b9fab71..c71fde4 100644
--- a/testsuite/test-region.c
+++ b/testsuite/test-region.c
@@ -117,7 +117,7 @@ test_region (void)
}
g_print ("%s %d-%d\n", op_name, ops [i][1], ops [i][2]);
- gtk_source_region_debug_print (region);
+ _gtk_source_region_debug_print (region);
}
for (i = 0; i < NUM_INTERSECTS; i++) {
@@ -127,7 +127,7 @@ test_region (void)
g_print ("intersect %d-%d\n", inter [i][0], inter [i][1]);
intersection = gtk_source_region_intersect (region, &iter1, &iter2);
if (intersection) {
- gtk_source_region_debug_print (intersection);
+ _gtk_source_region_debug_print (intersection);
gtk_source_region_destroy (intersection);
} else {
g_print ("no intersection\n");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]