common.h (219001) | common.h (223935) |
---|---|
1/////////////////////////////////////////////////////////////////////////////// 2// 3/// \file common.h 4/// \brief Definitions common to the whole liblzma library 5// 6// Author: Lasse Collin 7// 8// This file has been put into the public domain. --- 191 unchanged lines hidden (view full) --- 200 /// If true, lzma_code will return LZMA_BUF_ERROR if no progress was 201 /// made (no input consumed and no output produced by next.code). 202 bool allow_buf_error; 203}; 204 205 206/// Allocates memory 207extern void *lzma_alloc(size_t size, lzma_allocator *allocator) | 1/////////////////////////////////////////////////////////////////////////////// 2// 3/// \file common.h 4/// \brief Definitions common to the whole liblzma library 5// 6// Author: Lasse Collin 7// 8// This file has been put into the public domain. --- 191 unchanged lines hidden (view full) --- 200 /// If true, lzma_code will return LZMA_BUF_ERROR if no progress was 201 /// made (no input consumed and no output produced by next.code). 202 bool allow_buf_error; 203}; 204 205 206/// Allocates memory 207extern void *lzma_alloc(size_t size, lzma_allocator *allocator) |
208 lzma_attribute((malloc)) lzma_attr_alloc_size(1); | 208 lzma_attribute((__malloc__)) lzma_attr_alloc_size(1); |
209 210/// Frees memory 211extern void lzma_free(void *ptr, lzma_allocator *allocator); 212 213 214/// Allocates strm->internal if it is NULL, and initializes *strm and 215/// strm->internal. This function is only called via lzma_next_strm_init macro. 216extern lzma_ret lzma_strm_init(lzma_stream *strm); --- 68 unchanged lines hidden --- | 209 210/// Frees memory 211extern void lzma_free(void *ptr, lzma_allocator *allocator); 212 213 214/// Allocates strm->internal if it is NULL, and initializes *strm and 215/// strm->internal. This function is only called via lzma_next_strm_init macro. 216extern lzma_ret lzma_strm_init(lzma_stream *strm); --- 68 unchanged lines hidden --- |