Tue, 15 Feb 2005 18:57:52 +0100
Tailorization of trunk
Import of the upstream sources from the repository
http://tao.uab.es/ion/svn/libtu/trunk
as of revision 2
0 | 1 | /* |
2 | * libtu/output.h | |
3 | * | |
4 | * Copyright (c) Tuomo Valkonen 1999-2000. | |
5 | * | |
6 | * This file is distributed under the terms of the "Artistic License". | |
7 | * See the included file LICENSE for details. | |
8 | */ | |
9 | ||
10 | #ifndef __LIBTU_OUTPUT_H | |
11 | #define __LIBTU_OUTPUT_H | |
12 | ||
13 | #include <stdarg.h> | |
14 | ||
15 | #include "types.h" | |
16 | ||
17 | ||
18 | extern void verbose(const char *p, ...); | |
19 | extern void verbose_v(const char *p, va_list args); | |
20 | extern void verbose_enable(bool enable); | |
21 | extern int verbose_indent(int depth); | |
22 | ||
23 | extern void warn_progname_enable(bool enable); | |
24 | ||
25 | extern void die(const char *p, ...); | |
26 | extern void die_v(const char *p, va_list args); | |
27 | ||
28 | extern void die_obj(const char *obj, const char *p, ...); | |
29 | extern void die_obj_v(const char *obj, const char *p, va_list args); | |
30 | extern void die_obj_line(const char *obj, int line, const char *p, ...); | |
31 | extern void die_obj_line_v(const char *obj, int line, const char *p, va_list args); | |
32 | ||
33 | extern void die_err(); | |
34 | extern void die_err_obj(const char *obj); | |
35 | extern void die_err_obj_line(const char *obj, int line); | |
36 | ||
37 | ||
38 | extern void warn(const char *p, ...); | |
39 | extern void warn_v(const char *p, va_list args); | |
40 | ||
41 | extern void warn_obj(const char *obj, const char *p, ...); | |
42 | extern void warn_obj_v(const char *obj, const char *p, va_list args); | |
43 | extern void warn_obj_line(const char *obj, int line, const char *p, ...); | |
44 | extern void warn_obj_line_v(const char *obj, int line, const char *p, va_list args); | |
45 | ||
46 | extern void warn_err(); | |
47 | extern void warn_err_obj(const char *obj); | |
48 | extern void warn_err_obj_line(const char *obj, int line); | |
49 | ||
50 | #endif /* __LIBTU_OUTPUT_H */ |