]> git.imager.perl.org - imager.git/blob - imio.h
set eol-style so that generation doesn't make svn burp
[imager.git] / imio.h
1 #ifndef IMAGER_IMIO_H_
2 #define IMAGER_IMIO_H_
3 #include <stdio.h>
4 #include <sys/stat.h>
5
6 #include "log.h"
7
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
21 #ifdef _MSC_VER
22 #undef min
23 #undef max
24 #endif
25
26 extern unsigned long i_utf8_advance(char const **p, int *len);
27
28 /* XXX Shouldn't these go away? */
29
30 int i_min(int a,int b);
31 int i_max(int x,int y);
32
33 #endif