pike.git
/
src
/
error.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/error.c:9:
#include "interpret.h" #include "stralloc.h" #include "builtin_functions.h" #include "array.h" #include "object.h" #include "main.h" #include "builtin_functions.h" #include "backend.h" #include "operators.h"
-
RCSID("$Id: error.c,v 1.
18
1998/
04
/
16
21
:
30
:
50
hubbe
Exp $");
+
RCSID("$Id: error.c,v 1.
19
1998/
05
/
15
18
:
45
:
37
grubba
Exp $");
#undef ATTRIBUTE #define ATTRIBUTE(X) JMP_BUF *recoveries=0; JMP_BUF *init_recovery(JMP_BUF *r) { r->fp=fp; r->sp=sp-evaluator_stack;
pike.git/src/error.c:91:
struct svalue throw_value = { T_INT }; int throw_severity; static const char *in_error; /* FIXME: NOTE: This function uses a static buffer. * Check sizes of arguments passed! */ void va_error(const char *fmt, va_list args) ATTRIBUTE((noreturn)) {
-
char buf[
2000
];
+
char buf[
4096
];
if(in_error) { const char *tmp=in_error; in_error=0; fatal("Recursive error() calls, original error: %s",tmp); } in_error=buf;
-
+
#ifdef HAVE_VSNPRINTF
+
vsnprintf(bug, 4090, fmt, args);
+
#else /* !HAVE_VSNPRINTF */
VSPRINTF(buf, fmt, args);
-
+
#endif /* HAVE_VSNPRINTF */
if(!recoveries) { #ifdef DEBUG dump_backlog(); #endif fprintf(stderr,"No error recovery context!\n%s",buf); exit(99); }