mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
* slerr.c (SLang_doerror): Use error parameter. Eliminate err[] array.
This commit is contained in:
parent
a670175b2b
commit
661db03d9c
@ -1,3 +1,8 @@
|
|||||||
|
2002-09-18 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||||
|
|
||||||
|
* slerr.c (SLang_doerror): Use error parameter. Eliminate
|
||||||
|
err[] array.
|
||||||
|
|
||||||
2002-08-21 Pavel Roskin <proski@gnu.org>
|
2002-08-21 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* slsmg.c (Fake_Alt_Char_Pairs): Update from slang-1.4.5. This
|
* slsmg.c (Fake_Alt_Char_Pairs): Update from slang-1.4.5. This
|
||||||
|
@ -27,22 +27,12 @@ volatile int SLKeyBoard_Quit = 0;
|
|||||||
|
|
||||||
void SLang_doerror (char *error)
|
void SLang_doerror (char *error)
|
||||||
{
|
{
|
||||||
char err [1024];
|
|
||||||
char *str = NULL;
|
|
||||||
|
|
||||||
*err = 0;
|
|
||||||
|
|
||||||
str = "Slang/Midnight Commander unknown error";
|
|
||||||
|
|
||||||
g_snprintf(err, sizeof (err), "S-Lang Error: %s", str);
|
|
||||||
|
|
||||||
if (SLang_Error_Routine == NULL)
|
if (SLang_Error_Routine == NULL)
|
||||||
{
|
{
|
||||||
fputs (err, stderr);
|
fprintf (stderr, "S-Lang Error: %s\r\n", error);
|
||||||
fputs("\r\n", stderr);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
(*SLang_Error_Routine)(err);
|
(*SLang_Error_Routine)(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user