Changes by Kazuhiro Fujieda <fujieda@jaist.ac.jp>
* assert.cc (__assert): Reduce dependency on newlib. * exec.cc: Eliminate unnecessary inclusion of ctype.h. * glob.c: Ditto. * hinfo.cc: Ditto. * init.cc: Ditto. * strace.cc: Ditto. * tty.cc: Ditto. * grp.cc (parse_grp): Eliminate atoi. * passwd.cc (grab_int): Ditto. * grp.cc (getgroups): Eliminate str{n,}casecmp. * path.cc (get_raw_device_number): Ditto. * path.cc (sort_by_native_name): Ditto. * spawn.cc (iscmd): Ditto. * uinfo.cc (internal_getlogin): Ditto.
This commit is contained in:
@ -32,16 +32,15 @@ __assert (const char *file, int line, const char *failedexpr)
|
||||
char *buf;
|
||||
|
||||
buf = (char *) alloca (100 + strlen (failedexpr));
|
||||
siprintf (buf, "Failed assertion\n\t%s\nat line %d of file %s",
|
||||
__small_sprintf (buf, "Failed assertion\n\t%s\nat line %d of file %s",
|
||||
failedexpr, line, file);
|
||||
MessageBox (NULL, buf, NULL, MB_OK | MB_ICONERROR | MB_TASKMODAL);
|
||||
}
|
||||
else
|
||||
{
|
||||
CloseHandle (h);
|
||||
(void) fiprintf (stderr,
|
||||
"assertion \"%s\" failed: file \"%s\", line %d\n",
|
||||
failedexpr, file, line);
|
||||
small_printf ("assertion \"%s\" failed: file \"%s\", line %d\n",
|
||||
failedexpr, file, line);
|
||||
}
|
||||
|
||||
abort ();
|
||||
|
Reference in New Issue
Block a user