distribute Imager::LargeSamples
[imager.git] / imio.h
CommitLineData
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
8typedef struct i_mempool {
9 void **p;
10 unsigned int alloc;
11 unsigned int used;
12} i_mempool;
13
14void i_mempool_init(i_mempool *mp);
15void i_mempool_extend(i_mempool *mp);
16void *i_mempool_alloc(i_mempool *mp, size_t size);
17void 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
26extern unsigned long i_utf8_advance(char const **p, int *len);
27
5473b91d 28/* XXX Shouldn't these go away? */
fe6163bf 29
b33c08f8
TC
30int i_min(int a,int b);
31int i_max(int x,int y);
02d1d628
AMH
32
33#endif