0.1.7
Last change
on this file since b1bd0ff was
756011e,
checked in by Ted Faber <faber@…>, 11 years ago
|
Now we pass -Wall with no warnings.
|
-
Property mode set to
100644
|
File size:
671 bytes
|
Line | |
---|
1 | #ifndef __UTIL_H__ |
---|
2 | #define __UTIL_H__ |
---|
3 | |
---|
4 | #include <sys/types.h> |
---|
5 | #include <stdlib.h> |
---|
6 | |
---|
7 | #ifndef __ABAC_CHUNK_T__ |
---|
8 | #define __ABAC_CHUNK_T__ |
---|
9 | typedef struct _abac_chunk_t { |
---|
10 | unsigned char *ptr; |
---|
11 | int len; |
---|
12 | } abac_chunk_t; |
---|
13 | |
---|
14 | #endif /* __ABAC_CHUNK_T__ */ |
---|
15 | |
---|
16 | void abac_chunk_free(abac_chunk_t *); |
---|
17 | int abac_chunk_null(abac_chunk_t *); |
---|
18 | int abac_chunk_show(abac_chunk_t *); |
---|
19 | |
---|
20 | void *abac_xmalloc(size_t); |
---|
21 | char *abac_xstrdup(char *); |
---|
22 | void *abac_xrealloc(void *, size_t); |
---|
23 | void abac_split(char *string, char *delim, char **ret, int *num); |
---|
24 | |
---|
25 | #ifdef DEBUG |
---|
26 | #define debug_printf(...) fprintf(stderr, __VA_ARGS__) |
---|
27 | #else |
---|
28 | #define debug_printf(...) do { } while (0) |
---|
29 | #endif |
---|
30 | |
---|
31 | #endif /* __UTIL_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.