making *p*error.c conform to standard (a bit, in a way)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2106 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -11,7 +11,11 @@
|
|||||||
|
|
||||||
void __fastcall__ _poserror (const char* msg)
|
void __fastcall__ _poserror (const char* msg)
|
||||||
{
|
{
|
||||||
|
const char *errmsg = _stroserror(_oserror);
|
||||||
|
|
||||||
DlgBoxOk(msg,_stroserror(_oserror));
|
if (msg && *msg) {
|
||||||
|
DlgBoxOk(msg, errmsg);
|
||||||
|
} else {
|
||||||
|
DlgBoxOk("", errmsg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,11 @@
|
|||||||
|
|
||||||
void __fastcall__ perror(const char* msg)
|
void __fastcall__ perror(const char* msg)
|
||||||
{
|
{
|
||||||
|
const char *errmsg = strerror(errno);
|
||||||
|
|
||||||
DlgBoxOk(msg,strerror(errno));
|
if (msg && *msg) {
|
||||||
|
DlgBoxOk(msg, errmsg);
|
||||||
|
} else {
|
||||||
|
DlgBoxOk("", errmsg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user