* edit/edit.h: renamed edit() to edit_file() to avoid GCC shadow

warnings (many variables are also called edit).
	* edit/editwidget.c: likewise.
	* src/cmd.c: renamed edit() to edit_file() to avoid GCC shadow
	warnings (many variables are also called edit).
	* src/main.c: likewise.
This commit is contained in:
Roland Illig 2004-09-19 17:46:39 +00:00
parent 9707addee8
commit 3c6a792d4b
6 changed files with 10 additions and 4 deletions

View File

@ -5,6 +5,9 @@
* editcmd.c (edit_replace_prompt): Allocate the label text * editcmd.c (edit_replace_prompt): Allocate the label text
dynamically instead of using catstrs. Don't handle dynamically instead of using catstrs. Don't handle
ENABLE_CHARSET specially. ENABLE_CHARSET specially.
* edit.h: renamed edit() to edit_file() to avoid GCC shadow
warnings (many variables are also called edit).
* editwidget.c: likewise.
2004-09-17 Andrew V. Samoilov <andrew@email.zp.ua> 2004-09-17 Andrew V. Samoilov <andrew@email.zp.ua>

View File

@ -131,7 +131,7 @@ void edit_init_menu_normal (void);
void edit_done_menu (void); void edit_done_menu (void);
void menu_save_mode_cmd (void); void menu_save_mode_cmd (void);
int edit_raw_key_query (const char *heading, const char *query, int cancel); int edit_raw_key_query (const char *heading, const char *query, int cancel);
int edit (const char *_file, int line); int edit_file (const char *_file, int line);
int edit_translate_key (WEdit *edit, long x_key, int *cmd, int *ch); int edit_translate_key (WEdit *edit, long x_key, int *cmd, int *ch);
#ifndef NO_INLINE_GETBYTE #ifndef NO_INLINE_GETBYTE

View File

@ -163,7 +163,7 @@ edit_dialog_callback (Dlg_head *h, dlg_msg_t msg, int parm)
} }
int int
edit (const char *_file, int line) edit_file (const char *_file, int line)
{ {
static int made_directory = 0; static int made_directory = 0;
Dlg_head *edit_dlg; Dlg_head *edit_dlg;

View File

@ -18,6 +18,9 @@
* widget.c: likewise. * widget.c: likewise.
* complete.c: Surrounded the declaration of environ by and #ifdef * complete.c: Surrounded the declaration of environ by and #ifdef
guard to avoid a GCC warning about a redundant declaration. guard to avoid a GCC warning about a redundant declaration.
* cmd.c: renamed edit() to edit_file() to avoid GCC shadow
warnings (many variables are also called edit).
* main.c: likewise.
2004-09-19 Roland Illig <roland.illig@gmx.de> 2004-09-19 Roland Illig <roland.illig@gmx.de>

View File

@ -269,7 +269,7 @@ void do_edit_at_line (const char *what, int start_line)
#ifdef USE_INTERNAL_EDIT #ifdef USE_INTERNAL_EDIT
if (use_internal_edit){ if (use_internal_edit){
edit (what, start_line); edit_file (what, start_line);
update_panels (UP_OPTIMIZE, UP_KEEPSEL); update_panels (UP_OPTIMIZE, UP_KEEPSEL);
repaint_screen (); repaint_screen ();
return; return;

View File

@ -1713,7 +1713,7 @@ mc_maybe_editor_or_viewer (void)
else { else {
path = prepend_cwd_on_local (""); path = prepend_cwd_on_local ("");
setup_dummy_mc (path); setup_dummy_mc (path);
edit (edit_one_file, edit_one_file_start_line); edit_file (edit_one_file, edit_one_file_start_line);
} }
#endif /* USE_INTERNAL_EDIT */ #endif /* USE_INTERNAL_EDIT */
g_free (path); g_free (path);