include/libtu/output.h

Wed, 28 May 2003 23:48:16 +0200

author
tuomov
date
Wed, 28 May 2003 23:48:16 +0200
changeset 53
f8f9366b359c
parent 36
63cd573ffbcf
permissions
-rw-r--r--

trunk: changeset 57
License changed to Artistic/LGPL dual license.

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 *
36
63cd573ffbcf trunk: changeset 39
tuomov
parents: 35
diff changeset
4 * Copyright (c) Tuomo Valkonen 1999-2002.
53
f8f9366b359c trunk: changeset 57
tuomov
parents: 36
diff changeset
5 *
f8f9366b359c trunk: changeset 57
tuomov
parents: 36
diff changeset
6 * You may distribute and modify this library under the terms of either
f8f9366b359c trunk: changeset 57
tuomov
parents: 36
diff changeset
7 * the Clarified Artistic License or the GNU LGPL, version 2.1 or later.
5
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
8 */
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
9
8
c1994196683f trunk: changeset 11
tuomov
parents: 5
diff changeset
10 #ifndef LIBTU_OUTPUT_H
c1994196683f trunk: changeset 11
tuomov
parents: 5
diff changeset
11 #define LIBTU_OUTPUT_H
5
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
12
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
13 #include <stdarg.h>
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
14
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
15 #include "types.h"
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
16
35
5a71d53d0228 trunk: changeset 38
tuomov
parents: 31
diff changeset
17 typedef void WarnHandler(const char *);
5a71d53d0228 trunk: changeset 38
tuomov
parents: 31
diff changeset
18 extern WarnHandler *set_warn_handler(WarnHandler *handler);
5
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
19
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
20 extern void verbose(const char *p, ...);
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
21 extern void verbose_v(const char *p, va_list args);
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
22 extern void verbose_enable(bool enable);
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
23 extern int verbose_indent(int depth);
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
24
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
25 extern void warn_progname_enable(bool enable);
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
26
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
27 extern void die(const char *p, ...);
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
28 extern void die_v(const char *p, va_list args);
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
29
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
30 extern void die_obj(const char *obj, const char *p, ...);
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
31 extern void die_obj_v(const char *obj, const char *p, va_list args);
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
32 extern void die_obj_line(const char *obj, int line, const char *p, ...);
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
33 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
34
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
35 extern void die_err();
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
36 extern void die_err_obj(const char *obj);
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
37 extern void die_err_obj_line(const char *obj, int line);
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
38
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
39
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
40 extern void warn(const char *p, ...);
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
41 extern void warn_v(const char *p, va_list args);
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
42
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
43 extern void warn_obj(const char *obj, const char *p, ...);
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
44 extern void warn_obj_v(const char *obj, const char *p, va_list args);
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
45 extern void warn_obj_line(const char *obj, int line, const char *p, ...);
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
46 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
47
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
48 extern void warn_err();
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
49 extern void warn_err_obj(const char *obj);
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
50 extern void warn_err_obj_line(const char *obj, int line);
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
51
25
9d41e3611050 trunk: changeset 28
tuomov
parents: 9
diff changeset
52
9d41e3611050 trunk: changeset 28
tuomov
parents: 9
diff changeset
53 extern char *errmsg(const char *p, ...);
9d41e3611050 trunk: changeset 28
tuomov
parents: 9
diff changeset
54 extern char *errmsg_v(const char *p, va_list args);
9d41e3611050 trunk: changeset 28
tuomov
parents: 9
diff changeset
55
9d41e3611050 trunk: changeset 28
tuomov
parents: 9
diff changeset
56 extern char *errmsg_obj(const char *obj, const char *p, ...);
9d41e3611050 trunk: changeset 28
tuomov
parents: 9
diff changeset
57 extern char *errmsg_obj_v(const char *obj, const char *p, va_list args);
9d41e3611050 trunk: changeset 28
tuomov
parents: 9
diff changeset
58 extern char *errmsg_obj_line(const char *obj, int line, const char *p, ...);
9d41e3611050 trunk: changeset 28
tuomov
parents: 9
diff changeset
59 extern char *errmsg_obj_line_v(const char *obj, int line, const char *p, va_list args);
9d41e3611050 trunk: changeset 28
tuomov
parents: 9
diff changeset
60
9d41e3611050 trunk: changeset 28
tuomov
parents: 9
diff changeset
61 extern char *errmsg_err();
9d41e3611050 trunk: changeset 28
tuomov
parents: 9
diff changeset
62 extern char *errmsg_err_obj(const char *obj);
9d41e3611050 trunk: changeset 28
tuomov
parents: 9
diff changeset
63 extern char *errmsg_err_obj_line(const char *obj, int line);
9d41e3611050 trunk: changeset 28
tuomov
parents: 9
diff changeset
64
31
e9cad8bd8ec8 trunk: changeset 34
tuomov
parents: 25
diff changeset
65 extern void libtu_asprintf(char **ret, const char *fmt, ...);
e9cad8bd8ec8 trunk: changeset 34
tuomov
parents: 25
diff changeset
66 extern void libtu_vasprintf(char **ret, const char *fmt, va_list args);
e9cad8bd8ec8 trunk: changeset 34
tuomov
parents: 25
diff changeset
67
8
c1994196683f trunk: changeset 11
tuomov
parents: 5
diff changeset
68 #endif /* LIBTU_OUTPUT_H */

mercurial