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:
parent
c87ddefa00
commit
56e2c16aa7
2 changed files with 12 additions and 4 deletions
|
@ -11,7 +11,11 @@
|
|||
|
||||
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)
|
||||
{
|
||||
const char *errmsg = strerror(errno);
|
||||
|
||||
DlgBoxOk(msg,strerror(errno));
|
||||
|
||||
if (msg && *msg) {
|
||||
DlgBoxOk(msg, errmsg);
|
||||
} else {
|
||||
DlgBoxOk("", errmsg);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue