41 #ifndef CHECK_INCLUDED
56 static const int ERR_BUFSIZE = 512;
65 static const int ERR_MAXERRS = 10;
174 static void malloc_failed(
unsigned int chunk_size,
int num_chunks);
239 int hash_pages,
int max_pages);
664 static void dump_ptr(
const void *p);
684 static void msg_begin();
687 static void msg_str(
str_t str);
690 static void msg_char(
char c);
693 static void msg_int(
int i);
696 static void msg_uint(
unsigned int i);
699 static void msg_output();
702 static void dump_output(
str_t str);
705 static void dump_flush();
714 static bool UseStderr;
717 static char Buf[ERR_BUFSIZE];
729 static char ErrMsg[ERR_MAXERRS][ERR_BUFSIZE];
static void use_stderr(bool b)
Definition: err.cpp:130
static void null_char(str_t filename, int lineno)
Definition: err.cpp:461
static void syntax_eof()
Definition: err.cpp:546
static void malloc_failed(unsigned int chunk_size, int num_chunks)
Definition: err.cpp:143
static void cgi_premature_eof()
Definition: err.cpp:395
static void line_too_long(str_t filename, int lineno)
Definition: err.cpp:480
static void syntax_newline()
Definition: err.cpp:537
static void dump_ptr(const void *p)
Definition: err.cpp:791
static void bad_content_length()
Definition: err.cpp:370
static void dump_str(str_t str)
Definition: err.cpp:705
static void test_has_no_arg(str_t test_id)
Definition: err.cpp:600
static str_t msg(int n=0)
Definition: err.cpp:80
static void cgi_null_char()
Definition: err.cpp:407
static void stack_overflow(str_t name, int curr_limit)
Definition: err.cpp:164
Defines type str_t and some useful string functions.
static void benchmark_with_debug_code()
Definition: err.cpp:658
static void pred_arity_too_large(str_t name, int arity, int limit)
Definition: err.cpp:248
static void cgi_field_not_terminated()
Definition: err.cpp:419
static void cgi_duplicate_program()
Definition: err.cpp:431
static void dump_bool(bool b)
Definition: err.cpp:779
static void bad_content_type()
Definition: err.cpp:357
static int num_errs()
Definition: err.cpp:71
static void unknown_option(str_t arg)
Definition: err.cpp:645
static void syntax_input(char c)
Definition: err.cpp:528
static void invalid_test_arg(str_t test_id, int arg)
Definition: err.cpp:614
static void cgi_no_program()
Definition: err.cpp:443
static void dump_begin(str_t headline)
Definition: err.cpp:685
const char * str_t
Definition: str.h:41
static void pred_too_many_rels(str_t name, int limit)
Definition: err.cpp:264
Some basic version settings.
static void store_fact_failed(str_t filename, int line_no, str_t pred_name)
Definition: err.cpp:573
static void read_failed(str_t filename, str_t msg)
Definition: err.cpp:325
static void reset()
Definition: err.cpp:53
static void dump_uint(unsigned int n)
Definition: err.cpp:759
static void list_capacity_limit(str_t name, int curr_length)
Definition: err.cpp:204
static void hashtab_limit(str_t tab_name, int hash_size, int hash_pages, int max_pages)
Definition: err.cpp:224
static void bad_request_method()
Definition: err.cpp:344
static void dump_char(char c)
Definition: err.cpp:726
static bool open_alert(str_t filename)
Definition: err.cpp:100
static bool ok()
Definition: err.cpp:62
static void debug_output_disabled()
Definition: err.cpp:669
static void flexarr_capacity_limit(str_t name, int curr_length)
Definition: err.cpp:184
static void dump_end()
Definition: err.cpp:811
static void syntax_end()
Definition: err.cpp:555
static void cgi_security(str_t filename)
Definition: err.cpp:283
static void dump_int(int n)
Definition: err.cpp:739
static void open_failed(str_t filename, str_t msg)
Definition: err.cpp:296
static void option_missing()
Definition: err.cpp:634
static void bad_cgi_hex()
Definition: err.cpp:383
static void dump_nl()
Definition: err.cpp:717
static void syntax_begin(str_t filename, int line, str_t msg)
Definition: err.cpp:505
static bool close_alert()
Definition: err.cpp:117
static void close_failed(str_t filename, str_t msg)
Definition: err.cpp:311