]> git.imager.perl.org - imager.git/blob - imio.h
- use PERL_NO_GET_CONTEXT to slightly improve performance on threaded
[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 "imconfig.h"
7 #include "log.h"
8
9 typedef struct i_mempool {
10   void **p;
11   unsigned int alloc;
12   unsigned int used;
13 } i_mempool;
14
15 void  i_mempool_init(i_mempool *mp);
16 void  i_mempool_extend(i_mempool *mp);
17 void *i_mempool_alloc(i_mempool *mp, size_t size);
18 void  i_mempool_destroy(i_mempool *mp);
19
20
21
22 #ifdef _MSC_VER
23 #undef min
24 #undef max
25 #endif
26
27 extern unsigned long i_utf8_advance(char const **p, int *len);
28
29 /* XXX Shouldn't these go away? */
30
31 int i_min(int a,int b);
32 int i_max(int x,int y);
33
34 #endif