include/libtu/output.h

Mon, 28 Aug 2000 13:15:36 +0200

author
tuomov
date
Mon, 28 Aug 2000 13:15:36 +0200
changeset 22
79fb689317ea
parent 9
55e7f2ff6021
child 25
9d41e3611050
permissions
-rw-r--r--

trunk: changeset 25
Parser error handling fixes

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

mercurial