Compare commits

...
Author SHA1 Message Date
Nigel Tao dee65c0e61 wuffs gen -version=0.3.0-rc.3 2022-10-28 17:29:05 +11:00
Nigel Tao c27250f52f Add -Wall to build-example.sh 2022-10-28 17:17:09 +11:00
Nigel Tao 9445c8b9d0 Guard header declarations on the MODULE_ETC macros 2022-10-28 17:11:14 +11:00
7 changed files with 148 additions and 26 deletions

No files matched your search

+2 -2
View File
@@ -28,8 +28,8 @@ LDFLAGS=${LDFLAGS:-}
# The "-fdata-sections -ffunction-sections -Wl,--gc-sections" produces smaller # The "-fdata-sections -ffunction-sections -Wl,--gc-sections" produces smaller
# binaries. See commit 41fce8a8 "Strip examples of unused data and functions". # binaries. See commit 41fce8a8 "Strip examples of unused data and functions".
CFLAGS=${CFLAGS:--O3 -fdata-sections -ffunction-sections -Wl,--gc-sections} CFLAGS=${CFLAGS:--O3 -fdata-sections -ffunction-sections -Wall -Wl,--gc-sections}
CXXFLAGS=${CXXFLAGS:--O3 -fdata-sections -ffunction-sections -Wl,--gc-sections} CXXFLAGS=${CXXFLAGS:--O3 -fdata-sections -ffunction-sections -Wall -Wl,--gc-sections}
mkdir -p gen/bin mkdir -p gen/bin
+1 -1
View File
@@ -78,7 +78,7 @@ for a C compiler $CC, such as clang or gcc.
#endif #endif
#define WORK_BUFFER_ARRAY_SIZE \ #define WORK_BUFFER_ARRAY_SIZE \
WUFFS_GZIP__DECODER_WORKBUF_LEN_MAX_INCL_WORST_CASE WUFFS_BZIP2__DECODER_WORKBUF_LEN_MAX_INCL_WORST_CASE
uint8_t g_dst_buffer_array[DST_BUFFER_ARRAY_SIZE]; uint8_t g_dst_buffer_array[DST_BUFFER_ARRAY_SIZE];
uint8_t g_src_buffer_array[SRC_BUFFER_ARRAY_SIZE]; uint8_t g_src_buffer_array[SRC_BUFFER_ARRAY_SIZE];
+2 -4
View File
@@ -385,10 +385,8 @@ flush_dst() {
if (n == 0) { if (n == 0) {
break; break;
} }
ssize_t i = fwrite(g_dst.reader_pointer(), 1, n, stdout); size_t i = fwrite(g_dst.reader_pointer(), 1, n, stdout);
if (i >= 0) { g_dst.meta.ri += i;
g_dst.meta.ri += i;
}
if (i < n) { if (i < n) {
return "main: error writing to stdout"; return "main: error writing to stdout";
} }
+2 -4
View File
@@ -215,10 +215,8 @@ flush_dst() {
if (n == 0) { if (n == 0) {
break; break;
} }
ssize_t i = fwrite(g_dst.reader_pointer(), 1, n, stdout); size_t i = fwrite(g_dst.reader_pointer(), 1, n, stdout);
if (i >= 0) { g_dst.meta.ri += i;
g_dst.meta.ri += i;
}
if (i < n) { if (i < n) {
return "main: error writing to stdout"; return "main: error writing to stdout";
} }
+16 -10
View File
@@ -76,15 +76,16 @@ const (
// //
// At the start of a function, these pointers are initialized from an // At the start of a function, these pointers are initialized from an
// io_buffer's fields (ptr, ri, wi, len). For an io_reader: // io_buffer's fields (ptr, ri, wi, len). For an io_reader:
// - io0_etc = ptr // - io0_etc = ptr
// - io1_etc = ptr + ri // - io1_etc = ptr + ri
// - iop_etc = ptr + ri // - iop_etc = ptr + ri
// - io2_etc = ptr + wi // - io2_etc = ptr + wi
//
// and for an io_writer: // and for an io_writer:
// - io0_etc = ptr // - io0_etc = ptr
// - io1_etc = ptr + wi // - io1_etc = ptr + wi
// - iop_etc = ptr + wi // - iop_etc = ptr + wi
// - io2_etc = ptr + len // - io2_etc = ptr + len
const ( const (
io0Prefix = "io0_" // Base. io0Prefix = "io0_" // Base.
io1Prefix = "io1_" // Lower bound. io1Prefix = "io1_" // Lower bound.
@@ -674,6 +675,7 @@ func (g *gen) genIncludes(b *buffer) error {
b.writes("#if defined(WUFFS_IMPLEMENTATION) && !defined(WUFFS_CONFIG__MODULES)\n") b.writes("#if defined(WUFFS_IMPLEMENTATION) && !defined(WUFFS_CONFIG__MODULES)\n")
b.writes("#define WUFFS_CONFIG__MODULES\n") b.writes("#define WUFFS_CONFIG__MODULES\n")
b.printf("#define WUFFS_CONFIG__MODULE__%s\n", g.PKGNAME) b.printf("#define WUFFS_CONFIG__MODULE__%s\n", g.PKGNAME)
b.writes("#define WUFFS_NONMONOLITHIC\n")
b.writes("#endif\n\n") b.writes("#endif\n\n")
usesList := []string(nil) usesList := []string(nil)
@@ -709,7 +711,10 @@ func (g *gen) genIncludes(b *buffer) error {
} }
func (g *gen) genHeader(b *buffer) error { func (g *gen) genHeader(b *buffer) error {
b.writes("\n") module := "!defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__" + g.PKGNAME +
") || defined(WUFFS_NONMONOLITHIC)"
b.printf("#if %s\n\n", module)
b.writes("// ---------------- Status Codes\n\n") b.writes("// ---------------- Status Codes\n\n")
wroteStatus := false wroteStatus := false
@@ -813,6 +818,7 @@ func (g *gen) genHeader(b *buffer) error {
} }
b.writes("#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)\n\n") b.writes("#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)\n\n")
b.printf("#endif // %s\n", module)
return nil return nil
} }
@@ -872,7 +878,7 @@ func (g *gen) genImpl(b *buffer) error {
return err return err
} }
b.printf("#endif // %s\n\n", module) b.printf("#endif // %s\n", module)
return nil return nil
} }
+60
View File
@@ -6344,6 +6344,8 @@ struct wuffs_base__token_decoder__struct {
} // extern "C" } // extern "C"
#endif #endif
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__ADLER32) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
// ---------------- Public Consts // ---------------- Public Consts
@@ -6526,6 +6528,10 @@ struct wuffs_adler32__hasher__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__ADLER32) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__BMP) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_bmp__error__bad_header[]; extern const char wuffs_bmp__error__bad_header[];
@@ -6874,6 +6880,10 @@ struct wuffs_bmp__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__BMP) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__BZIP2) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_bzip2__error__bad_huffman_code_over_subscribed[]; extern const char wuffs_bzip2__error__bad_huffman_code_over_subscribed[];
@@ -7138,6 +7148,10 @@ struct wuffs_bzip2__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__BZIP2) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__CBOR) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_cbor__error__bad_input[]; extern const char wuffs_cbor__error__bad_input[];
@@ -7363,6 +7377,10 @@ struct wuffs_cbor__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__CBOR) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__CRC32) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
// ---------------- Public Consts // ---------------- Public Consts
@@ -7544,6 +7562,10 @@ struct wuffs_crc32__ieee_hasher__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__CRC32) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__DEFLATE) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_deflate__error__bad_huffman_code_over_subscribed[]; extern const char wuffs_deflate__error__bad_huffman_code_over_subscribed[];
@@ -7814,6 +7836,10 @@ struct wuffs_deflate__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__DEFLATE) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__LZW) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_lzw__error__bad_code[]; extern const char wuffs_lzw__error__bad_code[];
@@ -8049,6 +8075,10 @@ struct wuffs_lzw__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__LZW) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__GIF) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_gif__error__bad_extension_label[]; extern const char wuffs_gif__error__bad_extension_label[];
@@ -8471,6 +8501,10 @@ struct wuffs_gif__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__GIF) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__GZIP) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_gzip__error__bad_checksum[]; extern const char wuffs_gzip__error__bad_checksum[];
@@ -8683,6 +8717,10 @@ struct wuffs_gzip__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__GZIP) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__JSON) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_json__error__bad_c0_control_code[]; extern const char wuffs_json__error__bad_c0_control_code[];
@@ -8951,6 +8989,10 @@ struct wuffs_json__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__JSON) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__NIE) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_nie__error__bad_header[]; extern const char wuffs_nie__error__bad_header[];
@@ -9269,6 +9311,10 @@ struct wuffs_nie__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__NIE) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__ZLIB) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_zlib__note__dictionary_required[]; extern const char wuffs_zlib__note__dictionary_required[];
@@ -9510,6 +9556,10 @@ struct wuffs_zlib__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__ZLIB) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__PNG) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_png__error__bad_animation_sequence_number[]; extern const char wuffs_png__error__bad_animation_sequence_number[];
@@ -9980,6 +10030,10 @@ struct wuffs_png__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__PNG) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__TGA) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_tga__error__bad_header[]; extern const char wuffs_tga__error__bad_header[];
@@ -10325,6 +10379,10 @@ struct wuffs_tga__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__TGA) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__WBMP) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_wbmp__error__bad_header[]; extern const char wuffs_wbmp__error__bad_header[];
@@ -10648,6 +10706,8 @@ struct wuffs_wbmp__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__WBMP) || defined(WUFFS_NONMONOLITHIC)
#if defined(__cplusplus) && defined(WUFFS_BASE__HAVE_UNIQUE_PTR) #if defined(__cplusplus) && defined(WUFFS_BASE__HAVE_UNIQUE_PTR)
// ---------------- Auxiliary - Base // ---------------- Auxiliary - Base
+65 -5
View File
@@ -85,15 +85,15 @@ extern "C" {
// each major.minor branch, the commit count should increase monotonically. // each major.minor branch, the commit count should increase monotonically.
// //
// WUFFS_VERSION was overridden by "wuffs gen -version" based on revision // WUFFS_VERSION was overridden by "wuffs gen -version" based on revision
// b0e9efff3f44dc150edb22a27297bfef668035d2 committed on 2022-10-20. // c27250f52fcfb936d4f0410d1199fe24c04b9713 committed on 2022-10-28.
#define WUFFS_VERSION 0x000030000 #define WUFFS_VERSION 0x000030000
#define WUFFS_VERSION_MAJOR 0 #define WUFFS_VERSION_MAJOR 0
#define WUFFS_VERSION_MINOR 3 #define WUFFS_VERSION_MINOR 3
#define WUFFS_VERSION_PATCH 0 #define WUFFS_VERSION_PATCH 0
#define WUFFS_VERSION_PRE_RELEASE_LABEL "rc.2" #define WUFFS_VERSION_PRE_RELEASE_LABEL "rc.3"
#define WUFFS_VERSION_BUILD_METADATA_COMMIT_COUNT 3366 #define WUFFS_VERSION_BUILD_METADATA_COMMIT_COUNT 3369
#define WUFFS_VERSION_BUILD_METADATA_COMMIT_DATE 20221020 #define WUFFS_VERSION_BUILD_METADATA_COMMIT_DATE 20221028
#define WUFFS_VERSION_STRING "0.3.0-rc.2+3366.20221020" #define WUFFS_VERSION_STRING "0.3.0-rc.3+3369.20221028"
// ---------------- Configuration // ---------------- Configuration
@@ -6345,6 +6345,8 @@ struct wuffs_base__token_decoder__struct {
} // extern "C" } // extern "C"
#endif #endif
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__ADLER32) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
// ---------------- Public Consts // ---------------- Public Consts
@@ -6527,6 +6529,10 @@ struct wuffs_adler32__hasher__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__ADLER32) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__BMP) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_bmp__error__bad_header[]; extern const char wuffs_bmp__error__bad_header[];
@@ -6875,6 +6881,10 @@ struct wuffs_bmp__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__BMP) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__BZIP2) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_bzip2__error__bad_huffman_code_over_subscribed[]; extern const char wuffs_bzip2__error__bad_huffman_code_over_subscribed[];
@@ -7139,6 +7149,10 @@ struct wuffs_bzip2__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__BZIP2) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__CBOR) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_cbor__error__bad_input[]; extern const char wuffs_cbor__error__bad_input[];
@@ -7364,6 +7378,10 @@ struct wuffs_cbor__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__CBOR) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__CRC32) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
// ---------------- Public Consts // ---------------- Public Consts
@@ -7545,6 +7563,10 @@ struct wuffs_crc32__ieee_hasher__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__CRC32) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__DEFLATE) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_deflate__error__bad_huffman_code_over_subscribed[]; extern const char wuffs_deflate__error__bad_huffman_code_over_subscribed[];
@@ -7815,6 +7837,10 @@ struct wuffs_deflate__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__DEFLATE) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__LZW) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_lzw__error__bad_code[]; extern const char wuffs_lzw__error__bad_code[];
@@ -8050,6 +8076,10 @@ struct wuffs_lzw__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__LZW) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__GIF) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_gif__error__bad_extension_label[]; extern const char wuffs_gif__error__bad_extension_label[];
@@ -8472,6 +8502,10 @@ struct wuffs_gif__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__GIF) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__GZIP) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_gzip__error__bad_checksum[]; extern const char wuffs_gzip__error__bad_checksum[];
@@ -8684,6 +8718,10 @@ struct wuffs_gzip__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__GZIP) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__JSON) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_json__error__bad_c0_control_code[]; extern const char wuffs_json__error__bad_c0_control_code[];
@@ -8952,6 +8990,10 @@ struct wuffs_json__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__JSON) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__NIE) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_nie__error__bad_header[]; extern const char wuffs_nie__error__bad_header[];
@@ -9270,6 +9312,10 @@ struct wuffs_nie__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__NIE) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__ZLIB) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_zlib__note__dictionary_required[]; extern const char wuffs_zlib__note__dictionary_required[];
@@ -9511,6 +9557,10 @@ struct wuffs_zlib__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__ZLIB) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__PNG) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_png__error__bad_animation_sequence_number[]; extern const char wuffs_png__error__bad_animation_sequence_number[];
@@ -9981,6 +10031,10 @@ struct wuffs_png__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__PNG) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__TGA) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_tga__error__bad_header[]; extern const char wuffs_tga__error__bad_header[];
@@ -10326,6 +10380,10 @@ struct wuffs_tga__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__TGA) || defined(WUFFS_NONMONOLITHIC)
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__WBMP) || defined(WUFFS_NONMONOLITHIC)
// ---------------- Status Codes // ---------------- Status Codes
extern const char wuffs_wbmp__error__bad_header[]; extern const char wuffs_wbmp__error__bad_header[];
@@ -10649,6 +10707,8 @@ struct wuffs_wbmp__decoder__struct {
#endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION) #endif // defined(__cplusplus) || defined(WUFFS_IMPLEMENTATION)
#endif // !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__WBMP) || defined(WUFFS_NONMONOLITHIC)
#if defined(__cplusplus) && defined(WUFFS_BASE__HAVE_UNIQUE_PTR) #if defined(__cplusplus) && defined(WUFFS_BASE__HAVE_UNIQUE_PTR)
// ---------------- Auxiliary - Base // ---------------- Auxiliary - Base