Deleted Added
full compact
options.c (213700) options.c (223935)
1///////////////////////////////////////////////////////////////////////////////
2//
3/// \file options.c
4/// \brief Parser for filter-specific options
5//
6// Author: Lasse Collin
7//
8// This file has been put into the public domain.

--- 136 unchanged lines hidden (view full) ---

145
146enum {
147 OPT_DIST,
148};
149
150
151static void
152set_delta(void *options, uint32_t key, uint64_t value,
1///////////////////////////////////////////////////////////////////////////////
2//
3/// \file options.c
4/// \brief Parser for filter-specific options
5//
6// Author: Lasse Collin
7//
8// This file has been put into the public domain.

--- 136 unchanged lines hidden (view full) ---

145
146enum {
147 OPT_DIST,
148};
149
150
151static void
152set_delta(void *options, uint32_t key, uint64_t value,
153 const char *valuestr lzma_attribute((unused)))
153 const char *valuestr lzma_attribute((__unused__)))
154{
155 lzma_options_delta *opt = options;
156 switch (key) {
157 case OPT_DIST:
158 opt->dist = value;
159 break;
160 }
161}

--- 27 unchanged lines hidden (view full) ---

189
190enum {
191 OPT_START_OFFSET,
192};
193
194
195static void
196set_bcj(void *options, uint32_t key, uint64_t value,
154{
155 lzma_options_delta *opt = options;
156 switch (key) {
157 case OPT_DIST:
158 opt->dist = value;
159 break;
160 }
161}

--- 27 unchanged lines hidden (view full) ---

189
190enum {
191 OPT_START_OFFSET,
192};
193
194
195static void
196set_bcj(void *options, uint32_t key, uint64_t value,
197 const char *valuestr lzma_attribute((unused)))
197 const char *valuestr lzma_attribute((__unused__)))
198{
199 lzma_options_bcj *opt = options;
200 switch (key) {
201 case OPT_START_OFFSET:
202 opt->start_offset = value;
203 break;
204 }
205}

--- 30 unchanged lines hidden (view full) ---

236 OPT_PB,
237 OPT_MODE,
238 OPT_NICE,
239 OPT_MF,
240 OPT_DEPTH,
241};
242
243
198{
199 lzma_options_bcj *opt = options;
200 switch (key) {
201 case OPT_START_OFFSET:
202 opt->start_offset = value;
203 break;
204 }
205}

--- 30 unchanged lines hidden (view full) ---

236 OPT_PB,
237 OPT_MODE,
238 OPT_NICE,
239 OPT_MF,
240 OPT_DEPTH,
241};
242
243
244static void lzma_attribute((noreturn))
244static void lzma_attribute((__noreturn__))
245error_lzma_preset(const char *valuestr)
246{
247 message_fatal(_("Unsupported LZMA1/LZMA2 preset: %s"), valuestr);
248}
249
250
251static void
252set_lzma(void *options, uint32_t key, uint64_t value, const char *valuestr)

--- 111 unchanged lines hidden ---
245error_lzma_preset(const char *valuestr)
246{
247 message_fatal(_("Unsupported LZMA1/LZMA2 preset: %s"), valuestr);
248}
249
250
251static void
252set_lzma(void *options, uint32_t key, uint64_t value, const char *valuestr)

--- 111 unchanged lines hidden ---