-
Notifications
You must be signed in to change notification settings - Fork 2
/
cielbox.h
69 lines (57 loc) · 1.15 KB
/
cielbox.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef __CIELBOX_H__
#define __CIELBOX_H__
#define BOX_REVISION 201125
#ifdef __cplusplus
extern "C"{
#endif
#include "compat.h"
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
#include <limits.h>
#include <time.h>
#ifndef FEOS
#include <utime.h>
#endif
#ifndef NO_ZLIB
#include "lib/zlibutil.h"
#endif
//64KB
#define DECOMPBUFLEN (1<<16)
#define COMPBUFLEN (DECOMPBUFLEN|(DECOMPBUFLEN>>1))
extern unsigned char __compbuf[COMPBUFLEN],__decompbuf[DECOMPBUFLEN];
#include "lib/xutil.h"
#include "lib/xorshift.h"
unsigned short crc16(unsigned short crc, const unsigned char *p, unsigned int
size);
unsigned int crc32_left(unsigned int crc, const unsigned char *p, unsigned int
size);
typedef void (*type_u32p)(u32*);
//applet
#define F(name) int name(const int argc, const char **argv);
F(applets)
F(_install)
F(_7bgzf)
F(_7ciso)
F(_7daxcr)
F(_7dictzip)
F(_7gzinga)
F(_7gzip)
F(_7migz)
F(_7png)
F(_7razf)
F(zlibrawstdio)
F(zlibrawstdio2)
#undef F
typedef struct{
const char *name;
int (*func)(const int, const char**);
}applet;
#ifdef __cplusplus
}
#endif
#endif