mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
Omit lzma_restrict from the API headers.
It isn't really useful so omitting it makes things shorter and slightly more readable.
This commit is contained in:
parent
0d3489efca
commit
d9986db782
3 changed files with 7 additions and 21 deletions
|
@ -232,10 +232,6 @@
|
||||||
#if __GNUC__ >= 3
|
#if __GNUC__ >= 3
|
||||||
# ifndef lzma_attribute
|
# ifndef lzma_attribute
|
||||||
# define lzma_attribute(attr) __attribute__(attr)
|
# define lzma_attribute(attr) __attribute__(attr)
|
||||||
# endif
|
|
||||||
|
|
||||||
# ifndef lzma_restrict
|
|
||||||
# define lzma_restrict __restrict__
|
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
/* warn_unused_result was added in GCC 3.4. */
|
/* warn_unused_result was added in GCC 3.4. */
|
||||||
|
@ -249,14 +245,6 @@
|
||||||
# ifndef lzma_attribute
|
# ifndef lzma_attribute
|
||||||
# define lzma_attribute(attr)
|
# define lzma_attribute(attr)
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# ifndef lzma_restrict
|
|
||||||
# if __STDC_VERSION__ >= 199901L
|
|
||||||
# define lzma_restrict restrict
|
|
||||||
# else
|
|
||||||
# define lzma_restrict
|
|
||||||
# endif
|
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -562,9 +562,8 @@ extern LZMA_API(lzma_bool) lzma_index_iter_locate(
|
||||||
* - LZMA_MEM_ERROR
|
* - LZMA_MEM_ERROR
|
||||||
* - LZMA_PROG_ERROR
|
* - LZMA_PROG_ERROR
|
||||||
*/
|
*/
|
||||||
extern LZMA_API(lzma_ret) lzma_index_cat(lzma_index *lzma_restrict dest,
|
extern LZMA_API(lzma_ret) lzma_index_cat(
|
||||||
lzma_index *lzma_restrict src,
|
lzma_index *dest, lzma_index *src, lzma_allocator *allocator)
|
||||||
lzma_allocator *allocator)
|
|
||||||
lzma_nothrow lzma_attr_warn_unused_result;
|
lzma_nothrow lzma_attr_warn_unused_result;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -113,9 +113,8 @@ typedef uint64_t lzma_vli;
|
||||||
* - LZMA_BUF_ERROR: No output space was provided.
|
* - LZMA_BUF_ERROR: No output space was provided.
|
||||||
* - LZMA_PROG_ERROR: Arguments are not sane.
|
* - LZMA_PROG_ERROR: Arguments are not sane.
|
||||||
*/
|
*/
|
||||||
extern LZMA_API(lzma_ret) lzma_vli_encode(lzma_vli vli,
|
extern LZMA_API(lzma_ret) lzma_vli_encode(lzma_vli vli, size_t *vli_pos,
|
||||||
size_t *vli_pos, uint8_t *lzma_restrict out,
|
uint8_t *out, size_t *out_pos, size_t out_size) lzma_nothrow;
|
||||||
size_t *lzma_restrict out_pos, size_t out_size) lzma_nothrow;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -153,9 +152,9 @@ extern LZMA_API(lzma_ret) lzma_vli_encode(lzma_vli vli,
|
||||||
* - LZMA_BUF_ERROR: No input was provided.
|
* - LZMA_BUF_ERROR: No input was provided.
|
||||||
* - LZMA_PROG_ERROR: Arguments are not sane.
|
* - LZMA_PROG_ERROR: Arguments are not sane.
|
||||||
*/
|
*/
|
||||||
extern LZMA_API(lzma_ret) lzma_vli_decode(lzma_vli *lzma_restrict vli,
|
extern LZMA_API(lzma_ret) lzma_vli_decode(lzma_vli *vli, size_t *vli_pos,
|
||||||
size_t *vli_pos, const uint8_t *lzma_restrict in,
|
const uint8_t *in, size_t *in_pos, size_t in_size)
|
||||||
size_t *lzma_restrict in_pos, size_t in_size) lzma_nothrow;
|
lzma_nothrow;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue