aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-08-13 22:19:18 +0200
committerThomas White <taw@physics.org>2017-08-13 22:20:07 +0200
commit50477700fdc661beda936c64891520f7d159f6ac (patch)
treeb26b8ac7f471ac3197e526b0d908feb42480e0cf /src
parentb82083a69b6328ecd1f750e55e46c7b9ad49f486 (diff)
Move debugging routines up
Diffstat (limited to 'src')
-rw-r--r--src/sc_editor.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c
index 721626e..f2c17f8 100644
--- a/src/sc_editor.c
+++ b/src/sc_editor.c
@@ -64,6 +64,26 @@ G_DEFINE_TYPE_WITH_CODE(SCEditor, sc_editor, GTK_TYPE_DRAWING_AREA,
G_IMPLEMENT_INTERFACE(GTK_TYPE_SCROLLABLE,
scroll_interface_init))
+static void debug_paragraphs(SCEditor *e)
+{
+ struct frame *fr = e->cursor_frame;
+ int i;
+
+ printf("Paragraphs in current frame:\n");
+ for ( i=0; i<fr->n_paras; i++ ) {
+ show_para(fr->paras[i]);
+ }
+}
+
+
+static void show_cursor_pos(SCEditor *e)
+{
+ fprintf(stderr, "Cursor: fr %p, para %i, pos %li, trail %i\n",
+ e->cursor_frame, e->cursor_para, (long int)e->cursor_pos,
+ e->cursor_trail);
+}
+
+
static void horizontal_adjust(GtkAdjustment *adj, SCEditor *e)
{
@@ -1397,26 +1417,6 @@ static void paste_selection(SCEditor *e)
}
-static void debug_paragraphs(SCEditor *e)
-{
- struct frame *fr = e->cursor_frame;
- int i;
-
- printf("Paragraphs in current frame:\n");
- for ( i=0; i<fr->n_paras; i++ ) {
- show_para(fr->paras[i]);
- }
-}
-
-
-static void show_cursor_pos(SCEditor *e)
-{
- fprintf(stderr, "Cursor: fr %p, para %i, pos %li, trail %i\n",
- e->cursor_frame, e->cursor_para, (long int)e->cursor_pos,
- e->cursor_trail);
-}
-
-
static gboolean key_press_sig(GtkWidget *da, GdkEventKey *event,
SCEditor *e)
{