memory checker errors from longest match routines */
-void Z_INTERNAL fill_window(deflate_state *s);
-void Z_INTERNAL slide_hash_c(deflate_state *s);
+void Z_INTERNAL fill_window(deflate_state *s) Z_NONULL;
+void Z_INTERNAL slide_hash_c(deflate_state *s) Z_NONULL;
/* in trees.c */
-void Z_INTERNAL zng_tr_init(deflate_state *s);
-void Z_INTERNAL zng_tr_flush_block(deflate_state *s, char *buf, uint32_t stored_len, int last);
-void Z_INTERNAL zng_tr_flush_bits(deflate_state *s);
-void Z_INTERNAL zng_tr_align(deflate_state *s);
-void Z_INTERNAL zng_tr_stored_block(deflate_state *s, char *buf, uint32_t stored_len, int last);
+void Z_INTERNAL zng_tr_init(deflate_state *s) Z_NONULL;
+void Z_INTERNAL zng_tr_flush_block(deflate_state *s, char *buf, uint32_t stored_len, int last) Z_NONULL_A(1);
+void Z_INTERNAL zng_tr_flush_bits(deflate_state *s) Z_NONULL;
+void Z_INTERNAL zng_tr_align(deflate_state *s) Z_NONULL;
+void Z_INTERNAL zng_tr_stored_block(deflate_state *s, char *buf, uint32_t stored_len, int last) Z_NONULL_A(1);
uint16_t Z_INTERNAL PREFIX(bi_reverse)(unsigned code, int len);
-void Z_INTERNAL PREFIX(flush_pending)(PREFIX3(streamp) strm);
+void Z_INTERNAL PREFIX(flush_pending)(PREFIX3(streamp) strm) Z_NONULL;
#define d_code(dist) ((dist) < 256 ? zng_dist_code[dist] : zng_dist_code[256+((dist)>>7)])
/* Mapping from a distance to a distance code. dist is the distance - 1 and
* must not have side effects. zng_dist_code[256] and zng_dist_code[257] are never
* Local (static) routines in this file.
*/
-static void init_block (deflate_state *s);
-static void pqdownheap (deflate_state *s, ct_data *tree, int k);
-static void gen_bitlen (deflate_state *s, tree_desc *desc);
-static void build_tree (deflate_state *s, tree_desc *desc);
-static void scan_tree (deflate_state *s, ct_data *tree, int max_code);
-static void send_tree (deflate_state *s, ct_data *tree, int max_code);
-static int build_bl_tree (deflate_state *s);
-static void send_all_trees (deflate_state *s, int lcodes, int dcodes, int blcodes);
-static void compress_block (deflate_state *s, const ct_data *ltree, const ct_data *dtree);
-static int detect_data_type (deflate_state *s);
-static void bi_flush (deflate_state *s);
+static void init_block (deflate_state *s) Z_NONULL;
+static void pqdownheap (deflate_state *s, ct_data *tree, int k) Z_NONULL;
+static void gen_bitlen (deflate_state *s, tree_desc *desc) Z_NONULL;
+static void build_tree (deflate_state *s, tree_desc *desc) Z_NONULL;
+static void scan_tree (deflate_state *s, ct_data *tree, int max_code) Z_NONULL;
+static void send_tree (deflate_state *s, ct_data *tree, int max_code) Z_NONULL;
+static int build_bl_tree (deflate_state *s) Z_NONULL;
+static void send_all_trees (deflate_state *s, int lcodes, int dcodes, int blcodes) Z_NONULL;
+static void compress_block (deflate_state *s, const ct_data *ltree, const ct_data *dtree) Z_NONULL;
+static int detect_data_type (deflate_state *s) Z_NONULL;
+static void bi_flush (deflate_state *s) Z_NONULL;
/* ===========================================================================
* Initialize the tree data structures for a new zlib stream.