Sun, 27 Aug 2000 21:21:29 +0200
trunk: changeset 23
Made check_args non-static for use with ion
5 | 1 | /* |
2 | * libtu/output.h | |
3 | * | |
9 | 4 | * Copyright (c) Tuomo Valkonen 1999-2000. |
5 | 5 | * See the included file LICENSE for details. |
6 | */ | |
7 | ||
8 | 8 | #ifndef LIBTU_OUTPUT_H |
9 | #define LIBTU_OUTPUT_H | |
5 | 10 | |
11 | #include <stdarg.h> | |
12 | ||
13 | #include "types.h" | |
14 | ||
15 | ||
16 | extern void verbose(const char *p, ...); | |
17 | extern void verbose_v(const char *p, va_list args); | |
18 | extern void verbose_enable(bool enable); | |
19 | extern int verbose_indent(int depth); | |
20 | ||
21 | extern void warn_progname_enable(bool enable); | |
22 | ||
23 | extern void die(const char *p, ...); | |
24 | extern void die_v(const char *p, va_list args); | |
25 | ||
26 | extern void die_obj(const char *obj, const char *p, ...); | |
27 | extern void die_obj_v(const char *obj, const char *p, va_list args); | |
28 | extern void die_obj_line(const char *obj, int line, const char *p, ...); | |
29 | extern void die_obj_line_v(const char *obj, int line, const char *p, va_list args); | |
30 | ||
31 | extern void die_err(); | |
32 | extern void die_err_obj(const char *obj); | |
33 | extern void die_err_obj_line(const char *obj, int line); | |
34 | ||
35 | ||
36 | extern void warn(const char *p, ...); | |
37 | extern void warn_v(const char *p, va_list args); | |
38 | ||
39 | extern void warn_obj(const char *obj, const char *p, ...); | |
40 | extern void warn_obj_v(const char *obj, const char *p, va_list args); | |
41 | extern void warn_obj_line(const char *obj, int line, const char *p, ...); | |
42 | extern void warn_obj_line_v(const char *obj, int line, const char *p, va_list args); | |
43 | ||
44 | extern void warn_err(); | |
45 | extern void warn_err_obj(const char *obj); | |
46 | extern void warn_err_obj_line(const char *obj, int line); | |
47 | ||
8 | 48 | #endif /* LIBTU_OUTPUT_H */ |