summaryrefslogtreecommitdiff
path: root/include/compression/bwlzh.h
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2014-12-04 16:05:42 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2014-12-08 13:35:27 (GMT)
commitb6c0fbcbb224c894eb90cc920c6ecb8e8d48e66a (patch)
tree945db6cb55f72e09c56e2846eaa355f8c6bc472d /include/compression/bwlzh.h
parentdb972bad9178b95ee16110de186074476579bf89 (diff)
Made function arguments const where relevant.
Change-Id: I5b196b57976c8c718b079336a805188ccb03ef4b
Diffstat (limited to 'include/compression/bwlzh.h')
-rw-r--r--include/compression/bwlzh.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/include/compression/bwlzh.h b/include/compression/bwlzh.h
index 70d586a..ce08f69 100644
--- a/include/compression/bwlzh.h
+++ b/include/compression/bwlzh.h
@@ -17,28 +17,28 @@
allocated to be able to hold worst case. You can obtain this length
conveniently by calling comp_get_buflen()
*/
-void DECLSPECDLLEXPORT bwlzh_compress(unsigned int *vals, int nvals,
+void DECLSPECDLLEXPORT bwlzh_compress(unsigned int *vals, const int nvals,
unsigned char *output, int *output_len);
-void DECLSPECDLLEXPORT bwlzh_compress_no_lz77(unsigned int *vals, int nvals,
+void DECLSPECDLLEXPORT bwlzh_compress_no_lz77(unsigned int *vals, const int nvals,
unsigned char *output, int *output_len);
-int DECLSPECDLLEXPORT bwlzh_get_buflen(int nvals);
+int DECLSPECDLLEXPORT bwlzh_get_buflen(const int nvals);
-void DECLSPECDLLEXPORT bwlzh_decompress(unsigned char *input, int nvals,
+void DECLSPECDLLEXPORT bwlzh_decompress(unsigned char *input, const int nvals,
unsigned int *vals);
/* The routines below are mostly useful for testing, and for internal
use by the library. */
-void DECLSPECDLLEXPORT bwlzh_compress_verbose(unsigned int *vals, int nvals,
+void DECLSPECDLLEXPORT bwlzh_compress_verbose(unsigned int *vals, const int nvals,
unsigned char *output, int *output_len);
-void DECLSPECDLLEXPORT bwlzh_compress_no_lz77_verbose(unsigned int *vals, int nvals,
+void DECLSPECDLLEXPORT bwlzh_compress_no_lz77_verbose(unsigned int *vals, const int nvals,
unsigned char *output, int *output_len);
-void DECLSPECDLLEXPORT bwlzh_decompress_verbose(unsigned char *input, int nvals,
+void DECLSPECDLLEXPORT bwlzh_decompress_verbose(unsigned char *input, const int nvals,
unsigned int *vals);
/* Compress the integers (positive, small integers are preferable)
@@ -47,12 +47,12 @@ void DECLSPECDLLEXPORT bwlzh_decompress_verbose(unsigned char *input, int nvals,
to be able to hold worst case. You can obtain this length
conveniently by calling comp_huff_buflen()
*/
-void Ptngc_comp_huff_compress(unsigned int *vals, int nvals,
+void Ptngc_comp_huff_compress(unsigned int *vals, const int nvals,
unsigned char *huffman, int *huffman_len);
-int Ptngc_comp_huff_buflen(int nvals);
+int Ptngc_comp_huff_buflen(const int nvals);
-void Ptngc_comp_huff_decompress(unsigned char *huffman, int huffman_len,
+void Ptngc_comp_huff_decompress(unsigned char *huffman, const int huffman_len,
unsigned int *vals);
@@ -62,11 +62,11 @@ void Ptngc_comp_huff_compress_verbose(unsigned int *vals, int nvals,
unsigned char *huffman, int *huffman_len,
int *huffdatalen,
int *huffman_lengths,int *chosen_algo,
- int isvals16);
+ const int isvals16);
#define N_HUFFMAN_ALGO 3
-char *Ptngc_comp_get_huff_algo_name(int algo);
-char *Ptngc_comp_get_algo_name(int algo);
+char *Ptngc_comp_get_huff_algo_name(const int algo);
+char *Ptngc_comp_get_algo_name(const int algo);
#endif
contact: Jan Huwald // Impressum