Commit 4ed537ae authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5138 merge 49cfc8d... from xz-utils. fixes incorrect usage of restrict keyword


git-svn-id: file:///svn/xz-4.999.9beta@45193 c7de825b-a66e-492c-adef-691d508d4ae1
parent d6f286b6
...@@ -116,7 +116,7 @@ typedef uint64_t lzma_vli; ...@@ -116,7 +116,7 @@ typedef uint64_t lzma_vli;
* - 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 *lzma_restrict vli_pos, uint8_t *lzma_restrict out, size_t *vli_pos, uint8_t *lzma_restrict out,
size_t *lzma_restrict out_pos, size_t out_size) lzma_nothrow; size_t *lzma_restrict out_pos, size_t out_size) lzma_nothrow;
...@@ -156,7 +156,7 @@ extern LZMA_API(lzma_ret) lzma_vli_encode(lzma_vli vli, ...@@ -156,7 +156,7 @@ extern LZMA_API(lzma_ret) lzma_vli_encode(lzma_vli vli,
* - 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 *lzma_restrict vli,
size_t *lzma_restrict vli_pos, const uint8_t *lzma_restrict in, size_t *vli_pos, const uint8_t *lzma_restrict in,
size_t *lzma_restrict in_pos, size_t in_size) lzma_nothrow; size_t *lzma_restrict in_pos, size_t in_size) lzma_nothrow;
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
extern LZMA_API(lzma_ret) extern LZMA_API(lzma_ret)
lzma_vli_decode(lzma_vli *restrict vli, size_t *restrict vli_pos, lzma_vli_decode(lzma_vli *restrict vli, size_t *vli_pos,
const uint8_t *restrict in, size_t *restrict in_pos, const uint8_t *restrict in, size_t *restrict in_pos,
size_t in_size) size_t in_size)
{ {
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
extern LZMA_API(lzma_ret) extern LZMA_API(lzma_ret)
lzma_vli_encode(lzma_vli vli, size_t *restrict vli_pos, lzma_vli_encode(lzma_vli vli, size_t *vli_pos,
uint8_t *restrict out, size_t *restrict out_pos, uint8_t *restrict out, size_t *restrict out_pos,
size_t out_size) size_t out_size)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment