Leolo's guassian2 patch
[imager.git] / imio.h
... / ...
CommitLineData
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
9typedef struct i_mempool {
10 void **p;
11 unsigned int alloc;
12 unsigned int used;
13} i_mempool;
14
15void i_mempool_init(i_mempool *mp);
16void i_mempool_extend(i_mempool *mp);
17void *i_mempool_alloc(i_mempool *mp, size_t size);
18void i_mempool_destroy(i_mempool *mp);
19
20#ifdef _MSC_VER
21#undef min
22#undef max
23#endif
24
25extern unsigned long i_utf8_advance(char const **p, size_t *len);
26
27#endif