]> git.imager.perl.org - imager.git/blame - imio.h
- check that the result of fileno($fh) is defined rather than simply
[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 5
d5477d3d 6#include "imconfig.h"
02d1d628
AMH
7#include "log.h"
8
8047cbb5
AMH
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
21
02d1d628
AMH
22#ifdef _MSC_VER
23#undef min
24#undef max
25#endif
fe6163bf 26
4f68b48f
TC
27extern unsigned long i_utf8_advance(char const **p, int *len);
28
5473b91d 29/* XXX Shouldn't these go away? */
fe6163bf 30
b33c08f8
TC
31int i_min(int a,int b);
32int i_max(int x,int y);
02d1d628
AMH
33
34#endif