globalise internal_verrorf()
This commit is contained in:
parent
cd716426e4
commit
6b9cdbbfd6
6
main.c
6
main.c
@ -13,7 +13,7 @@
|
||||
#include <locale.h>
|
||||
#endif
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.111 2008/11/15 07:35:24 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.112 2008/11/15 08:42:35 tg Exp $");
|
||||
|
||||
extern char **environ;
|
||||
|
||||
@ -855,9 +855,7 @@ bi_errorf(const char *fmt, ...)
|
||||
}
|
||||
|
||||
/* Called when something that shouldn't happen does */
|
||||
static void internal_verrorf(const char *, va_list)
|
||||
__attribute__((format (printf, 1, 0)));
|
||||
static void
|
||||
void
|
||||
internal_verrorf(const char *fmt, va_list ap)
|
||||
{
|
||||
shf_fprintf(shl_out, "internal error: ");
|
||||
|
4
sh.h
4
sh.h
@ -103,7 +103,7 @@
|
||||
#define __SCCSID(x) __IDSTRING(sccsid,x)
|
||||
|
||||
#ifdef EXTERN
|
||||
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.259 2008/11/15 08:03:24 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.260 2008/11/15 08:42:36 tg Exp $");
|
||||
#endif
|
||||
#define MKSH_VERSION "R36 2008/11/11"
|
||||
|
||||
@ -1410,6 +1410,8 @@ void bi_errorf(const char *, ...)
|
||||
__attribute__((format (printf, 1, 2)));
|
||||
#define errorfz() errorf("\1")
|
||||
#define bi_errorfz() bi_errorf("\1")
|
||||
void internal_verrorf(const char *, va_list)
|
||||
__attribute__((format (printf, 1, 0)));
|
||||
void internal_errorf(const char *, ...)
|
||||
__attribute__((noreturn))
|
||||
__attribute__((format (printf, 1, 2)));
|
||||
|
Loading…
Reference in New Issue
Block a user