From c29bbe7dd78b47401700d4fc95e130b7187c4b47 Mon Sep 17 00:00:00 2001
From: Andreas Mohr <and@gmx.li>
Date: Fri, 1 Jan 2016 15:11:40 +0000
Subject: [PATCH] clarify edit_file and edit_stack_* declares
Signed-off-by: Andreas Mohr <and@gmx.li>
---
src/editor/edit.c | 2 ++
src/editor/edit.h | 2 ++
src/editor/editwidget.c | 2 ++
3 files changed, 6 insertions(+)
diff --git a/src/editor/edit.c b/src/editor/edit.c
index e69a9d4..a609e66 100644
a
|
b
|
edit_execute_cmd (WEdit * edit, long command, int char_for_insertion) |
3979 | 3979 | |
3980 | 3980 | /* --------------------------------------------------------------------------------------------- */ |
3981 | 3981 | |
| 3982 | #ifdef USE_INTERNAL_EDIT |
3982 | 3983 | void |
3983 | 3984 | edit_stack_init (void) |
3984 | 3985 | { |
… |
… |
edit_stack_free (void) |
3999 | 4000 | for (edit_stack_iterator = 0; edit_stack_iterator < MAX_HISTORY_MOVETO; edit_stack_iterator++) |
4000 | 4001 | vfs_path_free (edit_history_moveto[edit_stack_iterator].filename_vpath); |
4001 | 4002 | } |
| 4003 | #endif /* USE_INTERNAL_EDIT */ |
4002 | 4004 | |
4003 | 4005 | /* --------------------------------------------------------------------------------------------- */ |
4004 | 4006 | /** move i lines */ |
diff --git a/src/editor/edit.h b/src/editor/edit.h
index 1359891..b2539fb 100644
a
|
b
|
extern int show_right_margin; |
63 | 63 | |
64 | 64 | /*** declarations of public functions ************************************************************/ |
65 | 65 | |
| 66 | #ifdef USE_INTERNAL_EDIT |
66 | 67 | /* used in main() */ |
67 | 68 | void edit_stack_init (void); |
68 | 69 | void edit_stack_free (void); |
69 | 70 | |
70 | 71 | gboolean edit_file (const vfs_path_t * file_vpath, long line); |
| 72 | #endif /* USE_INTERNAL_EDIT */ |
71 | 73 | gboolean edit_files (const GList * files); |
72 | 74 | |
73 | 75 | char *edit_get_file_name (const WEdit * edit); |
diff --git a/src/editor/editwidget.c b/src/editor/editwidget.c
index 9c2fcb3..e8a2bba 100644
a
|
b
|
edit_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *da |
1183 | 1183 | * @return TRUE if no errors was occurred, FALSE otherwise |
1184 | 1184 | */ |
1185 | 1185 | |
| 1186 | #ifdef USE_INTERNAL_EDIT |
1186 | 1187 | gboolean |
1187 | 1188 | edit_file (const vfs_path_t * file_vpath, long line) |
1188 | 1189 | { |
… |
… |
edit_file (const vfs_path_t * file_vpath, long line) |
1196 | 1197 | |
1197 | 1198 | return ok; |
1198 | 1199 | } |
| 1200 | #endif /* USE_INTERNAL_EDIT */ |
1199 | 1201 | |
1200 | 1202 | /* --------------------------------------------------------------------------------------------- */ |
1201 | 1203 | |