Ticket #3547: mc-3547-clarify-edit_file-and-edit_stack_-declares.patch

File mc-3547-clarify-edit_file-and-edit_stack_-declares.patch, 2.3 KB (added by and, 9 years ago)
  • src/editor/edit.c

    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) 
    39793979 
    39803980/* --------------------------------------------------------------------------------------------- */ 
    39813981 
     3982#ifdef USE_INTERNAL_EDIT 
    39823983void 
    39833984edit_stack_init (void) 
    39843985{ 
    edit_stack_free (void) 
    39994000    for (edit_stack_iterator = 0; edit_stack_iterator < MAX_HISTORY_MOVETO; edit_stack_iterator++) 
    40004001        vfs_path_free (edit_history_moveto[edit_stack_iterator].filename_vpath); 
    40014002} 
     4003#endif /* USE_INTERNAL_EDIT */ 
    40024004 
    40034005/* --------------------------------------------------------------------------------------------- */ 
    40044006/** move i lines */ 
  • src/editor/edit.h

    diff --git a/src/editor/edit.h b/src/editor/edit.h
    index 1359891..b2539fb 100644
    a b extern int show_right_margin; 
    6363 
    6464/*** declarations of public functions ************************************************************/ 
    6565 
     66#ifdef USE_INTERNAL_EDIT 
    6667/* used in main() */ 
    6768void edit_stack_init (void); 
    6869void edit_stack_free (void); 
    6970 
    7071gboolean edit_file (const vfs_path_t * file_vpath, long line); 
     72#endif /* USE_INTERNAL_EDIT */ 
    7173gboolean edit_files (const GList * files); 
    7274 
    7375char *edit_get_file_name (const WEdit * edit); 
  • src/editor/editwidget.c

    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 
    11831183 * @return TRUE if no errors was occurred, FALSE otherwise 
    11841184 */ 
    11851185 
     1186#ifdef USE_INTERNAL_EDIT 
    11861187gboolean 
    11871188edit_file (const vfs_path_t * file_vpath, long line) 
    11881189{ 
    edit_file (const vfs_path_t * file_vpath, long line) 
    11961197 
    11971198    return ok; 
    11981199} 
     1200#endif /* USE_INTERNAL_EDIT */ 
    11991201 
    12001202/* --------------------------------------------------------------------------------------------- */ 
    12011203