X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Flzx-common.c;h=a7bca000803447c6e24f32c6f3710b76c2e8b799;hp=9da4ddb069ca46fba21291f31c434f56d2536a28;hb=ebe0206c700963ee0ace86cc55fca6570b03cac3;hpb=9ad70b9c12fb5859ff5be1730672b80197a0d9f9 diff --git a/src/lzx-common.c b/src/lzx-common.c index 9da4ddb0..a7bca000 100644 --- a/src/lzx-common.c +++ b/src/lzx-common.c @@ -1,5 +1,33 @@ -#include "lzx.h" +/* + * lzx-common.c - Common data for LZX compression and decompression. + */ + +/* + * Copyright (C) 2012, 2013 Eric Biggers + * + * This file is part of wimlib, a library for working with WIM files. + * + * wimlib is free software; you can redistribute it and/or modify it under the + * terms of the GNU General Public License as published by the Free + * Software Foundation; either version 3 of the License, or (at your option) + * any later version. + * + * wimlib is distributed in the hope that it will be useful, but WITHOUT ANY + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR + * A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License + * along with wimlib; if not, see http://www.gnu.org/licenses/. + */ + +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#include "wimlib/lzx.h" +#ifdef USE_LZX_EXTRA_BITS_ARRAY /* LZX uses what it calls 'position slots' to represent match offsets. * What this means is that a small 'position slot' number and a small * offset from that slot are encoded instead of one large offset for @@ -20,6 +48,7 @@ const u8 lzx_extra_bits[LZX_NUM_POSITION_SLOTS] = { /*17, 17, 17, 17, 17,*/ /*17*/ }; +#endif const u32 lzx_position_base[LZX_NUM_POSITION_SLOTS] = { 0 , 1 , 2 , 3 , 4 ,