The R Project SVN R

Rev

Rev 53508 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 53508 Rev 55994
Line 142... Line 142...
142
}
142
}
143
 
143
 
144
 
144
 
145
static lzma_ret
145
static lzma_ret
146
block_encoder_update(lzma_coder *coder, lzma_allocator *allocator,
146
block_encoder_update(lzma_coder *coder, lzma_allocator *allocator,
147
		const lzma_filter *filters lzma_attribute((unused)),
147
		const lzma_filter *filters lzma_attribute((__unused__)),
148
		const lzma_filter *reversed_filters)
148
		const lzma_filter *reversed_filters)
149
{
149
{
150
	if (coder->sequence != SEQ_CODE)
150
	if (coder->sequence != SEQ_CODE)
151
		return LZMA_PROG_ERROR;
151
		return LZMA_PROG_ERROR;
152
 
152
 
Line 159... Line 159...
159
lzma_block_encoder_init(lzma_next_coder *next, lzma_allocator *allocator,
159
lzma_block_encoder_init(lzma_next_coder *next, lzma_allocator *allocator,
160
		lzma_block *block)
160
		lzma_block *block)
161
{
161
{
162
	lzma_next_coder_init(&lzma_block_encoder_init, next, allocator);
162
	lzma_next_coder_init(&lzma_block_encoder_init, next, allocator);
163
 
163
 
-
 
164
	if (block == NULL)
-
 
165
		return LZMA_PROG_ERROR;
-
 
166
 
-
 
167
	// The contents of the structure may depend on the version so
-
 
168
	// check the version first.
164
	if (block->version != 0)
169
	if (block->version != 0)
165
		return LZMA_OPTIONS_ERROR;
170
		return LZMA_OPTIONS_ERROR;
166
 
171
 
167
	// If the Check ID is not supported, we cannot calculate the check and
172
	// If the Check ID is not supported, we cannot calculate the check and
168
	// thus not create a proper Block.
173
	// thus not create a proper Block.