aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/api/lzma/container.h
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2023-05-11 23:49:23 +0800
committerLasse Collin <lasse.collin@tukaani.org>2023-07-18 12:48:53 +0300
commit4f57a9c9915b7b9267885cf9fca58e5c8208458d (patch)
treef603cc676ab514a2c12ac3eeb9e5f15dedef6d58 /src/liblzma/api/lzma/container.h
parentTranslations: Update the Croatian translation. (diff)
downloadxz-4f57a9c9915b7b9267885cf9fca58e5c8208458d.tar.xz
liblzma: Adds lzma_nothrow to MicroLZMA API functions.
None of the liblzma functions may throw an exception, so this attribute should be applied to all liblzma API functions.
Diffstat (limited to 'src/liblzma/api/lzma/container.h')
-rw-r--r--src/liblzma/api/lzma/container.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/liblzma/api/lzma/container.h b/src/liblzma/api/lzma/container.h
index 48a64365..20632ecb 100644
--- a/src/liblzma/api/lzma/container.h
+++ b/src/liblzma/api/lzma/container.h
@@ -587,7 +587,8 @@ extern LZMA_API(lzma_ret) lzma_stream_buffer_encode(
* output space (6 bytes) to create a valid MicroLZMA stream.
*/
extern LZMA_API(lzma_ret) lzma_microlzma_encoder(
- lzma_stream *strm, const lzma_options_lzma *options);
+ lzma_stream *strm, const lzma_options_lzma *options)
+ lzma_nothrow;
/************
@@ -964,4 +965,4 @@ extern LZMA_API(lzma_ret) lzma_stream_buffer_decode(
extern LZMA_API(lzma_ret) lzma_microlzma_decoder(
lzma_stream *strm, uint64_t comp_size,
uint64_t uncomp_size, lzma_bool uncomp_size_is_exact,
- uint32_t dict_size);
+ uint32_t dict_size) lzma_nothrow;