set(ZLIB_PRIVATE_HDRS
adler32_p.h
chunkset_tpl.h
- crc32.h
crc32_p.h
+ crc32_tbl.h
deflate.h
deflate_p.h
functable.h
gzguts.h
inffast.h
- inffixed.h
+ inffixed_tbl.h
inflate.h
inflate_p.h
inftrees.h
insert_string_tpl.h
match_tpl.h
- trees.h
+ trees_tbl.h
trees_emit.h
trees_p.h
zbuild.h
add_test(NAME makefixed
COMMAND ${CMAKE_COMMAND}
"-DCOMMAND=${MAKEFIXED_COMMAND}"
- -DOUTPUT=${CMAKE_CURRENT_SOURCE_DIR}/inffixed._h
- -DCOMPARE=${CMAKE_CURRENT_SOURCE_DIR}/inffixed.h
+ -DOUTPUT=${CMAKE_CURRENT_SOURCE_DIR}/inffixed_tbl._h
+ -DCOMPARE=${CMAKE_CURRENT_SOURCE_DIR}/inffixed_tbl.h
-P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/run-and-compare.cmake)
set(MAKETREES_COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $<TARGET_FILE:maketrees>)
add_test(NAME maketrees
COMMAND ${CMAKE_COMMAND}
"-DCOMMAND=${MAKETREES_COMMAND}"
- -DOUTPUT=${CMAKE_CURRENT_SOURCE_DIR}/trees._h
- -DCOMPARE=${CMAKE_CURRENT_SOURCE_DIR}/trees.h
+ -DOUTPUT=${CMAKE_CURRENT_SOURCE_DIR}/trees_tbl._h
+ -DCOMPARE=${CMAKE_CURRENT_SOURCE_DIR}/trees_tbl.h
-P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/run-and-compare.cmake)
set(MAKECRCT_COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $<TARGET_FILE:makecrct>)
add_test(NAME makecrct
COMMAND ${CMAKE_COMMAND}
"-DCOMMAND=${MAKECRCT_COMMAND}"
- -DOUTPUT=${CMAKE_CURRENT_SOURCE_DIR}/crc32._h
- -DCOMPARE=${CMAKE_CURRENT_SOURCE_DIR}/crc32.h
+ -DOUTPUT=${CMAKE_CURRENT_SOURCE_DIR}/crc32_tbl._h
+ -DCOMPARE=${CMAKE_CURRENT_SOURCE_DIR}/crc32_tbl.h
-P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/run-and-compare.cmake)
set(INFCOVER_COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $<TARGET_FILE:infcover>)
| infback.* | Inflate using a callback interface |
| inflate.* | Decompress data |
| inffast.* | Decompress data with speed optimizations |
-| inffixed.h | Table for decoding fixed codes |
+| inffixed_tbl.h | Table for decoding fixed codes |
| inftrees.h | Generate Huffman trees for efficient decoding |
| trees.* | Output deflated data using Huffman coding |
| uncompr.c | Decompress a memory buffer |
#include "deflate.h"
#include "functable.h"
#include "crc32_p.h"
-#include "crc32.h"
+#include "crc32_tbl.h"
/* Local functions for crc concatenation */
-#ifndef CRC32_H_
-#define CRC32_H_
+#ifndef CRC32_TBL_H_
+#define CRC32_TBL_H_
-/* crc32.h -- tables for rapid CRC calculation
+/* crc32_tbl.h -- tables for rapid CRC calculation
* Generated automatically by makecrct.c
*/
0x04000000, 0x08000000
}
};
-#endif /* CRC32_H_ */
+#endif /* CRC32_TBL_H_ */
- /* inffixed.h -- table for decoding fixed codes
+ /* inffixed_tbl.h -- table for decoding fixed codes
* Generated automatically by makefixed().
*/
#include "inflate.h"
#include "inffast.h"
#include "inflate_p.h"
-#include "inffixed.h"
+#include "inffixed_tbl.h"
#include "functable.h"
/* Architecture-specific hooks. */
/*
Return state with length and distance decoding tables and index sizes set to
- fixed code decoding. This returns fixed tables from inffixed.h.
+ fixed code decoding. This returns fixed tables from inffixed_tbl.h.
*/
void ZLIB_INTERNAL fixedtables(struct inflate_state *state) {
static void print_crc32_tables() {
int k;
- printf("#ifndef CRC32_H_\n");
- printf("#define CRC32_H_\n\n");
- printf("/* crc32.h -- tables for rapid CRC calculation\n");
+ printf("#ifndef CRC32_TBL_H_\n");
+ printf("#define CRC32_TBL_H_\n\n");
+ printf("/* crc32_tbl.h -- tables for rapid CRC calculation\n");
printf(" * Generated automatically by makecrct.c\n */\n\n");
/* print CRC table */
write_table(crc_comb[k], GF2_DIM);
}
printf(" }\n};\n");
- printf("#endif /* CRC32_H_ */\n");
+ printf("#endif /* CRC32_TBL_H_ */\n");
}
static void write_table(const uint32_t *table, int k) {
}
-// Create fixed tables on the fly and write out a inffixed.h file that is #include'd above.
-// makefixed() writes those tables to stdout, which would be piped to inffixed.h.
+// Create fixed tables on the fly and write out a inffixed_tbl.h file that is #include'd above.
+// makefixed() writes those tables to stdout, which would be piped to inffixed_tbl.h.
void makefixed(void) {
unsigned low, size;
struct inflate_state state;
memset(&state, 0, sizeof(state));
buildfixedtables(&state);
- puts(" /* inffixed.h -- table for decoding fixed codes");
+ puts(" /* inffixed_tbl.h -- table for decoding fixed codes");
puts(" * Generated automatically by makefixed().");
puts(" */");
puts("");
puts("\n };");
}
-// The output of this application can be piped out to recreate inffixed.h
+// The output of this application can be piped out to recreate inffixed_tbl.h
int main(void) {
makefixed();
return 0;
}
-
static void gen_trees_header() {
int i;
- printf("#ifndef TREES_H_\n");
- printf("#define TREES_H_\n\n");
+ printf("#ifndef TREES_TBL_H_\n");
+ printf("#define TREES_TBL_H_\n\n");
printf("/* header created automatically with maketrees.c */\n\n");
printf("%5d%s", base_dist[i], SEPARATOR(i, D_CODES-1, 10));
}
- printf("#endif /* TREES_H_ */\n");
+ printf("#endif /* TREES_TBL_H_ */\n");
}
// The output of this application can be piped out to recreate trees.h
#include "deflate.h"
#include "trees_p.h"
#include "trees_emit.h"
-#include "trees.h"
+#include "trees_tbl.h"
/* The lengths of the bit length codes are sent in order of decreasing
* probability, to avoid transmitting the lengths for unused bit length codes.
-#ifndef TREES_H_
-#define TREES_H_
+#ifndef TREES_TBL_H_
+#define TREES_TBL_H_
/* header created automatically with maketrees.c */
1024, 1536, 2048, 3072, 4096, 6144, 8192, 12288, 16384, 24576
};
-#endif /* TREES_H_ */
+#endif /* TREES_TBL_H_ */
gzwrite.obj: $(SRCDIR)/gzwrite.c $(SRCDIR)/zbuild.h $(SRCDIR)/gzguts.h
compress.obj: $(SRCDIR)/compress.c $(SRCDIR)/zbuild.h $(SRCDIR)/zlib$(SUFFIX).h
uncompr.obj: $(SRCDIR)/uncompr.c $(SRCDIR)/zbuild.h $(SRCDIR)/zlib$(SUFFIX).h
-crc32.obj: $(SRCDIR)/crc32.c $(SRCDIR)/zbuild.h $(SRCDIR)/zendian.h $(SRCDIR)/deflate.h $(SRCDIR)/functable.h $(SRCDIR)/crc32.h
+crc32.obj: $(SRCDIR)/crc32.c $(SRCDIR)/zbuild.h $(SRCDIR)/zendian.h $(SRCDIR)/deflate.h $(SRCDIR)/functable.h $(SRCDIR)/crc32_tbl.h
deflate.obj: $(SRCDIR)/deflate.c $(SRCDIR)/zbuild.h $(SRCDIR)/deflate.h $(SRCDIR)/deflate_p.h $(SRCDIR)/functable.h
deflate_quick.obj: $(SRCDIR)/deflate_quick.c $(SRCDIR)/zbuild.h $(SRCDIR)/deflate.h $(SRCDIR)/deflate_p.h $(SRCDIR)/functable.h $(SRCDIR)/trees_emit.h
deflate_fast.obj: $(SRCDIR)/deflate_fast.c $(SRCDIR)/zbuild.h $(SRCDIR)/deflate.h $(SRCDIR)/deflate_p.h $(SRCDIR)/functable.h
inffast.obj: $(SRCDIR)/inffast.c $(SRCDIR)/zbuild.h $(SRCDIR)/zutil.h $(SRCDIR)/inftrees.h $(SRCDIR)/inflate.h $(SRCDIR)/inffast.h $(SRCDIR)/functable.h
inflate.obj: $(SRCDIR)/inflate.c $(SRCDIR)/zbuild.h $(SRCDIR)/zutil.h $(SRCDIR)/inftrees.h $(SRCDIR)/inflate.h $(SRCDIR)/inffast.h $(SRCDIR)/functable.h $(SRCDIR)/functable.h
inftrees.obj: $(SRCDIR)/inftrees.c $(SRCDIR)/zbuild.h $(SRCDIR)/zutil.h $(SRCDIR)/inftrees.h
-trees.obj: $(SRCDIR)/zbuild.h $(SRCDIR)/deflate.h $(SRCDIR)/trees.h
+trees.obj: $(SRCDIR)/zbuild.h $(SRCDIR)/deflate.h $(SRCDIR)/trees_tbl.h
zutil.obj: $(SRCDIR)/zbuild.h $(SRCDIR)/zutil.h $(SRCDIR)/gzguts.h
example.obj: $(TOP)/test/example.c $(TOP)/zbuild.h $(TOP)/zlib$(SUFFIX).h
compress.obj: $(SRCDIR)/compress.c $(SRCDIR)/zbuild.h $(SRCDIR)/zlib$(SUFFIX).h
uncompr.obj: $(SRCDIR)/uncompr.c $(SRCDIR)/zbuild.h $(SRCDIR)/zlib$(SUFFIX).h
chunkset.obj: $(SRCDIR)/zbuild.h $(SRCDIR)/zutil.h
-crc32.obj: $(SRCDIR)/crc32.c $(SRCDIR)/zbuild.h $(SRCDIR)/zendian.h $(SRCDIR)/deflate.h $(SRCDIR)/functable.h $(SRCDIR)/crc32.h
+crc32.obj: $(SRCDIR)/crc32.c $(SRCDIR)/zbuild.h $(SRCDIR)/zendian.h $(SRCDIR)/deflate.h $(SRCDIR)/functable.h $(SRCDIR)/crc32_tbl.h
deflate.obj: $(SRCDIR)/deflate.c $(SRCDIR)/zbuild.h $(SRCDIR)/deflate.h $(SRCDIR)/deflate_p.h $(SRCDIR)/functable.h
deflate_fast.obj: $(SRCDIR)/deflate_fast.c $(SRCDIR)/zbuild.h $(SRCDIR)/deflate.h $(SRCDIR)/deflate_p.h $(SRCDIR)/functable.h
deflate_medium.obj: $(SRCDIR)/deflate_medium.c $(SRCDIR)/zbuild.h $(SRCDIR)/deflate.h $(SRCDIR)/deflate_p.h $(SRCDIR)/functable.h
inffast.obj: $(SRCDIR)/inffast.c $(SRCDIR)/zbuild.h $(SRCDIR)/zutil.h $(SRCDIR)/inftrees.h $(SRCDIR)/inflate.h $(SRCDIR)/inffast.h $(SRCDIR)/functable.h
inflate.obj: $(SRCDIR)/inflate.c $(SRCDIR)/zbuild.h $(SRCDIR)/zutil.h $(SRCDIR)/inftrees.h $(SRCDIR)/inflate.h $(SRCDIR)/inffast.h $(SRCDIR)/functable.h $(SRCDIR)/functable.h
inftrees.obj: $(SRCDIR)/inftrees.c $(SRCDIR)/zbuild.h $(SRCDIR)/zutil.h $(SRCDIR)/inftrees.h
-trees.obj: $(SRCDIR)/zbuild.h $(SRCDIR)/deflate.h $(SRCDIR)/trees.h
+trees.obj: $(SRCDIR)/zbuild.h $(SRCDIR)/deflate.h $(SRCDIR)/trees_tbl.h
zutil.obj: $(SRCDIR)/zbuild.h $(SRCDIR)/zutil.h $(SRCDIR)/gzguts.h
example.obj: $(TOP)/test/example.c $(TOP)/zbuild.h $(TOP)/zlib$(SUFFIX).h
uncompr.obj: $(SRCDIR)/uncompr.c $(SRCDIR)/zbuild.h $(SRCDIR)/zlib$(SUFFIX).h
chunkset.obj: $(SRCDIR)/zbuild.h $(SRCDIR)/zutil.h
chunkset_sse.obj: $(SRCDIR)/arch/x86/chunkset_sse.c $(SRCDIR)/zbuild.h $(SRCDIR)/zutil.h
-crc32.obj: $(SRCDIR)/crc32.c $(SRCDIR)/zbuild.h $(SRCDIR)/zendian.h $(SRCDIR)/deflate.h $(SRCDIR)/functable.h $(SRCDIR)/crc32.h
+crc32.obj: $(SRCDIR)/crc32.c $(SRCDIR)/zbuild.h $(SRCDIR)/zendian.h $(SRCDIR)/deflate.h $(SRCDIR)/functable.h $(SRCDIR)/crc32_tbl.h
deflate.obj: $(SRCDIR)/deflate.c $(SRCDIR)/zbuild.h $(SRCDIR)/deflate.h $(SRCDIR)/deflate_p.h $(SRCDIR)/functable.h
deflate_fast.obj: $(SRCDIR)/deflate_fast.c $(SRCDIR)/zbuild.h $(SRCDIR)/deflate.h $(SRCDIR)/deflate_p.h $(SRCDIR)/functable.h
deflate_medium.obj: $(SRCDIR)/deflate_medium.c $(SRCDIR)/zbuild.h $(SRCDIR)/deflate.h $(SRCDIR)/deflate_p.h $(SRCDIR)/functable.h
inflate.obj: $(SRCDIR)/inflate.c $(SRCDIR)/zbuild.h $(SRCDIR)/zutil.h $(SRCDIR)/inftrees.h $(SRCDIR)/inflate.h $(SRCDIR)/inffast.h $(SRCDIR)/functable.h $(SRCDIR)/functable.h
inftrees.obj: $(SRCDIR)/inftrees.c $(SRCDIR)/zbuild.h $(SRCDIR)/zutil.h $(SRCDIR)/inftrees.h
slide_sse.obj: $(SRCDIR)/arch/x86/slide_sse.c $(SRCDIR)/deflate.h
-trees.obj: $(SRCDIR)/zbuild.h $(SRCDIR)/deflate.h $(SRCDIR)/trees.h
+trees.obj: $(SRCDIR)/zbuild.h $(SRCDIR)/deflate.h $(SRCDIR)/trees_tbl.h
zutil.obj: $(SRCDIR)/zbuild.h $(SRCDIR)/zutil.h $(SRCDIR)/gzguts.h
example.obj: $(TOP)/test/example.c $(TOP)/zbuild.h $(TOP)/zlib$(SUFFIX).h