cosmetic fix for V= stuff
[openwrt.git] / target / linux / image / ar7 / src / gzip.h
1 //bvb#include "timemmap.h"
2
3 #define OF(args) args
4 #define STATIC static
5
6 #define WSIZE 0x8000 /* Slideing window size (defined as var
7 * "window" below) must be at least 32k,
8 * and a power of two. This is the
9 * data work window used for input buffer
10 * by the input routine */
11
12 typedef unsigned char uch;
13 typedef unsigned short ush;
14 typedef unsigned long ulg;
15
16
17 static char *output_data;
18 static ulg output_ptr;
19
20 #ifndef NULL
21 #define NULL 0
22 #endif
23
24 #define NOMEMCPY /* Does routine memcpy exist? */
25
26 //bvb static uch *inbuf; /* input buffer */
27 static uch *window;
28
29 //bvb static uch outwin[WSIZE];
30
31 //bvb static unsigned insize; /* valid bytes in inbuf */
32 static unsigned inptr; /* index of next byte to process in inbuf */
33
34 static unsigned outcnt; /* bytes in output buffer */
35
36 /* gzip flag byte */
37 #define ASCII_FLAG 0x01 /* bit 0 set: file probably ascii text */
38 #define CONTINUATION 0x02 /* bit 1 set: continuation of multi-part gzip file */
39 #define EXTRA_FIELD 0x04 /* bit 2 set: extra field present */
40 #define ORIG_NAME 0x08 /* bit 3 set: original file name present */
41 #define COMMENT 0x10 /* bit 4 set: file comment present */
42 #define ENCRYPTED 0x20 /* bit 5 set: file is encrypted */
43 #define RESERVED 0xC0 /* bit 6,7: reserved */
44
45 /* If BMAX needs to be larger than 16, then h and x[] should be ulg. */
46 #define BMAX 16 /* maximum bit length of any code (16 for explode) */
47 #define N_MAX 288 /* maximum number of codes in any set */
48
49 static char *input_data;
50
51 static void *freememstart;
This page took 0.047868 seconds and 5 git commands to generate.