mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-13 11:23:09 +03:00
mcedit: remove get_sys_error() macro that does nothing.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
1c580e874c
commit
218bff6be9
@ -71,8 +71,6 @@
|
|||||||
|
|
||||||
#define LB_NAMES (LB_MAC + 1)
|
#define LB_NAMES (LB_MAC + 1)
|
||||||
|
|
||||||
#define get_sys_error(s) (s)
|
|
||||||
|
|
||||||
#define edit_query_dialog2(h,t,a,b) query_dialog (h, t, D_NORMAL, 2, a, b)
|
#define edit_query_dialog2(h,t,a,b) query_dialog (h, t, D_NORMAL, 2, a, b)
|
||||||
#define edit_query_dialog3(h,t,a,b,c) query_dialog (h, t, D_NORMAL, 3, a, b, c)
|
#define edit_query_dialog3(h,t,a,b,c) query_dialog (h, t, D_NORMAL, 3, a, b, c)
|
||||||
|
|
||||||
|
@ -925,7 +925,7 @@ edit_save_as_cmd (WEdit *edit)
|
|||||||
if (mc_stat (exp_vpath, &sb) == 0 && !S_ISREG (sb.st_mode))
|
if (mc_stat (exp_vpath, &sb) == 0 && !S_ISREG (sb.st_mode))
|
||||||
{
|
{
|
||||||
message (D_ERROR, MSG_ERROR, "%s",
|
message (D_ERROR, MSG_ERROR, "%s",
|
||||||
get_sys_error (_("Cannot save: destination is not a regular file")));
|
_("Cannot save: destination is not a regular file"));
|
||||||
goto ret;
|
goto ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -982,7 +982,7 @@ edit_save_as_cmd (WEdit *edit)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
message (D_ERROR, MSG_ERROR, "%s", get_sys_error (_("Cannot save file")));
|
message (D_ERROR, MSG_ERROR, "%s", _("Cannot save file"));
|
||||||
MC_FALLTHROUGH;
|
MC_FALLTHROUGH;
|
||||||
|
|
||||||
case -1:
|
case -1:
|
||||||
@ -1592,7 +1592,7 @@ edit_copy_to_X_buf_cmd (WEdit *edit)
|
|||||||
|
|
||||||
if (!edit_save_block_to_clip_file (edit, start_mark, end_mark))
|
if (!edit_save_block_to_clip_file (edit, start_mark, end_mark))
|
||||||
{
|
{
|
||||||
message (D_ERROR, MSG_ERROR, "%s", get_sys_error (_("Unable to save to file")));
|
message (D_ERROR, MSG_ERROR, "%s", _("Unable to save to file"));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
/* try use external clipboard utility */
|
/* try use external clipboard utility */
|
||||||
@ -1711,7 +1711,7 @@ edit_save_block_cmd (WEdit *edit)
|
|||||||
if (edit_save_block (edit, exp, start_mark, end_mark))
|
if (edit_save_block (edit, exp, start_mark, end_mark))
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
else
|
else
|
||||||
message (D_ERROR, MSG_ERROR, "%s", get_sys_error (_("Cannot save block")));
|
message (D_ERROR, MSG_ERROR, "%s", _("Cannot save block"));
|
||||||
|
|
||||||
edit->force |= REDRAW_COMPLETELY;
|
edit->force |= REDRAW_COMPLETELY;
|
||||||
}
|
}
|
||||||
@ -1747,7 +1747,7 @@ edit_insert_file_cmd (WEdit *edit)
|
|||||||
vfs_path_free (exp_vpath, TRUE);
|
vfs_path_free (exp_vpath, TRUE);
|
||||||
|
|
||||||
if (!ret)
|
if (!ret)
|
||||||
message (D_ERROR, MSG_ERROR, "%s", get_sys_error (_("Cannot insert file")));
|
message (D_ERROR, MSG_ERROR, "%s", _("Cannot insert file"));
|
||||||
}
|
}
|
||||||
|
|
||||||
g_free (exp);
|
g_free (exp);
|
||||||
@ -1797,7 +1797,7 @@ edit_sort_cmd (WEdit *edit)
|
|||||||
if (e != 0)
|
if (e != 0)
|
||||||
{
|
{
|
||||||
if (e == -1 || e == 127)
|
if (e == -1 || e == 127)
|
||||||
message (D_ERROR, MSG_ERROR, "%s", get_sys_error (_("Cannot execute sort command")));
|
message (D_ERROR, MSG_ERROR, "%s", _("Cannot execute sort command"));
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char q[8];
|
char q[8];
|
||||||
@ -1856,7 +1856,7 @@ edit_ext_cmd (WEdit *edit)
|
|||||||
|
|
||||||
if (e != 0)
|
if (e != 0)
|
||||||
{
|
{
|
||||||
message (D_ERROR, MSG_ERROR, "%s", get_sys_error (_("Cannot execute external command")));
|
message (D_ERROR, MSG_ERROR, "%s", _("Cannot execute external command"));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user