diff options
Diffstat (limited to 'trees.c')
-rw-r--r-- | trees.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* trees.c -- output deflated data using Huffman coding | 1 | /* trees.c -- output deflated data using Huffman coding |
2 | * Copyright (C) 1995-2009 Jean-loup Gailly | 2 | * Copyright (C) 1995-2010 Jean-loup Gailly |
3 | * detect_data_type() function provided freely by Cosmin Truta, 2006 | 3 | * detect_data_type() function provided freely by Cosmin Truta, 2006 |
4 | * For conditions of distribution and use, see copyright notice in zlib.h | 4 | * For conditions of distribution and use, see copyright notice in zlib.h |
5 | */ | 5 | */ |
@@ -351,13 +351,14 @@ void gen_trees_header() | |||
351 | static_dtree[i].Len, SEPARATOR(i, D_CODES-1, 5)); | 351 | static_dtree[i].Len, SEPARATOR(i, D_CODES-1, 5)); |
352 | } | 352 | } |
353 | 353 | ||
354 | fprintf(header, "const uch _dist_code[DIST_CODE_LEN] = {\n"); | 354 | fprintf(header, "const uch ZLIB_INTERNAL _dist_code[DIST_CODE_LEN] = {\n"); |
355 | for (i = 0; i < DIST_CODE_LEN; i++) { | 355 | for (i = 0; i < DIST_CODE_LEN; i++) { |
356 | fprintf(header, "%2u%s", _dist_code[i], | 356 | fprintf(header, "%2u%s", _dist_code[i], |
357 | SEPARATOR(i, DIST_CODE_LEN-1, 20)); | 357 | SEPARATOR(i, DIST_CODE_LEN-1, 20)); |
358 | } | 358 | } |
359 | 359 | ||
360 | fprintf(header, "const uch _length_code[MAX_MATCH-MIN_MATCH+1]= {\n"); | 360 | fprintf(header, |
361 | "const uch ZLIB_INTERNAL _length_code[MAX_MATCH-MIN_MATCH+1]= {\n"); | ||
361 | for (i = 0; i < MAX_MATCH-MIN_MATCH+1; i++) { | 362 | for (i = 0; i < MAX_MATCH-MIN_MATCH+1; i++) { |
362 | fprintf(header, "%2u%s", _length_code[i], | 363 | fprintf(header, "%2u%s", _length_code[i], |
363 | SEPARATOR(i, MAX_MATCH-MIN_MATCH, 20)); | 364 | SEPARATOR(i, MAX_MATCH-MIN_MATCH, 20)); |