include/libtu/util.h

Wed, 19 Apr 2000 22:44:45 +0200

author
tuomov
date
Wed, 19 Apr 2000 22:44:45 +0200
changeset 7
6b608d438597
parent 5
f878a9ffa3e0
child 9
55e7f2ff6021
permissions
-rw-r--r--

trunk: changeset 10
Fixed system.mk

5
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
1 /*
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
2 * libtu/util.h
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
3 *
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
4 * Copyright (c) Tuomo Valkonen 1999-2000.
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
5 *
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
6 * This file is distributed under the terms of the "Artistic License".
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
7 * See the included file LICENSE for details.
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
8 */
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
9
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
10 #ifndef __LIBTU_UTIL_H
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
11 #define __LIBTU_UTIL_H
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 #include <stdio.h>
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
15 #include <stdlib.h>
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
16
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
17 #include "types.h"
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
18
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
19
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
20 typedef struct{
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
21 const char *name;
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
22 const char *version;
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
23 const char *authors;
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
24 const char *license;
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
25 const char *usage;
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
26 } ProgInfo;
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
27
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
28
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
29 extern void libtu_init_argv0(const char *argv0, const ProgInfo *info);
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
30 extern void libtu_init(int *argc, char *argv[], const ProgInfo *info);
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
31
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
32 extern const char *prog_execname();
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
33 extern const ProgInfo *prog_info();
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
34 extern const char *prog_name();
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
35 extern const char *prog_version();
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
36 extern const char *prog_authors();
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
37 extern const char *prog_license();
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
38 extern const char *prog_usage();
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
39
f878a9ffa3e0 trunk: changeset 8
tuomov
parents:
diff changeset
40 #endif /* __LIBTU_UTIL_H */

mercurial