Ticket #1827: 1827-function_looks_UNneeded.patch

File 1827-function_looks_UNneeded.patch, 1.8 KB (added by vit_r, 14 years ago)
  • edit/edit.c

    From 6eb6f36cfdd5e730dc5fb5c63602838ba0106642 Mon Sep 17 00:00:00 2001
    From: Vit Rosin <vit_r@list.ru>
    Date: Sat, 14 Nov 2009 17:14:27 +0000
    Subject: [PATCH] function_looks_UNneeded
    
    ---
     edit/edit.c |    5 -----
     edit/edit.h |    1 -
     src/user.c  |    4 ++--
     3 files changed, 2 insertions(+), 8 deletions(-)
    
    diff --git a/edit/edit.c b/edit/edit.c
    index 9a51b79..cb24949 100644
    a b void edit_update_curs_col (WEdit * edit) 
    16591659    edit->curs_col = edit_move_forward3(edit, edit_bol(edit, edit->curs1), 0, edit->curs1); 
    16601660} 
    16611661 
    1662 int 
    1663 edit_get_curs_col (const WEdit *edit) 
    1664 { 
    1665     return edit->curs_col; 
    1666 } 
    16671662 
    16681663/*moves the display start position up by i lines */ 
    16691664void edit_scroll_upward (WEdit * edit, unsigned long i) 
  • edit/edit.h

    diff --git a/edit/edit.h b/edit/edit.h
    index 0891801..15adbf2 100644
    a b void edit_stack_free (void); 
    6969int edit_file (const char *_file, int line); 
    7070 
    7171const char *edit_get_file_name (const WEdit *edit); 
    72 int edit_get_curs_col (const WEdit *edit); 
    7372const char *edit_get_syntax_type (const WEdit *edit); 
    7473 
    7574#endif                          /* MC_EDIT_H */ 
  • src/user.c

    diff --git a/src/user.c b/src/user.c
    index 7950358..aec69de 100644
    a b  
    4242#include "strutil.h" 
    4343#include "../src/search/search.h" 
    4444 
    45 #include "../edit/edit.h"               /* WEdit, BLOCK_FILE */ 
     45#include "../edit/edit-widget.h"        /* WEdit */ 
    4646 
    4747/* For the simple listbox manager */ 
    4848#include "dialog.h" 
    expand_format (WEdit *edit_widget, char c, int lc_quote) 
    235235    case 'i':                   /* indent equal number cursor position in line */ 
    236236#ifdef USE_INTERNAL_EDIT 
    237237        if (edit_widget) 
    238             return g_strnfill (edit_get_curs_col (edit_widget), ' '); 
     238            return g_strnfill (edit_widget->curs_col, ' '); 
    239239#endif 
    240240        break; 
    241241    case 'y':                   /* syntax type */