]> wimlib.net Git - wimlib/blobdiff - include/wimlib/compress.h
Compiler stuff
[wimlib] / include / wimlib / compress.h
index 764eee724fc6d630046087055a57611ccce67d18..60b4c0eaceafc122a8ee06eee335ba8acc2faf6d 100644 (file)
@@ -37,8 +37,8 @@ struct output_bitstream {
        int num_bytes_remaining;
 };
 
-static inline int bitstream_put_byte(struct output_bitstream *ostream,
-                                    u8 n)
+static inline int
+bitstream_put_byte(struct output_bitstream *ostream, u8 n)
 {
        if (ostream->num_bytes_remaining < 1)
                return 1;
@@ -48,8 +48,8 @@ static inline int bitstream_put_byte(struct output_bitstream *ostream,
        return 0;
 }
 
-static inline int bitstream_put_two_bytes(struct output_bitstream *ostream,
-                                         u16 n)
+static inline int
+bitstream_put_two_bytes(struct output_bitstream *ostream, u16 n)
 {
        if (ostream->num_bytes_remaining < 2)
                return 1;
@@ -72,28 +72,32 @@ struct lz_params {
 typedef unsigned (*lz_record_match_t)(unsigned, unsigned, void *, void *);
 typedef unsigned (*lz_record_literal_t)(u8, void *);
 
-extern unsigned lz_analyze_block(const u8 uncompressed_data[],
-                                unsigned uncompressed_len,
-                                u32 match_tab[],
-                                lz_record_match_t record_match,
-                                lz_record_literal_t record_literal,
-                                void *record_match_arg1,
-                                void *record_match_arg2,
-                                void *record_literal_arg,
-                                const struct lz_params *params);
+extern unsigned
+lz_analyze_block(const u8 uncompressed_data[],
+                unsigned uncompressed_len,
+                u32 match_tab[],
+                lz_record_match_t record_match,
+                lz_record_literal_t record_literal,
+                void *record_match_arg1,
+                void *record_match_arg2,
+                void *record_literal_arg,
+                const struct lz_params *params);
 
 extern int bitstream_put_bits(struct output_bitstream *ostream,
                              output_bitbuf_t bits, unsigned num_bits);
 
-extern void init_output_bitstream(struct output_bitstream *ostream,
-                                 void *data, unsigned num_bytes);
+extern void
+init_output_bitstream(struct output_bitstream *ostream,
+                     void *data, unsigned num_bytes);
 
-extern int flush_output_bitstream(struct output_bitstream *ostream);
+extern int
+flush_output_bitstream(struct output_bitstream *ostream);
 
-extern void make_canonical_huffman_code(unsigned num_syms,
-                                       unsigned max_codeword_len,
-                                       const freq_t freq_tab[],
-                                       u8 lens[],
-                                       u16 codewords[]);
+extern void
+make_canonical_huffman_code(unsigned num_syms,
+                           unsigned max_codeword_len,
+                           const freq_t freq_tab[],
+                           u8 lens[],
+                           u16 codewords[]);
 
 #endif /* _WIMLIB_COMPRESS_H */