Commit | Line | Data |
---|---|---|
9e8a1b08 TC |
1 | #ifndef IMAGER_IMIO_H_ |
2 | #define IMAGER_IMIO_H_ | |
02d1d628 AMH |
3 | #include <stdio.h> |
4 | #include <sys/stat.h> | |
02d1d628 AMH |
5 | |
6 | #include "log.h" | |
7 | ||
8047cbb5 AMH |
8 | typedef struct i_mempool { |
9 | void **p; | |
10 | unsigned int alloc; | |
11 | unsigned int used; | |
12 | } i_mempool; | |
13 | ||
14 | void i_mempool_init(i_mempool *mp); | |
15 | void i_mempool_extend(i_mempool *mp); | |
16 | void *i_mempool_alloc(i_mempool *mp, size_t size); | |
17 | void i_mempool_destroy(i_mempool *mp); | |
18 | ||
19 | ||
20 | ||
02d1d628 AMH |
21 | #ifdef _MSC_VER |
22 | #undef min | |
23 | #undef max | |
24 | #endif | |
fe6163bf | 25 | |
4f68b48f TC |
26 | extern unsigned long i_utf8_advance(char const **p, int *len); |
27 | ||
5473b91d | 28 | /* XXX Shouldn't these go away? */ |
fe6163bf | 29 | |
b33c08f8 TC |
30 | int i_min(int a,int b); |
31 | int i_max(int x,int y); | |
02d1d628 AMH |
32 | |
33 | #endif |