mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Have include guards start with WUFFS_INCLUDE_GUARD
This commit is contained in:
1 parent
11858b9799
commit
25a106903f
22 files changed
+168
-166
No files matched your search
@@ -1,7 +1,7 @@
|
||||
// After editing this file, run "go generate" in the parent directory.
|
||||
|
||||
#ifndef WUFFS_BASE_PRIVATE_H
|
||||
#define WUFFS_BASE_PRIVATE_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
#define WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
@@ -558,4 +558,4 @@ static inline wuffs_base__empty_struct wuffs_base__io_writer__set_mark(
|
||||
return ((wuffs_base__empty_struct){});
|
||||
}
|
||||
|
||||
#endif // WUFFS_BASE_PRIVATE_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
@@ -1,7 +1,7 @@
|
||||
// After editing this file, run "go generate" in the parent directory.
|
||||
|
||||
#ifndef WUFFS_BASE_PUBLIC_H
|
||||
#define WUFFS_BASE_PUBLIC_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
#define WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
@@ -1228,4 +1228,4 @@ static inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(
|
||||
: ((wuffs_base__table_u8){});
|
||||
}
|
||||
|
||||
#endif // WUFFS_BASE_PUBLIC_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
@@ -307,7 +307,7 @@ func (g *gen) generate() ([]byte, error) {
|
||||
}
|
||||
|
||||
func (g *gen) genHeader(b *buffer) error {
|
||||
includeGuard := "WUFFS_" + strings.ToUpper(g.pkgName) + "_H"
|
||||
includeGuard := "WUFFS_INCLUDE_GUARD__" + strings.ToUpper(g.pkgName)
|
||||
b.printf("#ifndef %s\n#define %s\n\n", includeGuard, includeGuard)
|
||||
|
||||
if err := insertBasePublicH(b); err != nil {
|
||||
@@ -676,8 +676,8 @@ func (g *gen) writeStruct(b *buffer, n *a.Struct) error {
|
||||
}
|
||||
|
||||
var (
|
||||
wuffsBasePublicHStart = []byte("#ifndef WUFFS_BASE_PUBLIC_H\n")
|
||||
wuffsBasePublicHEnd = []byte("#endif // WUFFS_BASE_PUBLIC_H\n")
|
||||
wigbpStart = []byte("#ifndef WUFFS_INCLUDE_GUARD__BASE_PUBLIC\n")
|
||||
wigbpEnd = []byte("#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC\n")
|
||||
)
|
||||
|
||||
func (g *gen) writeUse(b *buffer, n *a.Use) error {
|
||||
@@ -711,17 +711,17 @@ func (g *gen) writeUse(b *buffer, n *a.Use) error {
|
||||
b.printf("// ---------------- BEGIN USE %q\n\n", useDirname)
|
||||
|
||||
// Inline the previously generated .h file, stripping out the redundant
|
||||
// copy of the WUFFS_BASE_PUBLIC_H code.
|
||||
if i := bytes.Index(hdr, wuffsBasePublicHStart); i < 0 {
|
||||
// copy of the WUFFS_INCLUDE_GUARD__BASE_PUBLIC code.
|
||||
if i := bytes.Index(hdr, wigbpStart); i < 0 {
|
||||
return fmt.Errorf("use %q: previously generated header %q could not be inlined", useDirname, hdrFilename)
|
||||
} else {
|
||||
b.Write(hdr[:i])
|
||||
hdr = hdr[i+len(wuffsBasePublicHStart):]
|
||||
hdr = hdr[i+len(wigbpStart):]
|
||||
}
|
||||
if i := bytes.Index(hdr, wuffsBasePublicHEnd); i < 0 {
|
||||
if i := bytes.Index(hdr, wigbpEnd); i < 0 {
|
||||
return fmt.Errorf("use %q: previously generated header %q could not be inlined", useDirname, hdrFilename)
|
||||
} else {
|
||||
b.Write(hdr[i+len(wuffsBasePublicHEnd):])
|
||||
b.Write(hdr[i+len(wigbpEnd):])
|
||||
}
|
||||
|
||||
b.writeb('\n')
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
package cgen
|
||||
|
||||
const basePublicH = "" +
|
||||
"#ifndef WUFFS_BASE_PUBLIC_H\n#define WUFFS_BASE_PUBLIC_H\n\n// Copyright 2017 The Wuffs Authors.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// https://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n#include <stdbool.h>\n#include <stdint.h>\n#include <string.h>\n\n// Wuffs assumes that:\n// - converting a uint32_t to a size_t will never overflow.\n// - converting a size_t to a uint64_t will never overflow.\n#if (__WORDSIZE != 32) && (__WORDSIZE != 64)\n#error \"Wuffs requires a word size of either 32 or 64 bits\"\n#endif\n\n// WUFFS_VERSION is the major.minor.patch version, " +
|
||||
"as per https://semver.org/,\n// as a uint64_t. The major number is the high 32 bits. The minor number is the\n// middle 16 bits. The patch number is the low 16 bits. The version extension\n// (such as \"\", \"beta\" or \"rc.1\") is part of the string representation (such as\n// \"1.2.3-beta\") but not the uint64_t representation.\n//\n// All three of major, minor and patch being zero means that this is a\n// work-in-progress version, not a release version, and has no backwards or\n// forwards compatibility guarantees.\n//\n// !! Some code generation programs can override WUFFS_VERSION.\n#define WUFFS_VERSION ((uint64_t)0)\n#define WUFFS_VERSION_MAJOR ((uint64_t)0)\n#define WUFFS_VERSION_MINOR ((uint64_t)0)\n#define WUFFS_VERSION_PATCH ((uint64_t)0)\n#define WUFFS_VERSION_EXTENSION \"\"\n#define WUFFS_VERSION_STRING \"0.0.0\"\n\n// wuffs_base__empty_struct is used when a Wuffs function returns an empty\n// struct. In C, if a function f returns void, you can't say \"x = f()\", but in\n// Wuffs, if a function g returns empty, you can say \"y = g(" +
|
||||
")\".\ntypedef struct {\n} wuffs_base__empty_struct;\n\n// wuffs_base__utility is a placeholder receiver type. It enables what Java\n// calls static methods, as opposed to regular methods.\ntypedef struct {\n} wuffs_base__utility;\n\n" +
|
||||
"#ifndef WUFFS_INCLUDE_GUARD__BASE_PUBLIC\n#define WUFFS_INCLUDE_GUARD__BASE_PUBLIC\n\n// Copyright 2017 The Wuffs Authors.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// https://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n#include <stdbool.h>\n#include <stdint.h>\n#include <string.h>\n\n// Wuffs assumes that:\n// - converting a uint32_t to a size_t will never overflow.\n// - converting a size_t to a uint64_t will never overflow.\n#if (__WORDSIZE != 32) && (__WORDSIZE != 64)\n#error \"Wuffs requires a word size of either 32 or 64 bits\"\n#endif\n\n// WUFFS_VERSION is the m" +
|
||||
"ajor.minor.patch version, as per https://semver.org/,\n// as a uint64_t. The major number is the high 32 bits. The minor number is the\n// middle 16 bits. The patch number is the low 16 bits. The version extension\n// (such as \"\", \"beta\" or \"rc.1\") is part of the string representation (such as\n// \"1.2.3-beta\") but not the uint64_t representation.\n//\n// All three of major, minor and patch being zero means that this is a\n// work-in-progress version, not a release version, and has no backwards or\n// forwards compatibility guarantees.\n//\n// !! Some code generation programs can override WUFFS_VERSION.\n#define WUFFS_VERSION ((uint64_t)0)\n#define WUFFS_VERSION_MAJOR ((uint64_t)0)\n#define WUFFS_VERSION_MINOR ((uint64_t)0)\n#define WUFFS_VERSION_PATCH ((uint64_t)0)\n#define WUFFS_VERSION_EXTENSION \"\"\n#define WUFFS_VERSION_STRING \"0.0.0\"\n\n// wuffs_base__empty_struct is used when a Wuffs function returns an empty\n// struct. In C, if a function f returns void, you can't say \"x = f()\", but in\n// Wuffs, if a function g returns " +
|
||||
"empty, you can say \"y = g()\".\ntypedef struct {\n} wuffs_base__empty_struct;\n\n// wuffs_base__utility is a placeholder receiver type. It enables what Java\n// calls static methods, as opposed to regular methods.\ntypedef struct {\n} wuffs_base__utility;\n\n" +
|
||||
"" +
|
||||
"// --------\n\n// A status code is either zero (OK), positive (a recoverable suspension or\n// pause in processing) or negative (a non-recoverable error). Its bits:\n// - bit 31 (the sign bit) indicates unrecoverable-ness: an error.\n// - bits 30 .. 24 are a package-namespaced numeric code\n// - bits 23 .. 21 are reserved.\n// - bits 20 .. 0 are the packageid (a namespace) as a base38 value.\n//\n// Do not manipulate these bits directly; they are private implementation\n// details. Use methods such as wuffs_base__status__is_error instead.\ntypedef int32_t wuffs_base__status;\n\n// !! INSERT wuffs_base__status names.\n\nstatic inline bool wuffs_base__status__is_error(wuffs_base__status s) {\n return s < 0;\n}\n\nstatic inline bool wuffs_base__status__is_ok(wuffs_base__status s) {\n return s == 0;\n}\n\nstatic inline bool wuffs_base__status__is_suspension(wuffs_base__status s) {\n return s > 0;\n}\n\nconst char* wuffs_base__status__string(wuffs_base__status s);\n\n" +
|
||||
"" +
|
||||
@@ -89,14 +89,14 @@ const basePublicH = "" +
|
||||
"end,\n wuffs_base__animation_disposal disposal,\n wuffs_base__slice_u8 palette) {\n if (!b) {\n return;\n }\n\n // Clip the dirty_rect to the image bounds.\n dirty_rect.max_excl_x = wuffs_base__u32__min(\n dirty_rect.max_excl_x, b->private_impl.config.private_impl.width);\n dirty_rect.max_excl_y = wuffs_base__u32__min(\n dirty_rect.max_excl_y, b->private_impl.config.private_impl.height);\n b->private_impl.dirty_rect = dirty_rect;\n\n b->private_impl.duration = duration;\n b->private_impl.blend = blend;\n b->private_impl.disposal = disposal;\n b->private_impl.palette_changed = palette.ptr && (palette.len == 1024);\n if (b->private_impl.palette_changed) {\n memmove(b->private_impl.palette, palette.ptr, 1024);\n }\n}\n\n// wuffs_base__image_buffer__loop returns whether the image decoder should loop\n// back to the beginning of the animation, assuming that we've reached the end\n// of the encoded stream. If so, it increments b's count of the animation loops\n// played so far.\nstatic inline bool wuffs_base" +
|
||||
"__image_buffer__loop(wuffs_base__image_buffer* b) {\n if (!b) {\n return false;\n }\n uint32_t n = b->private_impl.config.private_impl.num_loops;\n if (n == 0) {\n return true;\n }\n if (b->private_impl.loop_count < n - 1) {\n b->private_impl.loop_count++;\n return true;\n }\n return false;\n}\n\n// wuffs_base__image_config returns the overall configuration for this frame.\nstatic inline wuffs_base__image_config* wuffs_base__image_buffer__image_config(\n wuffs_base__image_buffer* b) {\n return b ? &b->private_impl.config : NULL;\n}\n\n// wuffs_base__image_buffer__dirty_rect returns an upper bound for what part of\n// this frame's pixels differs from the previous frame.\nstatic inline wuffs_base__rect_ie_u32 wuffs_base__image_buffer__dirty_rect(\n wuffs_base__image_buffer* b) {\n return b ? b->private_impl.dirty_rect : ((wuffs_base__rect_ie_u32){0});\n}\n\n// wuffs_base__image_buffer__duration returns the amount of time to display\n// this frame. Zero means to display forever - a still (non-animated) image.\nsta" +
|
||||
"tic inline wuffs_base__flicks wuffs_base__image_buffer__duration(\n wuffs_base__image_buffer* b) {\n return b ? b->private_impl.duration : 0;\n}\n\n// wuffs_base__image_buffer__blend returns, for a transparent image, whether to\n// blend this frame with the existing canvas.\n//\n// In Porter-Duff compositing operator terminology, false means \"src\" and true\n// means \"src over dst\".\nstatic inline bool wuffs_base__image_buffer__blend(\n wuffs_base__image_buffer* b) {\n return b && b->private_impl.blend;\n}\n\n// wuffs_base__image_buffer__disposal returns, for an animated image, how to\n// dispose of this frame after displaying it.\nstatic inline wuffs_base__animation_disposal wuffs_base__image_buffer__disposal(\n wuffs_base__image_buffer* b) {\n return b ? b->private_impl.disposal : 0;\n}\n\n// wuffs_base__image_buffer__palette_changed returns whether this frame's\n// palette differs from the previous frame. It is conservative and may return\n// false positives (but never false negatives).\nstatic inline bool wuffs_base__i" +
|
||||
"mage_buffer__palette_changed(\n wuffs_base__image_buffer* b) {\n return b && b->private_impl.palette_changed;\n}\n\n// wuffs_base__image_buffer__palette returns the palette that the pixel data\n// can index. The backing array is inside b and has length 1024.\nstatic inline wuffs_base__slice_u8 wuffs_base__image_buffer__palette(\n wuffs_base__image_buffer* b) {\n return b ? ((wuffs_base__slice_u8){.ptr = b->private_impl.palette,\n .len = 1024})\n : ((wuffs_base__slice_u8){});\n}\n\nstatic inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(\n wuffs_base__image_buffer* b,\n uint32_t p) {\n return (b && (p < WUFFS_BASE__PIXEL_FORMAT__NUM_PLANES_MAX))\n ? b->private_impl.pixbuf.planes[p]\n : ((wuffs_base__table_u8){});\n}\n\n#endif // WUFFS_BASE_PUBLIC_H\n" +
|
||||
"mage_buffer__palette_changed(\n wuffs_base__image_buffer* b) {\n return b && b->private_impl.palette_changed;\n}\n\n// wuffs_base__image_buffer__palette returns the palette that the pixel data\n// can index. The backing array is inside b and has length 1024.\nstatic inline wuffs_base__slice_u8 wuffs_base__image_buffer__palette(\n wuffs_base__image_buffer* b) {\n return b ? ((wuffs_base__slice_u8){.ptr = b->private_impl.palette,\n .len = 1024})\n : ((wuffs_base__slice_u8){});\n}\n\nstatic inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(\n wuffs_base__image_buffer* b,\n uint32_t p) {\n return (b && (p < WUFFS_BASE__PIXEL_FORMAT__NUM_PLANES_MAX))\n ? b->private_impl.pixbuf.planes[p]\n : ((wuffs_base__table_u8){});\n}\n\n#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC\n" +
|
||||
""
|
||||
|
||||
const basePrivateH = "" +
|
||||
"#ifndef WUFFS_BASE_PRIVATE_H\n#define WUFFS_BASE_PRIVATE_H\n\n// Copyright 2017 The Wuffs Authors.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// https://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n#define WUFFS_BASE__IGNORE_POTENTIALLY_UNUSED_VARIABLE(x) (void)(x)\n\n// WUFFS_BASE__MAGIC is a magic number to check that initializers are called.\n// It's not foolproof, given C doesn't automatically zero memory before use,\n// but it should catch 99.99% of cases.\n//\n// Its (non-zero) value is arbitrary, based on md5sum(\"wuffs\").\n#define WUFFS_BASE__MAGIC ((uint32_t)0" +
|
||||
"x3CCB6C71)\n\n// Denote intentional fallthroughs for -Wimplicit-fallthrough.\n//\n// The order matters here. Clang also defines \"__GNUC__\".\n#if defined(__clang__) && __cplusplus >= 201103L\n#define WUFFS_BASE__FALLTHROUGH [[clang::fallthrough]]\n#elif !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 7)\n#define WUFFS_BASE__FALLTHROUGH __attribute__((fallthrough))\n#else\n#define WUFFS_BASE__FALLTHROUGH\n#endif\n\n// Use switch cases for coroutine suspension points, similar to the technique\n// in https://www.chiark.greenend.org.uk/~sgtatham/coroutines.html\n//\n// We use trivial macros instead of an explicit assignment and case statement\n// so that clang-format doesn't get confused by the unusual \"case\"s.\n#define WUFFS_BASE__COROUTINE_SUSPENSION_POINT_0 case 0:;\n#define WUFFS_BASE__COROUTINE_SUSPENSION_POINT(n) \\\n coro_susp_point = n; \\\n WUFFS_BASE__FALLTHROUGH; \\\n case n:;\n\n#define WUFFS_BASE__COROUTINE_SUSPENSION_POINT_MAYBE_SUSPEND(n) \\\n if (status < 0) { " +
|
||||
" \\\n goto exit; \\\n } else if (status == 0) { \\\n goto ok; \\\n } \\\n coro_susp_point = n; \\\n goto suspend; \\\n case n:;\n\n// Clang also defines \"__GNUC__\".\n#if defined(__GNUC__)\n#define WUFFS_BASE__LIKELY(expr) (__builtin_expect(!!(expr), 1))\n#define WUFFS_BASE__UNLIKELY(expr) (__builtin_expect(!!(expr), 0))\n#else\n#define WUFFS_BASE__LIKELY(expr) (expr)\n#define WUFFS_BASE__UNLIKELY(expr) (expr)\n#endif\n\n// The helpers below are functions, instead of macros, because their arguments\n// can be an expression that we shouldn't evaluate more than once.\n//\n// They are static, so that linking multiple wuffs .o files won't complain about\n// duplicate function definitions.\n//\n// They are explicitly" +
|
||||
" marked inline, even if modern compilers don't use the\n// inline attribute to guide optimizations such as inlining, to avoid the\n// -Wunused-function warning, and we like to compile with -Wall -Werror.\n\nstatic inline wuffs_base__empty_struct wuffs_base__return_empty_struct() {\n return ((wuffs_base__empty_struct){});\n}\n\n" +
|
||||
"#ifndef WUFFS_INCLUDE_GUARD__BASE_PRIVATE\n#define WUFFS_INCLUDE_GUARD__BASE_PRIVATE\n\n// Copyright 2017 The Wuffs Authors.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// https://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n#define WUFFS_BASE__IGNORE_POTENTIALLY_UNUSED_VARIABLE(x) (void)(x)\n\n// WUFFS_BASE__MAGIC is a magic number to check that initializers are called.\n// It's not foolproof, given C doesn't automatically zero memory before use,\n// but it should catch 99.99% of cases.\n//\n// Its (non-zero) value is arbitrary, based on md5sum(\"wuffs\").\n#define WUFF" +
|
||||
"S_BASE__MAGIC ((uint32_t)0x3CCB6C71)\n\n// Denote intentional fallthroughs for -Wimplicit-fallthrough.\n//\n// The order matters here. Clang also defines \"__GNUC__\".\n#if defined(__clang__) && __cplusplus >= 201103L\n#define WUFFS_BASE__FALLTHROUGH [[clang::fallthrough]]\n#elif !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 7)\n#define WUFFS_BASE__FALLTHROUGH __attribute__((fallthrough))\n#else\n#define WUFFS_BASE__FALLTHROUGH\n#endif\n\n// Use switch cases for coroutine suspension points, similar to the technique\n// in https://www.chiark.greenend.org.uk/~sgtatham/coroutines.html\n//\n// We use trivial macros instead of an explicit assignment and case statement\n// so that clang-format doesn't get confused by the unusual \"case\"s.\n#define WUFFS_BASE__COROUTINE_SUSPENSION_POINT_0 case 0:;\n#define WUFFS_BASE__COROUTINE_SUSPENSION_POINT(n) \\\n coro_susp_point = n; \\\n WUFFS_BASE__FALLTHROUGH; \\\n case n:;\n\n#define WUFFS_BASE__COROUTINE_SUSPENSION_POINT_MAYBE_SUSPEND(n) " +
|
||||
"\\\n if (status < 0) { \\\n goto exit; \\\n } else if (status == 0) { \\\n goto ok; \\\n } \\\n coro_susp_point = n; \\\n goto suspend; \\\n case n:;\n\n// Clang also defines \"__GNUC__\".\n#if defined(__GNUC__)\n#define WUFFS_BASE__LIKELY(expr) (__builtin_expect(!!(expr), 1))\n#define WUFFS_BASE__UNLIKELY(expr) (__builtin_expect(!!(expr), 0))\n#else\n#define WUFFS_BASE__LIKELY(expr) (expr)\n#define WUFFS_BASE__UNLIKELY(expr) (expr)\n#endif\n\n// The helpers below are functions, instead of macros, because their arguments\n// can be an expression that we shouldn't evaluate more than once.\n//\n// They are static, so that linking multiple wuffs .o files won't complain about\n// duplicate function definitions." +
|
||||
"\n//\n// They are explicitly marked inline, even if modern compilers don't use the\n// inline attribute to guide optimizations such as inlining, to avoid the\n// -Wunused-function warning, and we like to compile with -Wall -Werror.\n\nstatic inline wuffs_base__empty_struct wuffs_base__return_empty_struct() {\n return ((wuffs_base__empty_struct){});\n}\n\n" +
|
||||
"" +
|
||||
"// ---------------- Numeric Types\n\nstatic inline uint16_t wuffs_base__load_u16be(uint8_t* p) {\n return ((uint16_t)(p[0]) << 8) | ((uint16_t)(p[1]) << 0);\n}\n\nstatic inline uint16_t wuffs_base__load_u16le(uint8_t* p) {\n return ((uint16_t)(p[0]) << 0) | ((uint16_t)(p[1]) << 8);\n}\n\nstatic inline uint32_t wuffs_base__load_u24be(uint8_t* p) {\n return ((uint32_t)(p[0]) << 16) | ((uint32_t)(p[1]) << 8) |\n ((uint32_t)(p[2]) << 0);\n}\n\nstatic inline uint32_t wuffs_base__load_u24le(uint8_t* p) {\n return ((uint32_t)(p[0]) << 0) | ((uint32_t)(p[1]) << 8) |\n ((uint32_t)(p[2]) << 16);\n}\n\nstatic inline uint32_t wuffs_base__load_u32be(uint8_t* p) {\n return ((uint32_t)(p[0]) << 24) | ((uint32_t)(p[1]) << 16) |\n ((uint32_t)(p[2]) << 8) | ((uint32_t)(p[3]) << 0);\n}\n\nstatic inline uint32_t wuffs_base__load_u32le(uint8_t* p) {\n return ((uint32_t)(p[0]) << 0) | ((uint32_t)(p[1]) << 8) |\n ((uint32_t)(p[2]) << 16) | ((uint32_t)(p[3]) << 24);\n}\n\nstatic inline uint64_t wuffs_base__load_u40be(uint8_t" +
|
||||
"* p) {\n return ((uint64_t)(p[0]) << 32) | ((uint64_t)(p[1]) << 24) |\n ((uint64_t)(p[2]) << 16) | ((uint64_t)(p[3]) << 8) |\n ((uint64_t)(p[4]) << 0);\n}\n\nstatic inline uint64_t wuffs_base__load_u40le(uint8_t* p) {\n return ((uint64_t)(p[0]) << 0) | ((uint64_t)(p[1]) << 8) |\n ((uint64_t)(p[2]) << 16) | ((uint64_t)(p[3]) << 24) |\n ((uint64_t)(p[4]) << 32);\n}\n\nstatic inline uint64_t wuffs_base__load_u48be(uint8_t* p) {\n return ((uint64_t)(p[0]) << 40) | ((uint64_t)(p[1]) << 32) |\n ((uint64_t)(p[2]) << 24) | ((uint64_t)(p[3]) << 16) |\n ((uint64_t)(p[4]) << 8) | ((uint64_t)(p[5]) << 0);\n}\n\nstatic inline uint64_t wuffs_base__load_u48le(uint8_t* p) {\n return ((uint64_t)(p[0]) << 0) | ((uint64_t)(p[1]) << 8) |\n ((uint64_t)(p[2]) << 16) | ((uint64_t)(p[3]) << 24) |\n ((uint64_t)(p[4]) << 32) | ((uint64_t)(p[5]) << 40);\n}\n\nstatic inline uint64_t wuffs_base__load_u56be(uint8_t* p) {\n return ((uint64_t)(p[0]) << 48) | ((uint64_t)(p[1]) << 40) |\n ((u" +
|
||||
@@ -118,7 +118,8 @@ const basePrivateH = "" +
|
||||
" by 3 seems best for the std/deflate benchmarks, but that\n // is mostly because 3 is the minimum length for the deflate format. This\n // function implementation shouldn't overfit to that one format. Perhaps the\n // copy_from_history32 Wuffs method should also take an unroll hint argument,\n // and the cgen can look if that argument is the constant expression '3'.\n //\n // See also wuffs_base__io_writer__copy_from_history32__bco below.\n //\n // Alternatively, or additionally, have a sloppy_copy_from_history32 method\n // that copies 8 bytes at a time, possibly writing more than length bytes?\n for (; n >= 3; n -= 3) {\n *ptr++ = *start++;\n *ptr++ = *start++;\n *ptr++ = *start++;\n }\n for (; n; n--) {\n *ptr++ = *start++;\n }\n *ptr_ptr = ptr;\n return length;\n}\n\n// wuffs_base__io_writer__copy_from_history32__bco is a Bounds Check Optimized\n// version of the wuffs_base__io_writer__copy_from_history32 function above.\n// The caller needs to prove that:\n// - distance > 0\n// - distance <= (*ptr_pt" +
|
||||
"r - start)\n// - length <= (end - *ptr_ptr)\nstatic inline uint32_t wuffs_base__io_writer__copy_from_history32__bco(\n uint8_t** ptr_ptr,\n uint8_t* start,\n uint8_t* end,\n uint32_t distance,\n uint32_t length) {\n uint8_t* ptr = *ptr_ptr;\n start = ptr - distance;\n uint32_t n = length;\n for (; n >= 3; n -= 3) {\n *ptr++ = *start++;\n *ptr++ = *start++;\n *ptr++ = *start++;\n }\n for (; n; n--) {\n *ptr++ = *start++;\n }\n *ptr_ptr = ptr;\n return length;\n}\n\nstatic inline uint32_t wuffs_base__io_writer__copy_from_reader32(\n uint8_t** ptr_ioptr_w,\n uint8_t* iobounds1_w,\n uint8_t** ptr_ioptr_r,\n uint8_t* iobounds1_r,\n uint32_t length) {\n uint8_t* ioptr_w = *ptr_ioptr_w;\n size_t n = length;\n if (n > iobounds1_w - ioptr_w) {\n n = iobounds1_w - ioptr_w;\n }\n uint8_t* ioptr_r = *ptr_ioptr_r;\n if (n > iobounds1_r - ioptr_r) {\n n = iobounds1_r - ioptr_r;\n }\n if (n > 0) {\n memmove(ioptr_w, ioptr_r, n);\n *ptr_ioptr_w += n;\n *ptr_ioptr_r += n;\n }\n return " +
|
||||
"n;\n}\n\nstatic inline uint64_t wuffs_base__io_writer__copy_from_slice(\n uint8_t** ptr_ioptr_w,\n uint8_t* iobounds1_w,\n wuffs_base__slice_u8 src) {\n uint8_t* ioptr_w = *ptr_ioptr_w;\n size_t n = src.len;\n if (n > iobounds1_w - ioptr_w) {\n n = iobounds1_w - ioptr_w;\n }\n if (n > 0) {\n memmove(ioptr_w, src.ptr, n);\n *ptr_ioptr_w += n;\n }\n return n;\n}\n\nstatic inline uint32_t wuffs_base__io_writer__copy_from_slice32(\n uint8_t** ptr_ioptr_w,\n uint8_t* iobounds1_w,\n wuffs_base__slice_u8 src,\n uint32_t length) {\n uint8_t* ioptr_w = *ptr_ioptr_w;\n size_t n = src.len;\n if (n > length) {\n n = length;\n }\n if (n > iobounds1_w - ioptr_w) {\n n = iobounds1_w - ioptr_w;\n }\n if (n > 0) {\n memmove(ioptr_w, src.ptr, n);\n *ptr_ioptr_w += n;\n }\n return n;\n}\n\nstatic inline wuffs_base__empty_struct wuffs_base__io_reader__set_limit(\n wuffs_base__io_reader* o,\n uint8_t* ioptr_r,\n uint64_t limit) {\n if (o && ((o->private_impl.bounds[1] - ioptr_r) > limit)) {\n o->private" +
|
||||
"_impl.bounds[1] = ioptr_r + limit;\n }\n return ((wuffs_base__empty_struct){});\n}\n\nstatic inline wuffs_base__empty_struct wuffs_base__io_reader__set_mark(\n wuffs_base__io_reader* o,\n uint8_t* mark) {\n o->private_impl.bounds[0] = mark;\n return ((wuffs_base__empty_struct){});\n}\n\nstatic inline wuffs_base__empty_struct wuffs_base__io_writer__set(\n wuffs_base__io_writer* o,\n wuffs_base__io_buffer* b,\n uint8_t** ioptr1_ptr,\n uint8_t** ioptr2_ptr,\n wuffs_base__slice_u8 s) {\n b->ptr = s.ptr;\n b->len = s.len;\n b->wi = 0;\n b->ri = 0;\n b->closed = false;\n o->private_impl.buf = b;\n o->private_impl.bounds[0] = s.ptr;\n o->private_impl.bounds[1] = s.ptr + s.len;\n *ioptr1_ptr = s.ptr;\n *ioptr2_ptr = s.ptr + s.len;\n return ((wuffs_base__empty_struct){});\n}\n\nstatic inline wuffs_base__empty_struct wuffs_base__io_writer__set_mark(\n wuffs_base__io_writer* o,\n uint8_t* mark) {\n o->private_impl.bounds[0] = mark;\n return ((wuffs_base__empty_struct){});\n}\n\n#endif // WUFFS_BASE_PRIVATE_H\n" +
|
||||
"_impl.bounds[1] = ioptr_r + limit;\n }\n return ((wuffs_base__empty_struct){});\n}\n\nstatic inline wuffs_base__empty_struct wuffs_base__io_reader__set_mark(\n wuffs_base__io_reader* o,\n uint8_t* mark) {\n o->private_impl.bounds[0] = mark;\n return ((wuffs_base__empty_struct){});\n}\n\nstatic inline wuffs_base__empty_struct wuffs_base__io_writer__set(\n wuffs_base__io_writer* o,\n wuffs_base__io_buffer* b,\n uint8_t** ioptr1_ptr,\n uint8_t** ioptr2_ptr,\n wuffs_base__slice_u8 s) {\n b->ptr = s.ptr;\n b->len = s.len;\n b->wi = 0;\n b->ri = 0;\n b->closed = false;\n o->private_impl.buf = b;\n o->private_impl.bounds[0] = s.ptr;\n o->private_impl.bounds[1] = s.ptr + s.len;\n *ioptr1_ptr = s.ptr;\n *ioptr2_ptr = s.ptr + s.len;\n return ((wuffs_base__empty_struct){});\n}\n\nstatic inline wuffs_base__empty_struct wuffs_base__io_writer__set_mark(\n wuffs_base__io_writer* o,\n uint8_t* mark) {\n o->private_impl.bounds[0] = mark;\n return ((wuffs_base__empty_struct){});\n}\n\n#endif // WUFFS_INCLUDE_GUARD__BASE" +
|
||||
"_PRIVATE\n" +
|
||||
""
|
||||
|
||||
const baseImplC = "" +
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifndef WUFFS_BASE_PUBLIC_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
#error "Wuffs' .c or .h files need to be included before this file"
|
||||
#endif
|
||||
|
||||
|
||||
+3
-3
@@ -14,8 +14,8 @@
|
||||
|
||||
// Code generated by wuffs-c. DO NOT EDIT.
|
||||
|
||||
#ifndef WUFFS_BASE_PUBLIC_H
|
||||
#define WUFFS_BASE_PUBLIC_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
#define WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
@@ -1259,7 +1259,7 @@ static inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(
|
||||
: ((wuffs_base__table_u8){});
|
||||
}
|
||||
|
||||
#endif // WUFFS_BASE_PUBLIC_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
static const char wuffs_base__status__string_data[] = {
|
||||
0x00, 0x6F, 0x6B, 0x00, 0x65, 0x6E, 0x64, 0x20, 0x6F, 0x66, 0x20, 0x64,
|
||||
|
||||
+9
-9
@@ -1,10 +1,10 @@
|
||||
#ifndef WUFFS_ADLER32_H
|
||||
#define WUFFS_ADLER32_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__ADLER32
|
||||
#define WUFFS_INCLUDE_GUARD__ADLER32
|
||||
|
||||
// Code generated by wuffs-c. DO NOT EDIT.
|
||||
|
||||
#ifndef WUFFS_BASE_PUBLIC_H
|
||||
#define WUFFS_BASE_PUBLIC_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
#define WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
@@ -1248,7 +1248,7 @@ static inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(
|
||||
: ((wuffs_base__table_u8){});
|
||||
}
|
||||
|
||||
#endif // WUFFS_BASE_PUBLIC_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// ---------------- Use Declarations
|
||||
|
||||
@@ -1304,12 +1304,12 @@ uint32_t wuffs_adler32__hasher__update(wuffs_adler32__hasher* self,
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_ADLER32_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__ADLER32
|
||||
|
||||
// C HEADER ENDS HERE.
|
||||
|
||||
#ifndef WUFFS_BASE_PRIVATE_H
|
||||
#define WUFFS_BASE_PRIVATE_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
#define WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
@@ -1866,7 +1866,7 @@ static inline wuffs_base__empty_struct wuffs_base__io_writer__set_mark(
|
||||
return ((wuffs_base__empty_struct){});
|
||||
}
|
||||
|
||||
#endif // WUFFS_BASE_PRIVATE_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
|
||||
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__ADLER32)
|
||||
|
||||
|
||||
+9
-9
@@ -1,10 +1,10 @@
|
||||
#ifndef WUFFS_CRC32_H
|
||||
#define WUFFS_CRC32_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__CRC32
|
||||
#define WUFFS_INCLUDE_GUARD__CRC32
|
||||
|
||||
// Code generated by wuffs-c. DO NOT EDIT.
|
||||
|
||||
#ifndef WUFFS_BASE_PUBLIC_H
|
||||
#define WUFFS_BASE_PUBLIC_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
#define WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
@@ -1248,7 +1248,7 @@ static inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(
|
||||
: ((wuffs_base__table_u8){});
|
||||
}
|
||||
|
||||
#endif // WUFFS_BASE_PUBLIC_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// ---------------- Use Declarations
|
||||
|
||||
@@ -1304,12 +1304,12 @@ uint32_t wuffs_crc32__ieee_hasher__update(wuffs_crc32__ieee_hasher* self,
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_CRC32_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__CRC32
|
||||
|
||||
// C HEADER ENDS HERE.
|
||||
|
||||
#ifndef WUFFS_BASE_PRIVATE_H
|
||||
#define WUFFS_BASE_PRIVATE_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
#define WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
@@ -1866,7 +1866,7 @@ static inline wuffs_base__empty_struct wuffs_base__io_writer__set_mark(
|
||||
return ((wuffs_base__empty_struct){});
|
||||
}
|
||||
|
||||
#endif // WUFFS_BASE_PRIVATE_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
|
||||
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__CRC32)
|
||||
|
||||
|
||||
+9
-9
@@ -1,10 +1,10 @@
|
||||
#ifndef WUFFS_DEFLATE_H
|
||||
#define WUFFS_DEFLATE_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__DEFLATE
|
||||
#define WUFFS_INCLUDE_GUARD__DEFLATE
|
||||
|
||||
// Code generated by wuffs-c. DO NOT EDIT.
|
||||
|
||||
#ifndef WUFFS_BASE_PUBLIC_H
|
||||
#define WUFFS_BASE_PUBLIC_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
#define WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
@@ -1248,7 +1248,7 @@ static inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(
|
||||
: ((wuffs_base__table_u8){});
|
||||
}
|
||||
|
||||
#endif // WUFFS_BASE_PUBLIC_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// ---------------- Use Declarations
|
||||
|
||||
@@ -1392,12 +1392,12 @@ wuffs_base__status wuffs_deflate__decoder__decode(wuffs_deflate__decoder* self,
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_DEFLATE_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__DEFLATE
|
||||
|
||||
// C HEADER ENDS HERE.
|
||||
|
||||
#ifndef WUFFS_BASE_PRIVATE_H
|
||||
#define WUFFS_BASE_PRIVATE_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
#define WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
@@ -1954,7 +1954,7 @@ static inline wuffs_base__empty_struct wuffs_base__io_writer__set_mark(
|
||||
return ((wuffs_base__empty_struct){});
|
||||
}
|
||||
|
||||
#endif // WUFFS_BASE_PRIVATE_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
|
||||
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__DEFLATE)
|
||||
|
||||
|
||||
+12
-12
@@ -1,10 +1,10 @@
|
||||
#ifndef WUFFS_GIF_H
|
||||
#define WUFFS_GIF_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__GIF
|
||||
#define WUFFS_INCLUDE_GUARD__GIF
|
||||
|
||||
// Code generated by wuffs-c. DO NOT EDIT.
|
||||
|
||||
#ifndef WUFFS_BASE_PUBLIC_H
|
||||
#define WUFFS_BASE_PUBLIC_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
#define WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
@@ -1248,14 +1248,14 @@ static inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(
|
||||
: ((wuffs_base__table_u8){});
|
||||
}
|
||||
|
||||
#endif // WUFFS_BASE_PUBLIC_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// ---------------- Use Declarations
|
||||
|
||||
// ---------------- BEGIN USE "std/lzw"
|
||||
|
||||
#ifndef WUFFS_LZW_H
|
||||
#define WUFFS_LZW_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__LZW
|
||||
#define WUFFS_INCLUDE_GUARD__LZW
|
||||
|
||||
// Code generated by wuffs-c. DO NOT EDIT.
|
||||
|
||||
@@ -1337,7 +1337,7 @@ wuffs_base__status wuffs_lzw__decoder__decode(wuffs_lzw__decoder* self,
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_LZW_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__LZW
|
||||
|
||||
// ---------------- END USE "std/lzw"
|
||||
|
||||
@@ -1509,12 +1509,12 @@ wuffs_base__status wuffs_gif__decoder__decode_up_to_id_part1(
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_GIF_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__GIF
|
||||
|
||||
// C HEADER ENDS HERE.
|
||||
|
||||
#ifndef WUFFS_BASE_PRIVATE_H
|
||||
#define WUFFS_BASE_PRIVATE_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
#define WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
@@ -2071,7 +2071,7 @@ static inline wuffs_base__empty_struct wuffs_base__io_writer__set_mark(
|
||||
return ((wuffs_base__empty_struct){});
|
||||
}
|
||||
|
||||
#endif // WUFFS_BASE_PRIVATE_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
|
||||
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__GIF)
|
||||
|
||||
|
||||
+15
-15
@@ -1,10 +1,10 @@
|
||||
#ifndef WUFFS_GZIP_H
|
||||
#define WUFFS_GZIP_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__GZIP
|
||||
#define WUFFS_INCLUDE_GUARD__GZIP
|
||||
|
||||
// Code generated by wuffs-c. DO NOT EDIT.
|
||||
|
||||
#ifndef WUFFS_BASE_PUBLIC_H
|
||||
#define WUFFS_BASE_PUBLIC_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
#define WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
@@ -1248,14 +1248,14 @@ static inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(
|
||||
: ((wuffs_base__table_u8){});
|
||||
}
|
||||
|
||||
#endif // WUFFS_BASE_PUBLIC_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// ---------------- Use Declarations
|
||||
|
||||
// ---------------- BEGIN USE "std/crc32"
|
||||
|
||||
#ifndef WUFFS_CRC32_H
|
||||
#define WUFFS_CRC32_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__CRC32
|
||||
#define WUFFS_INCLUDE_GUARD__CRC32
|
||||
|
||||
// Code generated by wuffs-c. DO NOT EDIT.
|
||||
|
||||
@@ -1313,14 +1313,14 @@ uint32_t wuffs_crc32__ieee_hasher__update(wuffs_crc32__ieee_hasher* self,
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_CRC32_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__CRC32
|
||||
|
||||
// ---------------- END USE "std/crc32"
|
||||
|
||||
// ---------------- BEGIN USE "std/deflate"
|
||||
|
||||
#ifndef WUFFS_DEFLATE_H
|
||||
#define WUFFS_DEFLATE_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__DEFLATE
|
||||
#define WUFFS_INCLUDE_GUARD__DEFLATE
|
||||
|
||||
// Code generated by wuffs-c. DO NOT EDIT.
|
||||
|
||||
@@ -1466,7 +1466,7 @@ wuffs_base__status wuffs_deflate__decoder__decode(wuffs_deflate__decoder* self,
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_DEFLATE_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__DEFLATE
|
||||
|
||||
// ---------------- END USE "std/deflate"
|
||||
|
||||
@@ -1544,12 +1544,12 @@ wuffs_base__status wuffs_gzip__decoder__decode(wuffs_gzip__decoder* self,
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_GZIP_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__GZIP
|
||||
|
||||
// C HEADER ENDS HERE.
|
||||
|
||||
#ifndef WUFFS_BASE_PRIVATE_H
|
||||
#define WUFFS_BASE_PRIVATE_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
#define WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
@@ -2106,7 +2106,7 @@ static inline wuffs_base__empty_struct wuffs_base__io_writer__set_mark(
|
||||
return ((wuffs_base__empty_struct){});
|
||||
}
|
||||
|
||||
#endif // WUFFS_BASE_PRIVATE_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
|
||||
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__GZIP)
|
||||
|
||||
|
||||
+9
-9
@@ -1,10 +1,10 @@
|
||||
#ifndef WUFFS_LZW_H
|
||||
#define WUFFS_LZW_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__LZW
|
||||
#define WUFFS_INCLUDE_GUARD__LZW
|
||||
|
||||
// Code generated by wuffs-c. DO NOT EDIT.
|
||||
|
||||
#ifndef WUFFS_BASE_PUBLIC_H
|
||||
#define WUFFS_BASE_PUBLIC_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
#define WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
@@ -1248,7 +1248,7 @@ static inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(
|
||||
: ((wuffs_base__table_u8){});
|
||||
}
|
||||
|
||||
#endif // WUFFS_BASE_PUBLIC_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// ---------------- Use Declarations
|
||||
|
||||
@@ -1328,12 +1328,12 @@ wuffs_base__status wuffs_lzw__decoder__decode(wuffs_lzw__decoder* self,
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_LZW_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__LZW
|
||||
|
||||
// C HEADER ENDS HERE.
|
||||
|
||||
#ifndef WUFFS_BASE_PRIVATE_H
|
||||
#define WUFFS_BASE_PRIVATE_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
#define WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
@@ -1890,7 +1890,7 @@ static inline wuffs_base__empty_struct wuffs_base__io_writer__set_mark(
|
||||
return ((wuffs_base__empty_struct){});
|
||||
}
|
||||
|
||||
#endif // WUFFS_BASE_PRIVATE_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
|
||||
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__LZW)
|
||||
|
||||
|
||||
+15
-15
@@ -1,10 +1,10 @@
|
||||
#ifndef WUFFS_ZLIB_H
|
||||
#define WUFFS_ZLIB_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__ZLIB
|
||||
#define WUFFS_INCLUDE_GUARD__ZLIB
|
||||
|
||||
// Code generated by wuffs-c. DO NOT EDIT.
|
||||
|
||||
#ifndef WUFFS_BASE_PUBLIC_H
|
||||
#define WUFFS_BASE_PUBLIC_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
#define WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
@@ -1248,14 +1248,14 @@ static inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(
|
||||
: ((wuffs_base__table_u8){});
|
||||
}
|
||||
|
||||
#endif // WUFFS_BASE_PUBLIC_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// ---------------- Use Declarations
|
||||
|
||||
// ---------------- BEGIN USE "std/adler32"
|
||||
|
||||
#ifndef WUFFS_ADLER32_H
|
||||
#define WUFFS_ADLER32_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__ADLER32
|
||||
#define WUFFS_INCLUDE_GUARD__ADLER32
|
||||
|
||||
// Code generated by wuffs-c. DO NOT EDIT.
|
||||
|
||||
@@ -1313,14 +1313,14 @@ uint32_t wuffs_adler32__hasher__update(wuffs_adler32__hasher* self,
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_ADLER32_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__ADLER32
|
||||
|
||||
// ---------------- END USE "std/adler32"
|
||||
|
||||
// ---------------- BEGIN USE "std/deflate"
|
||||
|
||||
#ifndef WUFFS_DEFLATE_H
|
||||
#define WUFFS_DEFLATE_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__DEFLATE
|
||||
#define WUFFS_INCLUDE_GUARD__DEFLATE
|
||||
|
||||
// Code generated by wuffs-c. DO NOT EDIT.
|
||||
|
||||
@@ -1466,7 +1466,7 @@ wuffs_base__status wuffs_deflate__decoder__decode(wuffs_deflate__decoder* self,
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_DEFLATE_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__DEFLATE
|
||||
|
||||
// ---------------- END USE "std/deflate"
|
||||
|
||||
@@ -1542,12 +1542,12 @@ wuffs_base__status wuffs_zlib__decoder__decode(wuffs_zlib__decoder* self,
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_ZLIB_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__ZLIB
|
||||
|
||||
// C HEADER ENDS HERE.
|
||||
|
||||
#ifndef WUFFS_BASE_PRIVATE_H
|
||||
#define WUFFS_BASE_PRIVATE_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
#define WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
@@ -2104,7 +2104,7 @@ static inline wuffs_base__empty_struct wuffs_base__io_writer__set_mark(
|
||||
return ((wuffs_base__empty_struct){});
|
||||
}
|
||||
|
||||
#endif // WUFFS_BASE_PRIVATE_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PRIVATE
|
||||
|
||||
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__ZLIB)
|
||||
|
||||
|
||||
+6
-6
@@ -1,10 +1,10 @@
|
||||
#ifndef WUFFS_ADLER32_H
|
||||
#define WUFFS_ADLER32_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__ADLER32
|
||||
#define WUFFS_INCLUDE_GUARD__ADLER32
|
||||
|
||||
// Code generated by wuffs-c. DO NOT EDIT.
|
||||
|
||||
#ifndef WUFFS_BASE_PUBLIC_H
|
||||
#define WUFFS_BASE_PUBLIC_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
#define WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
@@ -1248,7 +1248,7 @@ static inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(
|
||||
: ((wuffs_base__table_u8){});
|
||||
}
|
||||
|
||||
#endif // WUFFS_BASE_PUBLIC_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// ---------------- Use Declarations
|
||||
|
||||
@@ -1304,4 +1304,4 @@ uint32_t wuffs_adler32__hasher__update(wuffs_adler32__hasher* self,
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_ADLER32_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__ADLER32
|
||||
+6
-6
@@ -1,10 +1,10 @@
|
||||
#ifndef WUFFS_CRC32_H
|
||||
#define WUFFS_CRC32_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__CRC32
|
||||
#define WUFFS_INCLUDE_GUARD__CRC32
|
||||
|
||||
// Code generated by wuffs-c. DO NOT EDIT.
|
||||
|
||||
#ifndef WUFFS_BASE_PUBLIC_H
|
||||
#define WUFFS_BASE_PUBLIC_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
#define WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
@@ -1248,7 +1248,7 @@ static inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(
|
||||
: ((wuffs_base__table_u8){});
|
||||
}
|
||||
|
||||
#endif // WUFFS_BASE_PUBLIC_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// ---------------- Use Declarations
|
||||
|
||||
@@ -1304,4 +1304,4 @@ uint32_t wuffs_crc32__ieee_hasher__update(wuffs_crc32__ieee_hasher* self,
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_CRC32_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__CRC32
|
||||
+6
-6
@@ -1,10 +1,10 @@
|
||||
#ifndef WUFFS_DEFLATE_H
|
||||
#define WUFFS_DEFLATE_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__DEFLATE
|
||||
#define WUFFS_INCLUDE_GUARD__DEFLATE
|
||||
|
||||
// Code generated by wuffs-c. DO NOT EDIT.
|
||||
|
||||
#ifndef WUFFS_BASE_PUBLIC_H
|
||||
#define WUFFS_BASE_PUBLIC_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
#define WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
@@ -1248,7 +1248,7 @@ static inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(
|
||||
: ((wuffs_base__table_u8){});
|
||||
}
|
||||
|
||||
#endif // WUFFS_BASE_PUBLIC_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// ---------------- Use Declarations
|
||||
|
||||
@@ -1392,4 +1392,4 @@ wuffs_base__status wuffs_deflate__decoder__decode(wuffs_deflate__decoder* self,
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_DEFLATE_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__DEFLATE
|
||||
+9
-9
@@ -1,10 +1,10 @@
|
||||
#ifndef WUFFS_GIF_H
|
||||
#define WUFFS_GIF_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__GIF
|
||||
#define WUFFS_INCLUDE_GUARD__GIF
|
||||
|
||||
// Code generated by wuffs-c. DO NOT EDIT.
|
||||
|
||||
#ifndef WUFFS_BASE_PUBLIC_H
|
||||
#define WUFFS_BASE_PUBLIC_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
#define WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
@@ -1248,14 +1248,14 @@ static inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(
|
||||
: ((wuffs_base__table_u8){});
|
||||
}
|
||||
|
||||
#endif // WUFFS_BASE_PUBLIC_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// ---------------- Use Declarations
|
||||
|
||||
// ---------------- BEGIN USE "std/lzw"
|
||||
|
||||
#ifndef WUFFS_LZW_H
|
||||
#define WUFFS_LZW_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__LZW
|
||||
#define WUFFS_INCLUDE_GUARD__LZW
|
||||
|
||||
// Code generated by wuffs-c. DO NOT EDIT.
|
||||
|
||||
@@ -1337,7 +1337,7 @@ wuffs_base__status wuffs_lzw__decoder__decode(wuffs_lzw__decoder* self,
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_LZW_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__LZW
|
||||
|
||||
// ---------------- END USE "std/lzw"
|
||||
|
||||
@@ -1509,4 +1509,4 @@ wuffs_base__status wuffs_gif__decoder__decode_up_to_id_part1(
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_GIF_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__GIF
|
||||
+12
-12
@@ -1,10 +1,10 @@
|
||||
#ifndef WUFFS_GZIP_H
|
||||
#define WUFFS_GZIP_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__GZIP
|
||||
#define WUFFS_INCLUDE_GUARD__GZIP
|
||||
|
||||
// Code generated by wuffs-c. DO NOT EDIT.
|
||||
|
||||
#ifndef WUFFS_BASE_PUBLIC_H
|
||||
#define WUFFS_BASE_PUBLIC_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
#define WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
@@ -1248,14 +1248,14 @@ static inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(
|
||||
: ((wuffs_base__table_u8){});
|
||||
}
|
||||
|
||||
#endif // WUFFS_BASE_PUBLIC_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// ---------------- Use Declarations
|
||||
|
||||
// ---------------- BEGIN USE "std/crc32"
|
||||
|
||||
#ifndef WUFFS_CRC32_H
|
||||
#define WUFFS_CRC32_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__CRC32
|
||||
#define WUFFS_INCLUDE_GUARD__CRC32
|
||||
|
||||
// Code generated by wuffs-c. DO NOT EDIT.
|
||||
|
||||
@@ -1313,14 +1313,14 @@ uint32_t wuffs_crc32__ieee_hasher__update(wuffs_crc32__ieee_hasher* self,
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_CRC32_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__CRC32
|
||||
|
||||
// ---------------- END USE "std/crc32"
|
||||
|
||||
// ---------------- BEGIN USE "std/deflate"
|
||||
|
||||
#ifndef WUFFS_DEFLATE_H
|
||||
#define WUFFS_DEFLATE_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__DEFLATE
|
||||
#define WUFFS_INCLUDE_GUARD__DEFLATE
|
||||
|
||||
// Code generated by wuffs-c. DO NOT EDIT.
|
||||
|
||||
@@ -1466,7 +1466,7 @@ wuffs_base__status wuffs_deflate__decoder__decode(wuffs_deflate__decoder* self,
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_DEFLATE_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__DEFLATE
|
||||
|
||||
// ---------------- END USE "std/deflate"
|
||||
|
||||
@@ -1544,4 +1544,4 @@ wuffs_base__status wuffs_gzip__decoder__decode(wuffs_gzip__decoder* self,
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_GZIP_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__GZIP
|
||||
+6
-6
@@ -1,10 +1,10 @@
|
||||
#ifndef WUFFS_LZW_H
|
||||
#define WUFFS_LZW_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__LZW
|
||||
#define WUFFS_INCLUDE_GUARD__LZW
|
||||
|
||||
// Code generated by wuffs-c. DO NOT EDIT.
|
||||
|
||||
#ifndef WUFFS_BASE_PUBLIC_H
|
||||
#define WUFFS_BASE_PUBLIC_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
#define WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
@@ -1248,7 +1248,7 @@ static inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(
|
||||
: ((wuffs_base__table_u8){});
|
||||
}
|
||||
|
||||
#endif // WUFFS_BASE_PUBLIC_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// ---------------- Use Declarations
|
||||
|
||||
@@ -1328,4 +1328,4 @@ wuffs_base__status wuffs_lzw__decoder__decode(wuffs_lzw__decoder* self,
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_LZW_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__LZW
|
||||
+12
-12
@@ -1,10 +1,10 @@
|
||||
#ifndef WUFFS_ZLIB_H
|
||||
#define WUFFS_ZLIB_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__ZLIB
|
||||
#define WUFFS_INCLUDE_GUARD__ZLIB
|
||||
|
||||
// Code generated by wuffs-c. DO NOT EDIT.
|
||||
|
||||
#ifndef WUFFS_BASE_PUBLIC_H
|
||||
#define WUFFS_BASE_PUBLIC_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
#define WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// Copyright 2017 The Wuffs Authors.
|
||||
//
|
||||
@@ -1248,14 +1248,14 @@ static inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(
|
||||
: ((wuffs_base__table_u8){});
|
||||
}
|
||||
|
||||
#endif // WUFFS_BASE_PUBLIC_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
// ---------------- Use Declarations
|
||||
|
||||
// ---------------- BEGIN USE "std/adler32"
|
||||
|
||||
#ifndef WUFFS_ADLER32_H
|
||||
#define WUFFS_ADLER32_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__ADLER32
|
||||
#define WUFFS_INCLUDE_GUARD__ADLER32
|
||||
|
||||
// Code generated by wuffs-c. DO NOT EDIT.
|
||||
|
||||
@@ -1313,14 +1313,14 @@ uint32_t wuffs_adler32__hasher__update(wuffs_adler32__hasher* self,
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_ADLER32_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__ADLER32
|
||||
|
||||
// ---------------- END USE "std/adler32"
|
||||
|
||||
// ---------------- BEGIN USE "std/deflate"
|
||||
|
||||
#ifndef WUFFS_DEFLATE_H
|
||||
#define WUFFS_DEFLATE_H
|
||||
#ifndef WUFFS_INCLUDE_GUARD__DEFLATE
|
||||
#define WUFFS_INCLUDE_GUARD__DEFLATE
|
||||
|
||||
// Code generated by wuffs-c. DO NOT EDIT.
|
||||
|
||||
@@ -1466,7 +1466,7 @@ wuffs_base__status wuffs_deflate__decoder__decode(wuffs_deflate__decoder* self,
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_DEFLATE_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__DEFLATE
|
||||
|
||||
// ---------------- END USE "std/deflate"
|
||||
|
||||
@@ -1542,4 +1542,4 @@ wuffs_base__status wuffs_zlib__decoder__decode(wuffs_zlib__decoder* self,
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_ZLIB_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__ZLIB
|
||||
@@ -91,7 +91,8 @@ func checkPackageName(s string) string {
|
||||
s = strings.ToLower(s)
|
||||
// Blacklist certain package names.
|
||||
switch s {
|
||||
case "base", "base_private_header", "base_public_header", "config", "version":
|
||||
case "base", "base_private", "base_private_header", "base_public", "base_public_header",
|
||||
"config", "include_guard", "version":
|
||||
return ""
|
||||
}
|
||||
return s
|
||||
|
||||
@@ -288,8 +288,8 @@ int test_main(int argc, char** argv, proc* tests, proc* benches) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// WUFFS_BASE_PUBLIC_H is where wuffs_base__foo_bar are defined.
|
||||
#ifdef WUFFS_BASE_PUBLIC_H
|
||||
// WUFFS_INCLUDE_GUARD__BASE_PUBLIC is where wuffs_base__foo_bar are defined.
|
||||
#ifdef WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
|
||||
wuffs_base__rect_ie_u32 make_rect_ie_u32(uint32_t x0,
|
||||
uint32_t y0,
|
||||
@@ -608,4 +608,4 @@ bool do_test_io_buffers(const char* (*codec_func)(wuffs_base__io_buffer*,
|
||||
return proc_io_buffers(codec_func, tc_neither, gt, wlimit, rlimit, 1, false);
|
||||
}
|
||||
|
||||
#endif // WUFFS_BASE_PUBLIC_H
|
||||
#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC
|
||||
Reference in new issue
Block a user