delta_common.c | delta_common.c | |||
---|---|---|---|---|
skipping to change at line 17 | skipping to change at line 17 | |||
// | // | |||
// This file has been put into the public domain. | // This file has been put into the public domain. | |||
// You can do whatever you want with this file. | // You can do whatever you want with this file. | |||
// | // | |||
/////////////////////////////////////////////////////////////////////////// //// | /////////////////////////////////////////////////////////////////////////// //// | |||
#include "delta_common.h" | #include "delta_common.h" | |||
#include "delta_private.h" | #include "delta_private.h" | |||
static void | static void | |||
delta_coder_end(lzma_coder *coder, lzma_allocator *allocator) | delta_coder_end(lzma_coder *coder, const lzma_allocator *allocator) | |||
{ | { | |||
lzma_next_end(&coder->next, allocator); | lzma_next_end(&coder->next, allocator); | |||
lzma_free(coder, allocator); | lzma_free(coder, allocator); | |||
return; | return; | |||
} | } | |||
extern lzma_ret | extern lzma_ret | |||
lzma_delta_coder_init(lzma_next_coder *next, lzma_allocator *allocator, | lzma_delta_coder_init(lzma_next_coder *next, const lzma_allocator *allocato r, | |||
const lzma_filter_info *filters) | const lzma_filter_info *filters) | |||
{ | { | |||
// Allocate memory for the decoder if needed. | // Allocate memory for the decoder if needed. | |||
if (next->coder == NULL) { | if (next->coder == NULL) { | |||
next->coder = lzma_alloc(sizeof(lzma_coder), allocator); | next->coder = lzma_alloc(sizeof(lzma_coder), allocator); | |||
if (next->coder == NULL) | if (next->coder == NULL) | |||
return LZMA_MEM_ERROR; | return LZMA_MEM_ERROR; | |||
// End function is the same for encoder and decoder. | // End function is the same for encoder and decoder. | |||
next->end = &delta_coder_end; | next->end = &delta_coder_end; | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |