1 | /* Copyright 2017 The Chromium Authors. All rights reserved. |
2 | * Use of this source code is governed by a BSD-style license that can be |
3 | * found in the LICENSE file. */ |
4 | |
5 | #ifndef THIRD_PARTY_ZLIB_NAMES_H_ |
6 | #define THIRD_PARTY_ZLIB_NAMES_H_ |
7 | |
8 | /* Rename all zlib names with a Cr_z_ prefix. This is based on the Z_PREFIX |
9 | * option from zconf.h, but with a custom prefix. Where zconf.h would rename |
10 | * both a macro and its underscore-suffixed internal implementation (such as |
11 | * deflateInit2 and deflateInit2_), only the implementation is renamed here. |
12 | * The Byte type is also omitted. |
13 | * |
14 | * To generate this list, run |
15 | * sed -rn -e 's/^# *define +([^ ]+) +(z_[^ ]+)$/#define \1 Cr_\2/p' zconf.h |
16 | * (use -E instead of -r on macOS). |
17 | * |
18 | * gzread is also addressed by modifications in gzread.c and zlib.h. */ |
19 | |
20 | #define Z_CR_PREFIX_SET |
21 | |
22 | #define _dist_code Cr_z__dist_code |
23 | #define _length_code Cr_z__length_code |
24 | #define _tr_align Cr_z__tr_align |
25 | #define _tr_flush_bits Cr_z__tr_flush_bits |
26 | #define _tr_flush_block Cr_z__tr_flush_block |
27 | #define _tr_init Cr_z__tr_init |
28 | #define _tr_stored_block Cr_z__tr_stored_block |
29 | #define _tr_tally Cr_z__tr_tally |
30 | #define adler32 Cr_z_adler32 |
31 | #define adler32_combine Cr_z_adler32_combine |
32 | #define adler32_combine64 Cr_z_adler32_combine64 |
33 | #define adler32_z Cr_z_adler32_z |
34 | #define compress Cr_z_compress |
35 | #define compress2 Cr_z_compress2 |
36 | #define compressBound Cr_z_compressBound |
37 | #define crc32 Cr_z_crc32 |
38 | #define crc32_combine Cr_z_crc32_combine |
39 | #define crc32_combine64 Cr_z_crc32_combine64 |
40 | #define crc32_z Cr_z_crc32_z |
41 | #define deflate Cr_z_deflate |
42 | #define deflateBound Cr_z_deflateBound |
43 | #define deflateCopy Cr_z_deflateCopy |
44 | #define deflateEnd Cr_z_deflateEnd |
45 | #define deflateGetDictionary Cr_z_deflateGetDictionary |
46 | /* #undef deflateInit */ |
47 | /* #undef deflateInit2 */ |
48 | #define deflateInit2_ Cr_z_deflateInit2_ |
49 | #define deflateInit_ Cr_z_deflateInit_ |
50 | #define deflateParams Cr_z_deflateParams |
51 | #define deflatePending Cr_z_deflatePending |
52 | #define deflatePrime Cr_z_deflatePrime |
53 | #define deflateReset Cr_z_deflateReset |
54 | #define deflateResetKeep Cr_z_deflateResetKeep |
55 | #define deflateSetDictionary Cr_z_deflateSetDictionary |
56 | #define Cr_z_deflateSetHeader |
57 | #define deflateTune Cr_z_deflateTune |
58 | #define deflate_copyright Cr_z_deflate_copyright |
59 | #define get_crc_table Cr_z_get_crc_table |
60 | #define gz_error Cr_z_gz_error |
61 | #define gz_intmax Cr_z_gz_intmax |
62 | #define gz_strwinerror Cr_z_gz_strwinerror |
63 | #define gzbuffer Cr_z_gzbuffer |
64 | #define gzclearerr Cr_z_gzclearerr |
65 | #define gzclose Cr_z_gzclose |
66 | #define gzclose_r Cr_z_gzclose_r |
67 | #define gzclose_w Cr_z_gzclose_w |
68 | #define gzdirect Cr_z_gzdirect |
69 | #define gzdopen Cr_z_gzdopen |
70 | #define gzeof Cr_z_gzeof |
71 | #define gzerror Cr_z_gzerror |
72 | #define gzflush Cr_z_gzflush |
73 | #define gzfread Cr_z_gzfread |
74 | #define gzfwrite Cr_z_gzfwrite |
75 | #define gzgetc Cr_z_gzgetc |
76 | #define gzgetc_ Cr_z_gzgetc_ |
77 | #define gzgets Cr_z_gzgets |
78 | #define gzoffset Cr_z_gzoffset |
79 | #define gzoffset64 Cr_z_gzoffset64 |
80 | #define gzopen Cr_z_gzopen |
81 | #define gzopen64 Cr_z_gzopen64 |
82 | #define gzopen_w Cr_z_gzopen_w |
83 | #define gzprintf Cr_z_gzprintf |
84 | #define gzputc Cr_z_gzputc |
85 | #define gzputs Cr_z_gzputs |
86 | #define gzread Cr_z_gzread |
87 | #define gzrewind Cr_z_gzrewind |
88 | #define gzseek Cr_z_gzseek |
89 | #define gzseek64 Cr_z_gzseek64 |
90 | #define gzsetparams Cr_z_gzsetparams |
91 | #define gztell Cr_z_gztell |
92 | #define gztell64 Cr_z_gztell64 |
93 | #define gzungetc Cr_z_gzungetc |
94 | #define gzvprintf Cr_z_gzvprintf |
95 | #define gzwrite Cr_z_gzwrite |
96 | #define inflate Cr_z_inflate |
97 | #define inflateBack Cr_z_inflateBack |
98 | #define inflateBackEnd Cr_z_inflateBackEnd |
99 | /* #undef inflateBackInit */ |
100 | #define inflateBackInit_ Cr_z_inflateBackInit_ |
101 | #define inflateCodesUsed Cr_z_inflateCodesUsed |
102 | #define inflateCopy Cr_z_inflateCopy |
103 | #define inflateEnd Cr_z_inflateEnd |
104 | #define inflateGetDictionary Cr_z_inflateGetDictionary |
105 | #define Cr_z_inflateGetHeader |
106 | /* #undef inflateInit */ |
107 | /* #undef inflateInit2 */ |
108 | #define inflateInit2_ Cr_z_inflateInit2_ |
109 | #define inflateInit_ Cr_z_inflateInit_ |
110 | #define inflateMark Cr_z_inflateMark |
111 | #define inflatePrime Cr_z_inflatePrime |
112 | #define inflateReset Cr_z_inflateReset |
113 | #define inflateReset2 Cr_z_inflateReset2 |
114 | #define inflateResetKeep Cr_z_inflateResetKeep |
115 | #define inflateSetDictionary Cr_z_inflateSetDictionary |
116 | #define inflateSync Cr_z_inflateSync |
117 | #define inflateSyncPoint Cr_z_inflateSyncPoint |
118 | #define inflateUndermine Cr_z_inflateUndermine |
119 | #define inflateValidate Cr_z_inflateValidate |
120 | #define inflate_copyright Cr_z_inflate_copyright |
121 | #define inflate_fast Cr_z_inflate_fast |
122 | #define inflate_table Cr_z_inflate_table |
123 | #define uncompress Cr_z_uncompress |
124 | #define uncompress2 Cr_z_uncompress2 |
125 | #define zError Cr_z_zError |
126 | #define zcalloc Cr_z_zcalloc |
127 | #define zcfree Cr_z_zcfree |
128 | #define zlibCompileFlags Cr_z_zlibCompileFlags |
129 | #define zlibVersion Cr_z_zlibVersion |
130 | /* #undef Byte */ |
131 | #define Bytef Cr_z_Bytef |
132 | #define alloc_func Cr_z_alloc_func |
133 | #define charf Cr_z_charf |
134 | #define free_func Cr_z_free_func |
135 | #define gzFile Cr_z_gzFile |
136 | #define Cr_z_gz_header |
137 | #define Cr_z_gz_headerp |
138 | #define in_func Cr_z_in_func |
139 | #define intf Cr_z_intf |
140 | #define out_func Cr_z_out_func |
141 | #define uInt Cr_z_uInt |
142 | #define uIntf Cr_z_uIntf |
143 | #define uLong Cr_z_uLong |
144 | #define uLongf Cr_z_uLongf |
145 | #define voidp Cr_z_voidp |
146 | #define voidpc Cr_z_voidpc |
147 | #define voidpf Cr_z_voidpf |
148 | #define Cr_z_gz_header_s |
149 | #define internal_state Cr_z_internal_state |
150 | /* #undef z_off64_t */ |
151 | |
152 | /* An exported symbol that isn't handled by Z_PREFIX in zconf.h */ |
153 | #define z_errmsg Cr_z_z_errmsg |
154 | |
155 | /* Symbols added in simd.patch */ |
156 | #define copy_with_crc Cr_z_copy_with_crc |
157 | #define crc_finalize Cr_z_crc_finalize |
158 | #define crc_fold_512to32 Cr_z_crc_fold_512to32 |
159 | #define crc_fold_copy Cr_z_crc_fold_copy |
160 | #define crc_fold_init Cr_z_crc_fold_init |
161 | #define crc_reset Cr_z_crc_reset |
162 | #define fill_window_sse Cr_z_fill_window_sse |
163 | #define deflate_read_buf Cr_z_deflate_read_buf |
164 | #define x86_check_features Cr_z_x86_check_features |
165 | #define x86_cpu_enable_simd Cr_z_x86_cpu_enable_simd |
166 | |
167 | /* Symbols added by adler_simd.c */ |
168 | #define adler32_simd_ Cr_z_adler32_simd_ |
169 | #define x86_cpu_enable_ssse3 Cr_z_x86_cpu_enable_ssse3 |
170 | |
171 | /* Symbols added by contrib/optimizations/inffast_chunk */ |
172 | #define inflate_fast_chunk_ Cr_z_inflate_fast_chunk_ |
173 | |
174 | /* Symbols added by crc32_simd.c */ |
175 | #define crc32_sse42_simd_ Cr_z_crc32_sse42_simd_ |
176 | |
177 | /* Symbols added by armv8_crc32 */ |
178 | #define arm_cpu_enable_crc32 Cr_z_arm_cpu_enable_crc32 |
179 | #define arm_cpu_enable_pmull Cr_z_arm_cpu_enable_pmull |
180 | #define arm_check_features Cr_z_arm_check_features |
181 | #define armv8_crc32_little Cr_z_armv8_crc32_little |
182 | |
183 | #endif /* THIRD_PARTY_ZLIB_NAMES_H_ */ |
184 | |