Compare commits

..
Author SHA1 Message Date
Nigel Tao 3eb4e3a6aa release: wuffs gen -version=0.4.0-alpha.2 2023-10-07 12:18:49 +11:00
Nigel Tao ae8531f7f8 cgen: generate "foo(void)" instead of "foo()"
This was discovered by "gcc -Wstrict-prototypes".

Updates #132
2023-10-07 11:36:53 +11:00
Nigel Tao aa39d25ca4 base: fix wuffs_base__base_16__encode4 prototype
Also fix wuffs_base__pixel_buffer__set_color_u32_fill_rect copy/paste.

This was discovered by "gcc -Wredundant-decls".

Updates #132
2023-10-07 11:32:36 +11:00
Nigel Tao 59e3d047ff CONTRIBUTORS: add Patrick Georgi
"Google Inc." is already in AUTHORS.
2023-10-07 09:57:48 +11:00
Nigel Tao 2206d97cc7 Merge pull request #133 from pgeorgi/spdx
Add SPDX identifier to license headers
2023-10-07 09:55:54 +11:00
Patrick Georgi f563f32f82 Add SPDX identifier to license headers
SPDX is an ISO standard for describing licenses in a computer readable
format, which is useful when applying license compliance tools and the
like to source code.

In addition to ensuring that the Wuffs C distribution is properly
annotated to the benefit of projects using Wuffs and SPDX-supporting
tools, add it everywhere else where there's a license in this repo for
consistency, too.
2023-10-06 20:52:36 +02:00
314 changed files with 935 additions and 314 deletions

No files matched your search

+1
View File
@@ -41,6 +41,7 @@ Michael Mc Donnell <michael@mcdonnell.dk>
Mike Kaufman <mkaufman@microsoft.com>
Muhammad Aldo Firmansyah <TheCrott@users.noreply.github.com>
Nigel Tao <nigeltao@golang.org>
Patrick Georgi <pgeorgi@google.com>
Peter Kasting <pkasting@chromium.org>
Přemysl Eric Janouch <p@janouch.name>
sarastro-nl <nlsarastro@gmail.com>
+11 -5
View File
@@ -6,6 +6,8 @@
# <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
# option. This file may not be copied, modified, or distributed
# except according to those terms.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
# ----------------
@@ -47,18 +49,22 @@ wuffs gen
# Compiler warning flags are discussed at
# http://fastcompression.blogspot.com/2019/01/compiler-warnings.html
WARNING_FLAGS="-Wall -Werror -Wpedantic -Wcast-qual -Wcast-align -Wpointer-arith -Wfloat-equal -Wundef -Wvla -Wconversion -Wshadow"
# with some further flags from
# https://review.coreboot.org/plugins/gitiles/coreboot/+/17848b65c38c32fa9630925ca8a15203a0617788/Makefile.inc#480
WARNING_FLAGS="-Wall -Werror -Wpedantic -Wcast-qual -Wcast-align -Wpointer-arith -Wfloat-equal -Wundef -Wvla -Wconversion -Wshadow -Wredundant-decls"
C_WARNING_FLAGS="$WARNING_FLAGS -Wstrict-prototypes -Wold-style-definition"
CXX_WARNING_FLAGS="$WARNING_FLAGS"
echo "Checking snapshot compiles cleanly (as C99)"
$CC -c $WARNING_FLAGS -std=c99 -Wc++-compat \
$CC -c $C_WARNING_FLAGS -std=c99 -Wc++-compat \
release/c/wuffs-unsupported-snapshot.c -o /dev/null
$CC -c $WARNING_FLAGS -DWUFFS_IMPLEMENTATION -std=c99 -Wc++-compat \
$CC -c $C_WARNING_FLAGS -DWUFFS_IMPLEMENTATION -std=c99 -Wc++-compat \
release/c/wuffs-unsupported-snapshot.c -o /dev/null
echo "Checking snapshot compiles cleanly (as C++11)"
$CXX -c $WARNING_FLAGS -std=c++11 -x c++ \
$CXX -c $CXX_WARNING_FLAGS -std=c++11 -x c++ \
release/c/wuffs-unsupported-snapshot.c -o /dev/null
$CXX -c $WARNING_FLAGS -DWUFFS_IMPLEMENTATION -std=c++11 -x c++ \
$CXX -c $CXX_WARNING_FLAGS -DWUFFS_IMPLEMENTATION -std=c++11 -x c++ \
release/c/wuffs-unsupported-snapshot.c -o /dev/null
wuffs genlib -skipgen
+2
View File
@@ -6,6 +6,8 @@
# <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
# option. This file may not be copied, modified, or distributed
# except according to those terms.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
# ----------------
+2
View File
@@ -6,6 +6,8 @@
# <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
# option. This file may not be copied, modified, or distributed
# except according to those terms.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
# ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -7,6 +7,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package main
+4
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
@@ -56,6 +58,8 @@ func main1() error {
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package main
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package main
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package main
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package main
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package main
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package main
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package main
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
#include <inttypes.h>
#include <stdio.h>
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
#ifndef WUFFS_INCLUDE_GUARD
#error "Wuffs' .h files need to be included before this file"
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
#include <inttypes.h>
#include <stdio.h>
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
#include <inttypes.h>
#include <stdlib.h>
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pri status "#not a digit"
pri status "#too large"
+2
View File
@@ -6,6 +6,8 @@
# <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
# option. This file may not be copied, modified, or distributed
# except according to those terms.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
# ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
#include <stdio.h>
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- Auxiliary - Base
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- Auxiliary - Base
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- Auxiliary - CBOR
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- Auxiliary - CBOR
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- Auxiliary - Image
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- Auxiliary - Image
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- Auxiliary - JSON
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- Auxiliary - JSON
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
#ifndef WUFFS_INCLUDE_GUARD__BASE
#define WUFFS_INCLUDE_GUARD__BASE
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- IEEE 754 Floating Point
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- IEEE 754 Floating Point
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- Fundamentals
+16 -14
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- Version
@@ -138,7 +140,7 @@
// ---------------- CPU Architecture
static inline bool //
wuffs_base__cpu_arch__have_arm_crc32() {
wuffs_base__cpu_arch__have_arm_crc32(void) {
#if defined(WUFFS_BASE__CPU_ARCH__ARM_CRC32)
return true;
#else
@@ -147,7 +149,7 @@ wuffs_base__cpu_arch__have_arm_crc32() {
}
static inline bool //
wuffs_base__cpu_arch__have_arm_neon() {
wuffs_base__cpu_arch__have_arm_neon(void) {
#if defined(WUFFS_BASE__CPU_ARCH__ARM_NEON)
return true;
#else
@@ -156,7 +158,7 @@ wuffs_base__cpu_arch__have_arm_neon() {
}
static inline bool //
wuffs_base__cpu_arch__have_x86_avx2() {
wuffs_base__cpu_arch__have_x86_avx2(void) {
#if defined(__PCLMUL__) && defined(__POPCNT__) && defined(__SSE4_2__) && \
defined(__AVX2__)
return true;
@@ -208,7 +210,7 @@ wuffs_base__cpu_arch__have_x86_avx2() {
}
static inline bool //
wuffs_base__cpu_arch__have_x86_bmi2() {
wuffs_base__cpu_arch__have_x86_bmi2(void) {
#if defined(__BMI2__)
return true;
#else
@@ -242,7 +244,7 @@ wuffs_base__cpu_arch__have_x86_bmi2() {
}
static inline bool //
wuffs_base__cpu_arch__have_x86_sse42() {
wuffs_base__cpu_arch__have_x86_sse42(void) {
#if defined(__PCLMUL__) && defined(__POPCNT__) && defined(__SSE4_2__)
return true;
#else
@@ -373,7 +375,7 @@ typedef struct wuffs_base__empty_struct__struct {
} wuffs_base__empty_struct;
static inline wuffs_base__empty_struct //
wuffs_base__make_empty_struct() {
wuffs_base__make_empty_struct(void) {
wuffs_base__empty_struct ret;
ret.private_impl = 0;
return ret;
@@ -1285,7 +1287,7 @@ wuffs_base__make_slice_u64_ij(uint64_t* ptr, size_t i, size_t j) {
}
static inline wuffs_base__slice_u8 //
wuffs_base__empty_slice_u8() {
wuffs_base__empty_slice_u8(void) {
wuffs_base__slice_u8 ret;
ret.ptr = NULL;
ret.len = 0;
@@ -1293,7 +1295,7 @@ wuffs_base__empty_slice_u8() {
}
static inline wuffs_base__slice_u16 //
wuffs_base__empty_slice_u16() {
wuffs_base__empty_slice_u16(void) {
wuffs_base__slice_u16 ret;
ret.ptr = NULL;
ret.len = 0;
@@ -1301,7 +1303,7 @@ wuffs_base__empty_slice_u16() {
}
static inline wuffs_base__slice_u32 //
wuffs_base__empty_slice_u32() {
wuffs_base__empty_slice_u32(void) {
wuffs_base__slice_u32 ret;
ret.ptr = NULL;
ret.len = 0;
@@ -1309,7 +1311,7 @@ wuffs_base__empty_slice_u32() {
}
static inline wuffs_base__slice_u64 //
wuffs_base__empty_slice_u64() {
wuffs_base__empty_slice_u64(void) {
wuffs_base__slice_u64 ret;
ret.ptr = NULL;
ret.len = 0;
@@ -1369,7 +1371,7 @@ wuffs_base__make_table_u64(uint64_t* ptr,
}
static inline wuffs_base__table_u8 //
wuffs_base__empty_table_u8() {
wuffs_base__empty_table_u8(void) {
wuffs_base__table_u8 ret;
ret.ptr = NULL;
ret.width = 0;
@@ -1379,7 +1381,7 @@ wuffs_base__empty_table_u8() {
}
static inline wuffs_base__table_u16 //
wuffs_base__empty_table_u16() {
wuffs_base__empty_table_u16(void) {
wuffs_base__table_u16 ret;
ret.ptr = NULL;
ret.width = 0;
@@ -1389,7 +1391,7 @@ wuffs_base__empty_table_u16() {
}
static inline wuffs_base__table_u32 //
wuffs_base__empty_table_u32() {
wuffs_base__empty_table_u32(void) {
wuffs_base__table_u32 ret;
ret.ptr = NULL;
ret.width = 0;
@@ -1399,7 +1401,7 @@ wuffs_base__empty_table_u32() {
}
static inline wuffs_base__table_u64 //
wuffs_base__empty_table_u64() {
wuffs_base__empty_table_u64(void) {
wuffs_base__table_u64 ret;
ret.ptr = NULL;
ret.width = 0;
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- Images
+6 -10
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- Images
@@ -600,7 +602,7 @@ typedef struct wuffs_base__pixel_config__struct {
} wuffs_base__pixel_config;
static inline wuffs_base__pixel_config //
wuffs_base__null_pixel_config() {
wuffs_base__null_pixel_config(void) {
wuffs_base__pixel_config ret;
ret.private_impl.pixfmt.repr = 0;
ret.private_impl.pixsub.repr = 0;
@@ -809,7 +811,7 @@ typedef struct wuffs_base__image_config__struct {
} wuffs_base__image_config;
static inline wuffs_base__image_config //
wuffs_base__null_image_config() {
wuffs_base__null_image_config(void) {
wuffs_base__image_config ret;
ret.pixcfg = wuffs_base__null_pixel_config();
ret.private_impl.first_frame_io_position = 0;
@@ -969,7 +971,7 @@ typedef struct wuffs_base__frame_config__struct {
} wuffs_base__frame_config;
static inline wuffs_base__frame_config //
wuffs_base__null_frame_config() {
wuffs_base__null_frame_config(void) {
wuffs_base__frame_config ret;
ret.private_impl.bounds = wuffs_base__make_rect_ie_u32(0, 0, 0, 0);
ret.private_impl.duration = 0;
@@ -1201,7 +1203,7 @@ typedef struct wuffs_base__pixel_buffer__struct {
} wuffs_base__pixel_buffer;
static inline wuffs_base__pixel_buffer //
wuffs_base__null_pixel_buffer() {
wuffs_base__null_pixel_buffer(void) {
wuffs_base__pixel_buffer ret;
ret.pixcfg = wuffs_base__null_pixel_config();
ret.private_impl.planes[0] = wuffs_base__empty_table_u8();
@@ -1451,12 +1453,6 @@ wuffs_base__pixel_buffer::color_u32_at(uint32_t x, uint32_t y) const {
return wuffs_base__pixel_buffer__color_u32_at(this, x, y);
}
WUFFS_BASE__MAYBE_STATIC wuffs_base__status //
wuffs_base__pixel_buffer__set_color_u32_fill_rect(
wuffs_base__pixel_buffer* pb,
wuffs_base__rect_ie_u32 rect,
wuffs_base__color_u32_argb_premul color);
inline wuffs_base__status //
wuffs_base__pixel_buffer::set_color_u32_at(
uint32_t x,
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- Integer
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- I/O
+4 -2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- I/O
//
@@ -114,7 +116,7 @@ wuffs_base__slice_u8__writer(wuffs_base__slice_u8 s) {
}
static inline wuffs_base__io_buffer //
wuffs_base__empty_io_buffer() {
wuffs_base__empty_io_buffer(void) {
wuffs_base__io_buffer ret;
ret.data.ptr = NULL;
ret.data.len = 0;
@@ -126,7 +128,7 @@ wuffs_base__empty_io_buffer() {
}
static inline wuffs_base__io_buffer_meta //
wuffs_base__empty_io_buffer_meta() {
wuffs_base__empty_io_buffer_meta(void) {
wuffs_base__io_buffer_meta ret;
ret.wi = 0;
ret.ri = 0;
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- Magic Numbers
+2
View File
@@ -5,5 +5,7 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- Memory Allocation
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- Memory Allocation
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- Pixel Swizzler
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// --------
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// --------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- Ranges and Rects
+9 -7
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- Ranges and Rects
@@ -28,7 +30,7 @@ typedef struct wuffs_base__range_ii_u32__struct {
} wuffs_base__range_ii_u32;
static inline wuffs_base__range_ii_u32 //
wuffs_base__empty_range_ii_u32() {
wuffs_base__empty_range_ii_u32(void) {
wuffs_base__range_ii_u32 ret;
ret.min_incl = 0;
ret.max_incl = 0;
@@ -148,7 +150,7 @@ typedef struct wuffs_base__range_ie_u32__struct {
} wuffs_base__range_ie_u32;
static inline wuffs_base__range_ie_u32 //
wuffs_base__empty_range_ie_u32() {
wuffs_base__empty_range_ie_u32(void) {
wuffs_base__range_ie_u32 ret;
ret.min_incl = 0;
ret.max_excl = 0;
@@ -277,7 +279,7 @@ typedef struct wuffs_base__range_ii_u64__struct {
} wuffs_base__range_ii_u64;
static inline wuffs_base__range_ii_u64 //
wuffs_base__empty_range_ii_u64() {
wuffs_base__empty_range_ii_u64(void) {
wuffs_base__range_ii_u64 ret;
ret.min_incl = 0;
ret.max_incl = 0;
@@ -397,7 +399,7 @@ typedef struct wuffs_base__range_ie_u64__struct {
} wuffs_base__range_ie_u64;
static inline wuffs_base__range_ie_u64 //
wuffs_base__empty_range_ie_u64() {
wuffs_base__empty_range_ie_u64(void) {
wuffs_base__range_ie_u64 ret;
ret.min_incl = 0;
ret.max_excl = 0;
@@ -528,7 +530,7 @@ typedef struct wuffs_base__rect_ii_u32__struct {
} wuffs_base__rect_ii_u32;
static inline wuffs_base__rect_ii_u32 //
wuffs_base__empty_rect_ii_u32() {
wuffs_base__empty_rect_ii_u32(void) {
wuffs_base__rect_ii_u32 ret;
ret.min_incl_x = 0;
ret.min_incl_y = 0;
@@ -665,7 +667,7 @@ typedef struct wuffs_base__rect_ie_u32__struct {
} wuffs_base__rect_ie_u32;
static inline wuffs_base__rect_ie_u32 //
wuffs_base__empty_rect_ie_u32() {
wuffs_base__empty_rect_ie_u32(void) {
wuffs_base__rect_ie_u32 ret;
ret.min_incl_x = 0;
ret.min_incl_y = 0;
@@ -838,7 +840,7 @@ typedef struct wuffs_base__more_information__struct {
#define WUFFS_BASE__MORE_INFORMATION__FLAVOR__METADATA_PARSED 5
static inline wuffs_base__more_information //
wuffs_base__empty_more_information() {
wuffs_base__empty_more_information(void) {
wuffs_base__more_information ret;
ret.flavor = 0;
ret.w = 0;
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- String Conversions
+3 -1
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- String Conversions
@@ -405,7 +407,7 @@ wuffs_base__base_16__encode2(wuffs_base__slice_u8 dst,
// function requires the WUFFS_CONFIG__MODULE__BASE__INTCONV sub-module, not
// just WUFFS_CONFIG__MODULE__BASE__CORE.
WUFFS_BASE__MAYBE_STATIC wuffs_base__transform__output //
wuffs_base__base_16__encode2(wuffs_base__slice_u8 dst,
wuffs_base__base_16__encode4(wuffs_base__slice_u8 dst,
wuffs_base__slice_u8 src,
bool src_closed,
uint32_t options);
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- Tokens
+5 -3
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- Tokens
@@ -286,7 +288,7 @@ wuffs_base__make_slice_token(wuffs_base__token* ptr, size_t len) {
}
static inline wuffs_base__slice_token //
wuffs_base__empty_slice_token() {
wuffs_base__empty_slice_token(void) {
wuffs_base__slice_token ret;
ret.ptr = NULL;
ret.len = 0;
@@ -375,7 +377,7 @@ wuffs_base__slice_token__writer(wuffs_base__slice_token s) {
}
static inline wuffs_base__token_buffer //
wuffs_base__empty_token_buffer() {
wuffs_base__empty_token_buffer(void) {
wuffs_base__token_buffer ret;
ret.data.ptr = NULL;
ret.data.len = 0;
@@ -387,7 +389,7 @@ wuffs_base__empty_token_buffer() {
}
static inline wuffs_base__token_buffer_meta //
wuffs_base__empty_token_buffer_meta() {
wuffs_base__empty_token_buffer_meta(void) {
wuffs_base__token_buffer_meta ret;
ret.wi = 0;
ret.ri = 0;
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ---------------- Unicode and UTF-8
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package cgen
+5 -3
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package cgen
@@ -785,7 +787,7 @@ func (g *gen) genHeader(b *buffer) error {
iQID := impl.AsTypeExpr().QID()
iName := fmt.Sprintf("wuffs_%s__%s", iQID[0].Str(g.tm), iQID[1].Str(g.tm))
b.printf("static inline %s*\n", iName)
b.printf("%s%s__alloc_as__%s() {\n", g.pkgPrefix, structName, iName)
b.printf("%s%s__alloc_as__%s(void) {\n", g.pkgPrefix, structName, iName)
b.printf("return (%s*)(%s%s__alloc());\n", iName, g.pkgPrefix, structName)
b.printf("}\n\n")
}
@@ -1378,13 +1380,13 @@ func (g *gen) writeInitializerSignature(b *buffer, n *a.Struct, public bool) err
func (g *gen) writeAllocSignature(b *buffer, n *a.Struct) error {
structName := n.QID().Str(g.tm)
b.printf("%s%s*\n%s%s__alloc()", g.pkgPrefix, structName, g.pkgPrefix, structName)
b.printf("%s%s*\n%s%s__alloc(void)", g.pkgPrefix, structName, g.pkgPrefix, structName)
return nil
}
func (g *gen) writeSizeofSignature(b *buffer, n *a.Struct) error {
structName := n.QID().Str(g.tm)
b.printf("size_t\nsizeof__%s%s()", g.pkgPrefix, structName)
b.printf("size_t\nsizeof__%s%s(void)", g.pkgPrefix, structName)
return nil
}
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package cgen
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package cgen
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package cgen
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package cgen
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package cgen
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package cgen
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// Package testcut provides support for testing flatecut and zlibcut.
package testcut
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package ast
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package ast
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package ast
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package ast
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package ast_test
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:generate go run gen.go
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// See the License for the specific language governing permissions and
// limitations under the License.
+4
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
@@ -170,6 +172,8 @@ const header = `// Code generated by running "go generate". DO NOT EDIT.
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package builtin
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package check
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package check
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:generate go run gen.go
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package check
+2
View File
@@ -7,6 +7,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package check
+4
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
@@ -339,6 +341,8 @@ const header = `// Code generated by running "go generate". DO NOT EDIT.
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package check
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package check
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package check
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package check
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package generate
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package parse
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package render
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package token
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package token
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package wuffsroot
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -7,6 +7,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package armneonintrinsics
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package armneonintrinsics_test
+4
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
@@ -381,6 +383,8 @@ const header = `// Code generated by running "go generate". DO NOT EDIT.
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package armneonintrinsics
`
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package armneonintrinsics
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package base38
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package cgolz4
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package cgozlib
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package cgozstd
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package compression
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package dumbindent
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package flatecut
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package interval
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package interval
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package litonlylzma_test
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package litonlylzma
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package rac
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package rac
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package rac
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package rac_test
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package rac
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package rac
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package rac
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package raclz4_test
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package raczlib_test
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build cgo
// +build cgo
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build !cgo
// +build !cgo
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package raczlib
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package raczstd_test
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package zlibcut_test
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
package zlibcut
+128 -132
View File
@@ -42,6 +42,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
#include <stdbool.h>
#include <stdint.h>
@@ -194,7 +196,7 @@ extern "C" {
// ---------------- CPU Architecture
static inline bool //
wuffs_base__cpu_arch__have_arm_crc32() {
wuffs_base__cpu_arch__have_arm_crc32(void) {
#if defined(WUFFS_BASE__CPU_ARCH__ARM_CRC32)
return true;
#else
@@ -203,7 +205,7 @@ wuffs_base__cpu_arch__have_arm_crc32() {
}
static inline bool //
wuffs_base__cpu_arch__have_arm_neon() {
wuffs_base__cpu_arch__have_arm_neon(void) {
#if defined(WUFFS_BASE__CPU_ARCH__ARM_NEON)
return true;
#else
@@ -212,7 +214,7 @@ wuffs_base__cpu_arch__have_arm_neon() {
}
static inline bool //
wuffs_base__cpu_arch__have_x86_avx2() {
wuffs_base__cpu_arch__have_x86_avx2(void) {
#if defined(__PCLMUL__) && defined(__POPCNT__) && defined(__SSE4_2__) && \
defined(__AVX2__)
return true;
@@ -264,7 +266,7 @@ wuffs_base__cpu_arch__have_x86_avx2() {
}
static inline bool //
wuffs_base__cpu_arch__have_x86_bmi2() {
wuffs_base__cpu_arch__have_x86_bmi2(void) {
#if defined(__BMI2__)
return true;
#else
@@ -298,7 +300,7 @@ wuffs_base__cpu_arch__have_x86_bmi2() {
}
static inline bool //
wuffs_base__cpu_arch__have_x86_sse42() {
wuffs_base__cpu_arch__have_x86_sse42(void) {
#if defined(__PCLMUL__) && defined(__POPCNT__) && defined(__SSE4_2__)
return true;
#else
@@ -429,7 +431,7 @@ typedef struct wuffs_base__empty_struct__struct {
} wuffs_base__empty_struct;
static inline wuffs_base__empty_struct //
wuffs_base__make_empty_struct() {
wuffs_base__make_empty_struct(void) {
wuffs_base__empty_struct ret;
ret.private_impl = 0;
return ret;
@@ -1556,7 +1558,7 @@ wuffs_base__make_slice_u64_ij(uint64_t* ptr, size_t i, size_t j) {
}
static inline wuffs_base__slice_u8 //
wuffs_base__empty_slice_u8() {
wuffs_base__empty_slice_u8(void) {
wuffs_base__slice_u8 ret;
ret.ptr = NULL;
ret.len = 0;
@@ -1564,7 +1566,7 @@ wuffs_base__empty_slice_u8() {
}
static inline wuffs_base__slice_u16 //
wuffs_base__empty_slice_u16() {
wuffs_base__empty_slice_u16(void) {
wuffs_base__slice_u16 ret;
ret.ptr = NULL;
ret.len = 0;
@@ -1572,7 +1574,7 @@ wuffs_base__empty_slice_u16() {
}
static inline wuffs_base__slice_u32 //
wuffs_base__empty_slice_u32() {
wuffs_base__empty_slice_u32(void) {
wuffs_base__slice_u32 ret;
ret.ptr = NULL;
ret.len = 0;
@@ -1580,7 +1582,7 @@ wuffs_base__empty_slice_u32() {
}
static inline wuffs_base__slice_u64 //
wuffs_base__empty_slice_u64() {
wuffs_base__empty_slice_u64(void) {
wuffs_base__slice_u64 ret;
ret.ptr = NULL;
ret.len = 0;
@@ -1640,7 +1642,7 @@ wuffs_base__make_table_u64(uint64_t* ptr,
}
static inline wuffs_base__table_u8 //
wuffs_base__empty_table_u8() {
wuffs_base__empty_table_u8(void) {
wuffs_base__table_u8 ret;
ret.ptr = NULL;
ret.width = 0;
@@ -1650,7 +1652,7 @@ wuffs_base__empty_table_u8() {
}
static inline wuffs_base__table_u16 //
wuffs_base__empty_table_u16() {
wuffs_base__empty_table_u16(void) {
wuffs_base__table_u16 ret;
ret.ptr = NULL;
ret.width = 0;
@@ -1660,7 +1662,7 @@ wuffs_base__empty_table_u16() {
}
static inline wuffs_base__table_u32 //
wuffs_base__empty_table_u32() {
wuffs_base__empty_table_u32(void) {
wuffs_base__table_u32 ret;
ret.ptr = NULL;
ret.width = 0;
@@ -1670,7 +1672,7 @@ wuffs_base__empty_table_u32() {
}
static inline wuffs_base__table_u64 //
wuffs_base__empty_table_u64() {
wuffs_base__empty_table_u64(void) {
wuffs_base__table_u64 ret;
ret.ptr = NULL;
ret.width = 0;
@@ -1833,7 +1835,7 @@ typedef struct wuffs_base__range_ii_u32__struct {
} wuffs_base__range_ii_u32;
static inline wuffs_base__range_ii_u32 //
wuffs_base__empty_range_ii_u32() {
wuffs_base__empty_range_ii_u32(void) {
wuffs_base__range_ii_u32 ret;
ret.min_incl = 0;
ret.max_incl = 0;
@@ -1953,7 +1955,7 @@ typedef struct wuffs_base__range_ie_u32__struct {
} wuffs_base__range_ie_u32;
static inline wuffs_base__range_ie_u32 //
wuffs_base__empty_range_ie_u32() {
wuffs_base__empty_range_ie_u32(void) {
wuffs_base__range_ie_u32 ret;
ret.min_incl = 0;
ret.max_excl = 0;
@@ -2082,7 +2084,7 @@ typedef struct wuffs_base__range_ii_u64__struct {
} wuffs_base__range_ii_u64;
static inline wuffs_base__range_ii_u64 //
wuffs_base__empty_range_ii_u64() {
wuffs_base__empty_range_ii_u64(void) {
wuffs_base__range_ii_u64 ret;
ret.min_incl = 0;
ret.max_incl = 0;
@@ -2202,7 +2204,7 @@ typedef struct wuffs_base__range_ie_u64__struct {
} wuffs_base__range_ie_u64;
static inline wuffs_base__range_ie_u64 //
wuffs_base__empty_range_ie_u64() {
wuffs_base__empty_range_ie_u64(void) {
wuffs_base__range_ie_u64 ret;
ret.min_incl = 0;
ret.max_excl = 0;
@@ -2333,7 +2335,7 @@ typedef struct wuffs_base__rect_ii_u32__struct {
} wuffs_base__rect_ii_u32;
static inline wuffs_base__rect_ii_u32 //
wuffs_base__empty_rect_ii_u32() {
wuffs_base__empty_rect_ii_u32(void) {
wuffs_base__rect_ii_u32 ret;
ret.min_incl_x = 0;
ret.min_incl_y = 0;
@@ -2470,7 +2472,7 @@ typedef struct wuffs_base__rect_ie_u32__struct {
} wuffs_base__rect_ie_u32;
static inline wuffs_base__rect_ie_u32 //
wuffs_base__empty_rect_ie_u32() {
wuffs_base__empty_rect_ie_u32(void) {
wuffs_base__rect_ie_u32 ret;
ret.min_incl_x = 0;
ret.min_incl_y = 0;
@@ -2643,7 +2645,7 @@ typedef struct wuffs_base__more_information__struct {
#define WUFFS_BASE__MORE_INFORMATION__FLAVOR__METADATA_PARSED 5
static inline wuffs_base__more_information //
wuffs_base__empty_more_information() {
wuffs_base__empty_more_information(void) {
wuffs_base__more_information ret;
ret.flavor = 0;
ret.w = 0;
@@ -2956,7 +2958,7 @@ wuffs_base__slice_u8__writer(wuffs_base__slice_u8 s) {
}
static inline wuffs_base__io_buffer //
wuffs_base__empty_io_buffer() {
wuffs_base__empty_io_buffer(void) {
wuffs_base__io_buffer ret;
ret.data.ptr = NULL;
ret.data.len = 0;
@@ -2968,7 +2970,7 @@ wuffs_base__empty_io_buffer() {
}
static inline wuffs_base__io_buffer_meta //
wuffs_base__empty_io_buffer_meta() {
wuffs_base__empty_io_buffer_meta(void) {
wuffs_base__io_buffer_meta ret;
ret.wi = 0;
ret.ri = 0;
@@ -3429,7 +3431,7 @@ wuffs_base__make_slice_token(wuffs_base__token* ptr, size_t len) {
}
static inline wuffs_base__slice_token //
wuffs_base__empty_slice_token() {
wuffs_base__empty_slice_token(void) {
wuffs_base__slice_token ret;
ret.ptr = NULL;
ret.len = 0;
@@ -3518,7 +3520,7 @@ wuffs_base__slice_token__writer(wuffs_base__slice_token s) {
}
static inline wuffs_base__token_buffer //
wuffs_base__empty_token_buffer() {
wuffs_base__empty_token_buffer(void) {
wuffs_base__token_buffer ret;
ret.data.ptr = NULL;
ret.data.len = 0;
@@ -3530,7 +3532,7 @@ wuffs_base__empty_token_buffer() {
}
static inline wuffs_base__token_buffer_meta //
wuffs_base__empty_token_buffer_meta() {
wuffs_base__empty_token_buffer_meta(void) {
wuffs_base__token_buffer_meta ret;
ret.wi = 0;
ret.ri = 0;
@@ -4368,7 +4370,7 @@ typedef struct wuffs_base__pixel_config__struct {
} wuffs_base__pixel_config;
static inline wuffs_base__pixel_config //
wuffs_base__null_pixel_config() {
wuffs_base__null_pixel_config(void) {
wuffs_base__pixel_config ret;
ret.private_impl.pixfmt.repr = 0;
ret.private_impl.pixsub.repr = 0;
@@ -4577,7 +4579,7 @@ typedef struct wuffs_base__image_config__struct {
} wuffs_base__image_config;
static inline wuffs_base__image_config //
wuffs_base__null_image_config() {
wuffs_base__null_image_config(void) {
wuffs_base__image_config ret;
ret.pixcfg = wuffs_base__null_pixel_config();
ret.private_impl.first_frame_io_position = 0;
@@ -4737,7 +4739,7 @@ typedef struct wuffs_base__frame_config__struct {
} wuffs_base__frame_config;
static inline wuffs_base__frame_config //
wuffs_base__null_frame_config() {
wuffs_base__null_frame_config(void) {
wuffs_base__frame_config ret;
ret.private_impl.bounds = wuffs_base__make_rect_ie_u32(0, 0, 0, 0);
ret.private_impl.duration = 0;
@@ -4969,7 +4971,7 @@ typedef struct wuffs_base__pixel_buffer__struct {
} wuffs_base__pixel_buffer;
static inline wuffs_base__pixel_buffer //
wuffs_base__null_pixel_buffer() {
wuffs_base__null_pixel_buffer(void) {
wuffs_base__pixel_buffer ret;
ret.pixcfg = wuffs_base__null_pixel_config();
ret.private_impl.planes[0] = wuffs_base__empty_table_u8();
@@ -5219,12 +5221,6 @@ wuffs_base__pixel_buffer::color_u32_at(uint32_t x, uint32_t y) const {
return wuffs_base__pixel_buffer__color_u32_at(this, x, y);
}
WUFFS_BASE__MAYBE_STATIC wuffs_base__status //
wuffs_base__pixel_buffer__set_color_u32_fill_rect(
wuffs_base__pixel_buffer* pb,
wuffs_base__rect_ie_u32 rect,
wuffs_base__color_u32_argb_premul color);
inline wuffs_base__status //
wuffs_base__pixel_buffer::set_color_u32_at(
uint32_t x,
@@ -5768,7 +5764,7 @@ wuffs_base__base_16__encode2(wuffs_base__slice_u8 dst,
// function requires the WUFFS_CONFIG__MODULE__BASE__INTCONV sub-module, not
// just WUFFS_CONFIG__MODULE__BASE__CORE.
WUFFS_BASE__MAYBE_STATIC wuffs_base__transform__output //
wuffs_base__base_16__encode2(wuffs_base__slice_u8 dst,
wuffs_base__base_16__encode4(wuffs_base__slice_u8 dst,
wuffs_base__slice_u8 src,
bool src_closed,
uint32_t options);
@@ -6718,7 +6714,7 @@ wuffs_adler32__hasher__initialize(
uint32_t options);
size_t
sizeof__wuffs_adler32__hasher();
sizeof__wuffs_adler32__hasher(void);
// ---------------- Allocs
@@ -6729,10 +6725,10 @@ sizeof__wuffs_adler32__hasher();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_adler32__hasher*
wuffs_adler32__hasher__alloc();
wuffs_adler32__hasher__alloc(void);
static inline wuffs_base__hasher_u32*
wuffs_adler32__hasher__alloc_as__wuffs_base__hasher_u32() {
wuffs_adler32__hasher__alloc_as__wuffs_base__hasher_u32(void) {
return (wuffs_base__hasher_u32*)(wuffs_adler32__hasher__alloc());
}
@@ -6949,7 +6945,7 @@ wuffs_bmp__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_bmp__decoder();
sizeof__wuffs_bmp__decoder(void);
// ---------------- Allocs
@@ -6960,10 +6956,10 @@ sizeof__wuffs_bmp__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_bmp__decoder*
wuffs_bmp__decoder__alloc();
wuffs_bmp__decoder__alloc(void);
static inline wuffs_base__image_decoder*
wuffs_bmp__decoder__alloc_as__wuffs_base__image_decoder() {
wuffs_bmp__decoder__alloc_as__wuffs_base__image_decoder(void) {
return (wuffs_base__image_decoder*)(wuffs_bmp__decoder__alloc());
}
@@ -7347,7 +7343,7 @@ wuffs_bzip2__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_bzip2__decoder();
sizeof__wuffs_bzip2__decoder(void);
// ---------------- Allocs
@@ -7358,10 +7354,10 @@ sizeof__wuffs_bzip2__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_bzip2__decoder*
wuffs_bzip2__decoder__alloc();
wuffs_bzip2__decoder__alloc(void);
static inline wuffs_base__io_transformer*
wuffs_bzip2__decoder__alloc_as__wuffs_base__io_transformer() {
wuffs_bzip2__decoder__alloc_as__wuffs_base__io_transformer(void) {
return (wuffs_base__io_transformer*)(wuffs_bzip2__decoder__alloc());
}
@@ -7653,7 +7649,7 @@ wuffs_cbor__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_cbor__decoder();
sizeof__wuffs_cbor__decoder(void);
// ---------------- Allocs
@@ -7664,10 +7660,10 @@ sizeof__wuffs_cbor__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_cbor__decoder*
wuffs_cbor__decoder__alloc();
wuffs_cbor__decoder__alloc(void);
static inline wuffs_base__token_decoder*
wuffs_cbor__decoder__alloc_as__wuffs_base__token_decoder() {
wuffs_cbor__decoder__alloc_as__wuffs_base__token_decoder(void) {
return (wuffs_base__token_decoder*)(wuffs_cbor__decoder__alloc());
}
@@ -7886,7 +7882,7 @@ wuffs_crc32__ieee_hasher__initialize(
uint32_t options);
size_t
sizeof__wuffs_crc32__ieee_hasher();
sizeof__wuffs_crc32__ieee_hasher(void);
// ---------------- Allocs
@@ -7897,10 +7893,10 @@ sizeof__wuffs_crc32__ieee_hasher();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_crc32__ieee_hasher*
wuffs_crc32__ieee_hasher__alloc();
wuffs_crc32__ieee_hasher__alloc(void);
static inline wuffs_base__hasher_u32*
wuffs_crc32__ieee_hasher__alloc_as__wuffs_base__hasher_u32() {
wuffs_crc32__ieee_hasher__alloc_as__wuffs_base__hasher_u32(void) {
return (wuffs_base__hasher_u32*)(wuffs_crc32__ieee_hasher__alloc());
}
@@ -8126,7 +8122,7 @@ wuffs_deflate__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_deflate__decoder();
sizeof__wuffs_deflate__decoder(void);
// ---------------- Allocs
@@ -8137,10 +8133,10 @@ sizeof__wuffs_deflate__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_deflate__decoder*
wuffs_deflate__decoder__alloc();
wuffs_deflate__decoder__alloc(void);
static inline wuffs_base__io_transformer*
wuffs_deflate__decoder__alloc_as__wuffs_base__io_transformer() {
wuffs_deflate__decoder__alloc_as__wuffs_base__io_transformer(void) {
return (wuffs_base__io_transformer*)(wuffs_deflate__decoder__alloc());
}
@@ -8438,7 +8434,7 @@ wuffs_gif__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_gif__decoder();
sizeof__wuffs_gif__decoder(void);
// ---------------- Allocs
@@ -8449,10 +8445,10 @@ sizeof__wuffs_gif__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_gif__decoder*
wuffs_gif__decoder__alloc();
wuffs_gif__decoder__alloc(void);
static inline wuffs_base__image_decoder*
wuffs_gif__decoder__alloc_as__wuffs_base__image_decoder() {
wuffs_gif__decoder__alloc_as__wuffs_base__image_decoder(void) {
return (wuffs_base__image_decoder*)(wuffs_gif__decoder__alloc());
}
@@ -8904,7 +8900,7 @@ wuffs_gzip__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_gzip__decoder();
sizeof__wuffs_gzip__decoder(void);
// ---------------- Allocs
@@ -8915,10 +8911,10 @@ sizeof__wuffs_gzip__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_gzip__decoder*
wuffs_gzip__decoder__alloc();
wuffs_gzip__decoder__alloc(void);
static inline wuffs_base__io_transformer*
wuffs_gzip__decoder__alloc_as__wuffs_base__io_transformer() {
wuffs_gzip__decoder__alloc_as__wuffs_base__io_transformer(void) {
return (wuffs_base__io_transformer*)(wuffs_gzip__decoder__alloc());
}
@@ -9165,7 +9161,7 @@ wuffs_jpeg__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_jpeg__decoder();
sizeof__wuffs_jpeg__decoder(void);
// ---------------- Allocs
@@ -9176,10 +9172,10 @@ sizeof__wuffs_jpeg__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_jpeg__decoder*
wuffs_jpeg__decoder__alloc();
wuffs_jpeg__decoder__alloc(void);
static inline wuffs_base__image_decoder*
wuffs_jpeg__decoder__alloc_as__wuffs_base__image_decoder() {
wuffs_jpeg__decoder__alloc_as__wuffs_base__image_decoder(void) {
return (wuffs_base__image_decoder*)(wuffs_jpeg__decoder__alloc());
}
@@ -9704,7 +9700,7 @@ wuffs_json__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_json__decoder();
sizeof__wuffs_json__decoder(void);
// ---------------- Allocs
@@ -9715,10 +9711,10 @@ sizeof__wuffs_json__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_json__decoder*
wuffs_json__decoder__alloc();
wuffs_json__decoder__alloc(void);
static inline wuffs_base__token_decoder*
wuffs_json__decoder__alloc_as__wuffs_base__token_decoder() {
wuffs_json__decoder__alloc_as__wuffs_base__token_decoder(void) {
return (wuffs_base__token_decoder*)(wuffs_json__decoder__alloc());
}
@@ -9953,7 +9949,7 @@ wuffs_lzw__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_lzw__decoder();
sizeof__wuffs_lzw__decoder(void);
// ---------------- Allocs
@@ -9964,10 +9960,10 @@ sizeof__wuffs_lzw__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_lzw__decoder*
wuffs_lzw__decoder__alloc();
wuffs_lzw__decoder__alloc(void);
static inline wuffs_base__io_transformer*
wuffs_lzw__decoder__alloc_as__wuffs_base__io_transformer() {
wuffs_lzw__decoder__alloc_as__wuffs_base__io_transformer(void) {
return (wuffs_base__io_transformer*)(wuffs_lzw__decoder__alloc());
}
@@ -10211,7 +10207,7 @@ wuffs_netpbm__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_netpbm__decoder();
sizeof__wuffs_netpbm__decoder(void);
// ---------------- Allocs
@@ -10222,10 +10218,10 @@ sizeof__wuffs_netpbm__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_netpbm__decoder*
wuffs_netpbm__decoder__alloc();
wuffs_netpbm__decoder__alloc(void);
static inline wuffs_base__image_decoder*
wuffs_netpbm__decoder__alloc_as__wuffs_base__image_decoder() {
wuffs_netpbm__decoder__alloc_as__wuffs_base__image_decoder(void) {
return (wuffs_base__image_decoder*)(wuffs_netpbm__decoder__alloc());
}
@@ -10569,7 +10565,7 @@ wuffs_nie__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_nie__decoder();
sizeof__wuffs_nie__decoder(void);
// ---------------- Allocs
@@ -10580,10 +10576,10 @@ sizeof__wuffs_nie__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_nie__decoder*
wuffs_nie__decoder__alloc();
wuffs_nie__decoder__alloc(void);
static inline wuffs_base__image_decoder*
wuffs_nie__decoder__alloc_as__wuffs_base__image_decoder() {
wuffs_nie__decoder__alloc_as__wuffs_base__image_decoder(void) {
return (wuffs_base__image_decoder*)(wuffs_nie__decoder__alloc());
}
@@ -10937,7 +10933,7 @@ wuffs_zlib__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_zlib__decoder();
sizeof__wuffs_zlib__decoder(void);
// ---------------- Allocs
@@ -10948,10 +10944,10 @@ sizeof__wuffs_zlib__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_zlib__decoder*
wuffs_zlib__decoder__alloc();
wuffs_zlib__decoder__alloc(void);
static inline wuffs_base__io_transformer*
wuffs_zlib__decoder__alloc_as__wuffs_base__io_transformer() {
wuffs_zlib__decoder__alloc_as__wuffs_base__io_transformer(void) {
return (wuffs_base__io_transformer*)(wuffs_zlib__decoder__alloc());
}
@@ -11217,7 +11213,7 @@ wuffs_png__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_png__decoder();
sizeof__wuffs_png__decoder(void);
// ---------------- Allocs
@@ -11228,10 +11224,10 @@ sizeof__wuffs_png__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_png__decoder*
wuffs_png__decoder__alloc();
wuffs_png__decoder__alloc(void);
static inline wuffs_base__image_decoder*
wuffs_png__decoder__alloc_as__wuffs_base__image_decoder() {
wuffs_png__decoder__alloc_as__wuffs_base__image_decoder(void) {
return (wuffs_base__image_decoder*)(wuffs_png__decoder__alloc());
}
@@ -11723,7 +11719,7 @@ wuffs_tga__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_tga__decoder();
sizeof__wuffs_tga__decoder(void);
// ---------------- Allocs
@@ -11734,10 +11730,10 @@ sizeof__wuffs_tga__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_tga__decoder*
wuffs_tga__decoder__alloc();
wuffs_tga__decoder__alloc(void);
static inline wuffs_base__image_decoder*
wuffs_tga__decoder__alloc_as__wuffs_base__image_decoder() {
wuffs_tga__decoder__alloc_as__wuffs_base__image_decoder(void) {
return (wuffs_base__image_decoder*)(wuffs_tga__decoder__alloc());
}
@@ -12110,7 +12106,7 @@ wuffs_wbmp__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_wbmp__decoder();
sizeof__wuffs_wbmp__decoder(void);
// ---------------- Allocs
@@ -12121,10 +12117,10 @@ sizeof__wuffs_wbmp__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_wbmp__decoder*
wuffs_wbmp__decoder__alloc();
wuffs_wbmp__decoder__alloc(void);
static inline wuffs_base__image_decoder*
wuffs_wbmp__decoder__alloc_as__wuffs_base__image_decoder() {
wuffs_wbmp__decoder__alloc_as__wuffs_base__image_decoder(void) {
return (wuffs_base__image_decoder*)(wuffs_wbmp__decoder__alloc());
}
@@ -12470,7 +12466,7 @@ wuffs_xxhash32__hasher__initialize(
uint32_t options);
size_t
sizeof__wuffs_xxhash32__hasher();
sizeof__wuffs_xxhash32__hasher(void);
// ---------------- Allocs
@@ -12481,10 +12477,10 @@ sizeof__wuffs_xxhash32__hasher();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_xxhash32__hasher*
wuffs_xxhash32__hasher__alloc();
wuffs_xxhash32__hasher__alloc(void);
static inline wuffs_base__hasher_u32*
wuffs_xxhash32__hasher__alloc_as__wuffs_base__hasher_u32() {
wuffs_xxhash32__hasher__alloc_as__wuffs_base__hasher_u32(void) {
return (wuffs_base__hasher_u32*)(wuffs_xxhash32__hasher__alloc());
}
@@ -12696,7 +12692,7 @@ wuffs_xxhash64__hasher__initialize(
uint32_t options);
size_t
sizeof__wuffs_xxhash64__hasher();
sizeof__wuffs_xxhash64__hasher(void);
// ---------------- Allocs
@@ -12707,10 +12703,10 @@ sizeof__wuffs_xxhash64__hasher();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_xxhash64__hasher*
wuffs_xxhash64__hasher__alloc();
wuffs_xxhash64__hasher__alloc(void);
static inline wuffs_base__hasher_u64*
wuffs_xxhash64__hasher__alloc_as__wuffs_base__hasher_u64() {
wuffs_xxhash64__hasher__alloc_as__wuffs_base__hasher_u64(void) {
return (wuffs_base__hasher_u64*)(wuffs_xxhash64__hasher__alloc());
}
@@ -27182,7 +27178,7 @@ wuffs_adler32__hasher__initialize(
}
wuffs_adler32__hasher*
wuffs_adler32__hasher__alloc() {
wuffs_adler32__hasher__alloc(void) {
wuffs_adler32__hasher* x =
(wuffs_adler32__hasher*)(calloc(sizeof(wuffs_adler32__hasher), 1));
if (!x) {
@@ -27197,7 +27193,7 @@ wuffs_adler32__hasher__alloc() {
}
size_t
sizeof__wuffs_adler32__hasher() {
sizeof__wuffs_adler32__hasher(void) {
return sizeof(wuffs_adler32__hasher);
}
@@ -27789,7 +27785,7 @@ wuffs_bmp__decoder__initialize(
}
wuffs_bmp__decoder*
wuffs_bmp__decoder__alloc() {
wuffs_bmp__decoder__alloc(void) {
wuffs_bmp__decoder* x =
(wuffs_bmp__decoder*)(calloc(sizeof(wuffs_bmp__decoder), 1));
if (!x) {
@@ -27804,7 +27800,7 @@ wuffs_bmp__decoder__alloc() {
}
size_t
sizeof__wuffs_bmp__decoder() {
sizeof__wuffs_bmp__decoder(void) {
return sizeof(wuffs_bmp__decoder);
}
@@ -30571,7 +30567,7 @@ wuffs_bzip2__decoder__initialize(
}
wuffs_bzip2__decoder*
wuffs_bzip2__decoder__alloc() {
wuffs_bzip2__decoder__alloc(void) {
wuffs_bzip2__decoder* x =
(wuffs_bzip2__decoder*)(calloc(sizeof(wuffs_bzip2__decoder), 1));
if (!x) {
@@ -30586,7 +30582,7 @@ wuffs_bzip2__decoder__alloc() {
}
size_t
sizeof__wuffs_bzip2__decoder() {
sizeof__wuffs_bzip2__decoder(void) {
return sizeof(wuffs_bzip2__decoder);
}
@@ -32127,7 +32123,7 @@ wuffs_cbor__decoder__initialize(
}
wuffs_cbor__decoder*
wuffs_cbor__decoder__alloc() {
wuffs_cbor__decoder__alloc(void) {
wuffs_cbor__decoder* x =
(wuffs_cbor__decoder*)(calloc(sizeof(wuffs_cbor__decoder), 1));
if (!x) {
@@ -32142,7 +32138,7 @@ wuffs_cbor__decoder__alloc() {
}
size_t
sizeof__wuffs_cbor__decoder() {
sizeof__wuffs_cbor__decoder(void) {
return sizeof(wuffs_cbor__decoder);
}
@@ -33488,7 +33484,7 @@ wuffs_crc32__ieee_hasher__initialize(
}
wuffs_crc32__ieee_hasher*
wuffs_crc32__ieee_hasher__alloc() {
wuffs_crc32__ieee_hasher__alloc(void) {
wuffs_crc32__ieee_hasher* x =
(wuffs_crc32__ieee_hasher*)(calloc(sizeof(wuffs_crc32__ieee_hasher), 1));
if (!x) {
@@ -33503,7 +33499,7 @@ wuffs_crc32__ieee_hasher__alloc() {
}
size_t
sizeof__wuffs_crc32__ieee_hasher() {
sizeof__wuffs_crc32__ieee_hasher(void) {
return sizeof(wuffs_crc32__ieee_hasher);
}
@@ -34277,7 +34273,7 @@ wuffs_deflate__decoder__initialize(
}
wuffs_deflate__decoder*
wuffs_deflate__decoder__alloc() {
wuffs_deflate__decoder__alloc(void) {
wuffs_deflate__decoder* x =
(wuffs_deflate__decoder*)(calloc(sizeof(wuffs_deflate__decoder), 1));
if (!x) {
@@ -34292,7 +34288,7 @@ wuffs_deflate__decoder__alloc() {
}
size_t
sizeof__wuffs_deflate__decoder() {
sizeof__wuffs_deflate__decoder(void) {
return sizeof(wuffs_deflate__decoder);
}
@@ -36693,7 +36689,7 @@ wuffs_gif__decoder__initialize(
}
wuffs_gif__decoder*
wuffs_gif__decoder__alloc() {
wuffs_gif__decoder__alloc(void) {
wuffs_gif__decoder* x =
(wuffs_gif__decoder*)(calloc(sizeof(wuffs_gif__decoder), 1));
if (!x) {
@@ -36708,7 +36704,7 @@ wuffs_gif__decoder__alloc() {
}
size_t
sizeof__wuffs_gif__decoder() {
sizeof__wuffs_gif__decoder(void) {
return sizeof(wuffs_gif__decoder);
}
@@ -39616,7 +39612,7 @@ wuffs_gzip__decoder__initialize(
}
wuffs_gzip__decoder*
wuffs_gzip__decoder__alloc() {
wuffs_gzip__decoder__alloc(void) {
wuffs_gzip__decoder* x =
(wuffs_gzip__decoder*)(calloc(sizeof(wuffs_gzip__decoder), 1));
if (!x) {
@@ -39631,7 +39627,7 @@ wuffs_gzip__decoder__alloc() {
}
size_t
sizeof__wuffs_gzip__decoder() {
sizeof__wuffs_gzip__decoder(void) {
return sizeof(wuffs_gzip__decoder);
}
@@ -40703,7 +40699,7 @@ wuffs_jpeg__decoder__initialize(
}
wuffs_jpeg__decoder*
wuffs_jpeg__decoder__alloc() {
wuffs_jpeg__decoder__alloc(void) {
wuffs_jpeg__decoder* x =
(wuffs_jpeg__decoder*)(calloc(sizeof(wuffs_jpeg__decoder), 1));
if (!x) {
@@ -40718,7 +40714,7 @@ wuffs_jpeg__decoder__alloc() {
}
size_t
sizeof__wuffs_jpeg__decoder() {
sizeof__wuffs_jpeg__decoder(void) {
return sizeof(wuffs_jpeg__decoder);
}
@@ -47167,7 +47163,7 @@ wuffs_json__decoder__initialize(
}
wuffs_json__decoder*
wuffs_json__decoder__alloc() {
wuffs_json__decoder__alloc(void) {
wuffs_json__decoder* x =
(wuffs_json__decoder*)(calloc(sizeof(wuffs_json__decoder), 1));
if (!x) {
@@ -47182,7 +47178,7 @@ wuffs_json__decoder__alloc() {
}
size_t
sizeof__wuffs_json__decoder() {
sizeof__wuffs_json__decoder(void) {
return sizeof(wuffs_json__decoder);
}
@@ -49154,7 +49150,7 @@ wuffs_lzw__decoder__initialize(
}
wuffs_lzw__decoder*
wuffs_lzw__decoder__alloc() {
wuffs_lzw__decoder__alloc(void) {
wuffs_lzw__decoder* x =
(wuffs_lzw__decoder*)(calloc(sizeof(wuffs_lzw__decoder), 1));
if (!x) {
@@ -49169,7 +49165,7 @@ wuffs_lzw__decoder__alloc() {
}
size_t
sizeof__wuffs_lzw__decoder() {
sizeof__wuffs_lzw__decoder(void) {
return sizeof(wuffs_lzw__decoder);
}
@@ -49771,7 +49767,7 @@ wuffs_netpbm__decoder__initialize(
}
wuffs_netpbm__decoder*
wuffs_netpbm__decoder__alloc() {
wuffs_netpbm__decoder__alloc(void) {
wuffs_netpbm__decoder* x =
(wuffs_netpbm__decoder*)(calloc(sizeof(wuffs_netpbm__decoder), 1));
if (!x) {
@@ -49786,7 +49782,7 @@ wuffs_netpbm__decoder__alloc() {
}
size_t
sizeof__wuffs_netpbm__decoder() {
sizeof__wuffs_netpbm__decoder(void) {
return sizeof(wuffs_netpbm__decoder);
}
@@ -50929,7 +50925,7 @@ wuffs_nie__decoder__initialize(
}
wuffs_nie__decoder*
wuffs_nie__decoder__alloc() {
wuffs_nie__decoder__alloc(void) {
wuffs_nie__decoder* x =
(wuffs_nie__decoder*)(calloc(sizeof(wuffs_nie__decoder), 1));
if (!x) {
@@ -50944,7 +50940,7 @@ wuffs_nie__decoder__alloc() {
}
size_t
sizeof__wuffs_nie__decoder() {
sizeof__wuffs_nie__decoder(void) {
return sizeof(wuffs_nie__decoder);
}
@@ -51990,7 +51986,7 @@ wuffs_zlib__decoder__initialize(
}
wuffs_zlib__decoder*
wuffs_zlib__decoder__alloc() {
wuffs_zlib__decoder__alloc(void) {
wuffs_zlib__decoder* x =
(wuffs_zlib__decoder*)(calloc(sizeof(wuffs_zlib__decoder), 1));
if (!x) {
@@ -52005,7 +52001,7 @@ wuffs_zlib__decoder__alloc() {
}
size_t
sizeof__wuffs_zlib__decoder() {
sizeof__wuffs_zlib__decoder(void) {
return sizeof(wuffs_zlib__decoder);
}
@@ -52960,7 +52956,7 @@ wuffs_png__decoder__initialize(
}
wuffs_png__decoder*
wuffs_png__decoder__alloc() {
wuffs_png__decoder__alloc(void) {
wuffs_png__decoder* x =
(wuffs_png__decoder*)(calloc(sizeof(wuffs_png__decoder), 1));
if (!x) {
@@ -52975,7 +52971,7 @@ wuffs_png__decoder__alloc() {
}
size_t
sizeof__wuffs_png__decoder() {
sizeof__wuffs_png__decoder(void) {
return sizeof(wuffs_png__decoder);
}
@@ -59126,7 +59122,7 @@ wuffs_tga__decoder__initialize(
}
wuffs_tga__decoder*
wuffs_tga__decoder__alloc() {
wuffs_tga__decoder__alloc(void) {
wuffs_tga__decoder* x =
(wuffs_tga__decoder*)(calloc(sizeof(wuffs_tga__decoder), 1));
if (!x) {
@@ -59141,7 +59137,7 @@ wuffs_tga__decoder__alloc() {
}
size_t
sizeof__wuffs_tga__decoder() {
sizeof__wuffs_tga__decoder(void) {
return sizeof(wuffs_tga__decoder);
}
@@ -60580,7 +60576,7 @@ wuffs_wbmp__decoder__initialize(
}
wuffs_wbmp__decoder*
wuffs_wbmp__decoder__alloc() {
wuffs_wbmp__decoder__alloc(void) {
wuffs_wbmp__decoder* x =
(wuffs_wbmp__decoder*)(calloc(sizeof(wuffs_wbmp__decoder), 1));
if (!x) {
@@ -60595,7 +60591,7 @@ wuffs_wbmp__decoder__alloc() {
}
size_t
sizeof__wuffs_wbmp__decoder() {
sizeof__wuffs_wbmp__decoder(void) {
return sizeof(wuffs_wbmp__decoder);
}
@@ -61494,7 +61490,7 @@ wuffs_xxhash32__hasher__initialize(
}
wuffs_xxhash32__hasher*
wuffs_xxhash32__hasher__alloc() {
wuffs_xxhash32__hasher__alloc(void) {
wuffs_xxhash32__hasher* x =
(wuffs_xxhash32__hasher*)(calloc(sizeof(wuffs_xxhash32__hasher), 1));
if (!x) {
@@ -61509,7 +61505,7 @@ wuffs_xxhash32__hasher__alloc() {
}
size_t
sizeof__wuffs_xxhash32__hasher() {
sizeof__wuffs_xxhash32__hasher(void) {
return sizeof(wuffs_xxhash32__hasher);
}
@@ -61907,7 +61903,7 @@ wuffs_xxhash64__hasher__initialize(
}
wuffs_xxhash64__hasher*
wuffs_xxhash64__hasher__alloc() {
wuffs_xxhash64__hasher__alloc(void) {
wuffs_xxhash64__hasher* x =
(wuffs_xxhash64__hasher*)(calloc(sizeof(wuffs_xxhash64__hasher), 1));
if (!x) {
@@ -61922,7 +61918,7 @@ wuffs_xxhash64__hasher__alloc() {
}
size_t
sizeof__wuffs_xxhash64__hasher() {
sizeof__wuffs_xxhash64__hasher(void) {
return sizeof(wuffs_xxhash64__hasher);
}
+133 -137
View File
@@ -42,6 +42,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
#include <stdbool.h>
#include <stdint.h>
@@ -79,15 +81,15 @@ extern "C" {
// each major.minor branch, the commit count should increase monotonically.
//
// WUFFS_VERSION was overridden by "wuffs gen -version" based on revision
// 5336b511e03b6166e6c2b8eed260e4d2b3fc1ae5 committed on 2023-10-06.
// ae8531f7f846fbbe3a7340bf88499ad294a1367b committed on 2023-10-07.
#define WUFFS_VERSION 0x000040000
#define WUFFS_VERSION_MAJOR 0
#define WUFFS_VERSION_MINOR 4
#define WUFFS_VERSION_PATCH 0
#define WUFFS_VERSION_PRE_RELEASE_LABEL "alpha.1"
#define WUFFS_VERSION_BUILD_METADATA_COMMIT_COUNT 3597
#define WUFFS_VERSION_BUILD_METADATA_COMMIT_DATE 20231006
#define WUFFS_VERSION_STRING "0.4.0-alpha.1+3597.20231006"
#define WUFFS_VERSION_PRE_RELEASE_LABEL "alpha.2"
#define WUFFS_VERSION_BUILD_METADATA_COMMIT_COUNT 3603
#define WUFFS_VERSION_BUILD_METADATA_COMMIT_DATE 20231007
#define WUFFS_VERSION_STRING "0.4.0-alpha.2+3603.20231007"
// ---------------- Configuration
@@ -195,7 +197,7 @@ extern "C" {
// ---------------- CPU Architecture
static inline bool //
wuffs_base__cpu_arch__have_arm_crc32() {
wuffs_base__cpu_arch__have_arm_crc32(void) {
#if defined(WUFFS_BASE__CPU_ARCH__ARM_CRC32)
return true;
#else
@@ -204,7 +206,7 @@ wuffs_base__cpu_arch__have_arm_crc32() {
}
static inline bool //
wuffs_base__cpu_arch__have_arm_neon() {
wuffs_base__cpu_arch__have_arm_neon(void) {
#if defined(WUFFS_BASE__CPU_ARCH__ARM_NEON)
return true;
#else
@@ -213,7 +215,7 @@ wuffs_base__cpu_arch__have_arm_neon() {
}
static inline bool //
wuffs_base__cpu_arch__have_x86_avx2() {
wuffs_base__cpu_arch__have_x86_avx2(void) {
#if defined(__PCLMUL__) && defined(__POPCNT__) && defined(__SSE4_2__) && \
defined(__AVX2__)
return true;
@@ -265,7 +267,7 @@ wuffs_base__cpu_arch__have_x86_avx2() {
}
static inline bool //
wuffs_base__cpu_arch__have_x86_bmi2() {
wuffs_base__cpu_arch__have_x86_bmi2(void) {
#if defined(__BMI2__)
return true;
#else
@@ -299,7 +301,7 @@ wuffs_base__cpu_arch__have_x86_bmi2() {
}
static inline bool //
wuffs_base__cpu_arch__have_x86_sse42() {
wuffs_base__cpu_arch__have_x86_sse42(void) {
#if defined(__PCLMUL__) && defined(__POPCNT__) && defined(__SSE4_2__)
return true;
#else
@@ -430,7 +432,7 @@ typedef struct wuffs_base__empty_struct__struct {
} wuffs_base__empty_struct;
static inline wuffs_base__empty_struct //
wuffs_base__make_empty_struct() {
wuffs_base__make_empty_struct(void) {
wuffs_base__empty_struct ret;
ret.private_impl = 0;
return ret;
@@ -1557,7 +1559,7 @@ wuffs_base__make_slice_u64_ij(uint64_t* ptr, size_t i, size_t j) {
}
static inline wuffs_base__slice_u8 //
wuffs_base__empty_slice_u8() {
wuffs_base__empty_slice_u8(void) {
wuffs_base__slice_u8 ret;
ret.ptr = NULL;
ret.len = 0;
@@ -1565,7 +1567,7 @@ wuffs_base__empty_slice_u8() {
}
static inline wuffs_base__slice_u16 //
wuffs_base__empty_slice_u16() {
wuffs_base__empty_slice_u16(void) {
wuffs_base__slice_u16 ret;
ret.ptr = NULL;
ret.len = 0;
@@ -1573,7 +1575,7 @@ wuffs_base__empty_slice_u16() {
}
static inline wuffs_base__slice_u32 //
wuffs_base__empty_slice_u32() {
wuffs_base__empty_slice_u32(void) {
wuffs_base__slice_u32 ret;
ret.ptr = NULL;
ret.len = 0;
@@ -1581,7 +1583,7 @@ wuffs_base__empty_slice_u32() {
}
static inline wuffs_base__slice_u64 //
wuffs_base__empty_slice_u64() {
wuffs_base__empty_slice_u64(void) {
wuffs_base__slice_u64 ret;
ret.ptr = NULL;
ret.len = 0;
@@ -1641,7 +1643,7 @@ wuffs_base__make_table_u64(uint64_t* ptr,
}
static inline wuffs_base__table_u8 //
wuffs_base__empty_table_u8() {
wuffs_base__empty_table_u8(void) {
wuffs_base__table_u8 ret;
ret.ptr = NULL;
ret.width = 0;
@@ -1651,7 +1653,7 @@ wuffs_base__empty_table_u8() {
}
static inline wuffs_base__table_u16 //
wuffs_base__empty_table_u16() {
wuffs_base__empty_table_u16(void) {
wuffs_base__table_u16 ret;
ret.ptr = NULL;
ret.width = 0;
@@ -1661,7 +1663,7 @@ wuffs_base__empty_table_u16() {
}
static inline wuffs_base__table_u32 //
wuffs_base__empty_table_u32() {
wuffs_base__empty_table_u32(void) {
wuffs_base__table_u32 ret;
ret.ptr = NULL;
ret.width = 0;
@@ -1671,7 +1673,7 @@ wuffs_base__empty_table_u32() {
}
static inline wuffs_base__table_u64 //
wuffs_base__empty_table_u64() {
wuffs_base__empty_table_u64(void) {
wuffs_base__table_u64 ret;
ret.ptr = NULL;
ret.width = 0;
@@ -1834,7 +1836,7 @@ typedef struct wuffs_base__range_ii_u32__struct {
} wuffs_base__range_ii_u32;
static inline wuffs_base__range_ii_u32 //
wuffs_base__empty_range_ii_u32() {
wuffs_base__empty_range_ii_u32(void) {
wuffs_base__range_ii_u32 ret;
ret.min_incl = 0;
ret.max_incl = 0;
@@ -1954,7 +1956,7 @@ typedef struct wuffs_base__range_ie_u32__struct {
} wuffs_base__range_ie_u32;
static inline wuffs_base__range_ie_u32 //
wuffs_base__empty_range_ie_u32() {
wuffs_base__empty_range_ie_u32(void) {
wuffs_base__range_ie_u32 ret;
ret.min_incl = 0;
ret.max_excl = 0;
@@ -2083,7 +2085,7 @@ typedef struct wuffs_base__range_ii_u64__struct {
} wuffs_base__range_ii_u64;
static inline wuffs_base__range_ii_u64 //
wuffs_base__empty_range_ii_u64() {
wuffs_base__empty_range_ii_u64(void) {
wuffs_base__range_ii_u64 ret;
ret.min_incl = 0;
ret.max_incl = 0;
@@ -2203,7 +2205,7 @@ typedef struct wuffs_base__range_ie_u64__struct {
} wuffs_base__range_ie_u64;
static inline wuffs_base__range_ie_u64 //
wuffs_base__empty_range_ie_u64() {
wuffs_base__empty_range_ie_u64(void) {
wuffs_base__range_ie_u64 ret;
ret.min_incl = 0;
ret.max_excl = 0;
@@ -2334,7 +2336,7 @@ typedef struct wuffs_base__rect_ii_u32__struct {
} wuffs_base__rect_ii_u32;
static inline wuffs_base__rect_ii_u32 //
wuffs_base__empty_rect_ii_u32() {
wuffs_base__empty_rect_ii_u32(void) {
wuffs_base__rect_ii_u32 ret;
ret.min_incl_x = 0;
ret.min_incl_y = 0;
@@ -2471,7 +2473,7 @@ typedef struct wuffs_base__rect_ie_u32__struct {
} wuffs_base__rect_ie_u32;
static inline wuffs_base__rect_ie_u32 //
wuffs_base__empty_rect_ie_u32() {
wuffs_base__empty_rect_ie_u32(void) {
wuffs_base__rect_ie_u32 ret;
ret.min_incl_x = 0;
ret.min_incl_y = 0;
@@ -2644,7 +2646,7 @@ typedef struct wuffs_base__more_information__struct {
#define WUFFS_BASE__MORE_INFORMATION__FLAVOR__METADATA_PARSED 5
static inline wuffs_base__more_information //
wuffs_base__empty_more_information() {
wuffs_base__empty_more_information(void) {
wuffs_base__more_information ret;
ret.flavor = 0;
ret.w = 0;
@@ -2957,7 +2959,7 @@ wuffs_base__slice_u8__writer(wuffs_base__slice_u8 s) {
}
static inline wuffs_base__io_buffer //
wuffs_base__empty_io_buffer() {
wuffs_base__empty_io_buffer(void) {
wuffs_base__io_buffer ret;
ret.data.ptr = NULL;
ret.data.len = 0;
@@ -2969,7 +2971,7 @@ wuffs_base__empty_io_buffer() {
}
static inline wuffs_base__io_buffer_meta //
wuffs_base__empty_io_buffer_meta() {
wuffs_base__empty_io_buffer_meta(void) {
wuffs_base__io_buffer_meta ret;
ret.wi = 0;
ret.ri = 0;
@@ -3430,7 +3432,7 @@ wuffs_base__make_slice_token(wuffs_base__token* ptr, size_t len) {
}
static inline wuffs_base__slice_token //
wuffs_base__empty_slice_token() {
wuffs_base__empty_slice_token(void) {
wuffs_base__slice_token ret;
ret.ptr = NULL;
ret.len = 0;
@@ -3519,7 +3521,7 @@ wuffs_base__slice_token__writer(wuffs_base__slice_token s) {
}
static inline wuffs_base__token_buffer //
wuffs_base__empty_token_buffer() {
wuffs_base__empty_token_buffer(void) {
wuffs_base__token_buffer ret;
ret.data.ptr = NULL;
ret.data.len = 0;
@@ -3531,7 +3533,7 @@ wuffs_base__empty_token_buffer() {
}
static inline wuffs_base__token_buffer_meta //
wuffs_base__empty_token_buffer_meta() {
wuffs_base__empty_token_buffer_meta(void) {
wuffs_base__token_buffer_meta ret;
ret.wi = 0;
ret.ri = 0;
@@ -4369,7 +4371,7 @@ typedef struct wuffs_base__pixel_config__struct {
} wuffs_base__pixel_config;
static inline wuffs_base__pixel_config //
wuffs_base__null_pixel_config() {
wuffs_base__null_pixel_config(void) {
wuffs_base__pixel_config ret;
ret.private_impl.pixfmt.repr = 0;
ret.private_impl.pixsub.repr = 0;
@@ -4578,7 +4580,7 @@ typedef struct wuffs_base__image_config__struct {
} wuffs_base__image_config;
static inline wuffs_base__image_config //
wuffs_base__null_image_config() {
wuffs_base__null_image_config(void) {
wuffs_base__image_config ret;
ret.pixcfg = wuffs_base__null_pixel_config();
ret.private_impl.first_frame_io_position = 0;
@@ -4738,7 +4740,7 @@ typedef struct wuffs_base__frame_config__struct {
} wuffs_base__frame_config;
static inline wuffs_base__frame_config //
wuffs_base__null_frame_config() {
wuffs_base__null_frame_config(void) {
wuffs_base__frame_config ret;
ret.private_impl.bounds = wuffs_base__make_rect_ie_u32(0, 0, 0, 0);
ret.private_impl.duration = 0;
@@ -4970,7 +4972,7 @@ typedef struct wuffs_base__pixel_buffer__struct {
} wuffs_base__pixel_buffer;
static inline wuffs_base__pixel_buffer //
wuffs_base__null_pixel_buffer() {
wuffs_base__null_pixel_buffer(void) {
wuffs_base__pixel_buffer ret;
ret.pixcfg = wuffs_base__null_pixel_config();
ret.private_impl.planes[0] = wuffs_base__empty_table_u8();
@@ -5220,12 +5222,6 @@ wuffs_base__pixel_buffer::color_u32_at(uint32_t x, uint32_t y) const {
return wuffs_base__pixel_buffer__color_u32_at(this, x, y);
}
WUFFS_BASE__MAYBE_STATIC wuffs_base__status //
wuffs_base__pixel_buffer__set_color_u32_fill_rect(
wuffs_base__pixel_buffer* pb,
wuffs_base__rect_ie_u32 rect,
wuffs_base__color_u32_argb_premul color);
inline wuffs_base__status //
wuffs_base__pixel_buffer::set_color_u32_at(
uint32_t x,
@@ -5769,7 +5765,7 @@ wuffs_base__base_16__encode2(wuffs_base__slice_u8 dst,
// function requires the WUFFS_CONFIG__MODULE__BASE__INTCONV sub-module, not
// just WUFFS_CONFIG__MODULE__BASE__CORE.
WUFFS_BASE__MAYBE_STATIC wuffs_base__transform__output //
wuffs_base__base_16__encode2(wuffs_base__slice_u8 dst,
wuffs_base__base_16__encode4(wuffs_base__slice_u8 dst,
wuffs_base__slice_u8 src,
bool src_closed,
uint32_t options);
@@ -6719,7 +6715,7 @@ wuffs_adler32__hasher__initialize(
uint32_t options);
size_t
sizeof__wuffs_adler32__hasher();
sizeof__wuffs_adler32__hasher(void);
// ---------------- Allocs
@@ -6730,10 +6726,10 @@ sizeof__wuffs_adler32__hasher();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_adler32__hasher*
wuffs_adler32__hasher__alloc();
wuffs_adler32__hasher__alloc(void);
static inline wuffs_base__hasher_u32*
wuffs_adler32__hasher__alloc_as__wuffs_base__hasher_u32() {
wuffs_adler32__hasher__alloc_as__wuffs_base__hasher_u32(void) {
return (wuffs_base__hasher_u32*)(wuffs_adler32__hasher__alloc());
}
@@ -6950,7 +6946,7 @@ wuffs_bmp__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_bmp__decoder();
sizeof__wuffs_bmp__decoder(void);
// ---------------- Allocs
@@ -6961,10 +6957,10 @@ sizeof__wuffs_bmp__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_bmp__decoder*
wuffs_bmp__decoder__alloc();
wuffs_bmp__decoder__alloc(void);
static inline wuffs_base__image_decoder*
wuffs_bmp__decoder__alloc_as__wuffs_base__image_decoder() {
wuffs_bmp__decoder__alloc_as__wuffs_base__image_decoder(void) {
return (wuffs_base__image_decoder*)(wuffs_bmp__decoder__alloc());
}
@@ -7348,7 +7344,7 @@ wuffs_bzip2__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_bzip2__decoder();
sizeof__wuffs_bzip2__decoder(void);
// ---------------- Allocs
@@ -7359,10 +7355,10 @@ sizeof__wuffs_bzip2__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_bzip2__decoder*
wuffs_bzip2__decoder__alloc();
wuffs_bzip2__decoder__alloc(void);
static inline wuffs_base__io_transformer*
wuffs_bzip2__decoder__alloc_as__wuffs_base__io_transformer() {
wuffs_bzip2__decoder__alloc_as__wuffs_base__io_transformer(void) {
return (wuffs_base__io_transformer*)(wuffs_bzip2__decoder__alloc());
}
@@ -7654,7 +7650,7 @@ wuffs_cbor__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_cbor__decoder();
sizeof__wuffs_cbor__decoder(void);
// ---------------- Allocs
@@ -7665,10 +7661,10 @@ sizeof__wuffs_cbor__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_cbor__decoder*
wuffs_cbor__decoder__alloc();
wuffs_cbor__decoder__alloc(void);
static inline wuffs_base__token_decoder*
wuffs_cbor__decoder__alloc_as__wuffs_base__token_decoder() {
wuffs_cbor__decoder__alloc_as__wuffs_base__token_decoder(void) {
return (wuffs_base__token_decoder*)(wuffs_cbor__decoder__alloc());
}
@@ -7887,7 +7883,7 @@ wuffs_crc32__ieee_hasher__initialize(
uint32_t options);
size_t
sizeof__wuffs_crc32__ieee_hasher();
sizeof__wuffs_crc32__ieee_hasher(void);
// ---------------- Allocs
@@ -7898,10 +7894,10 @@ sizeof__wuffs_crc32__ieee_hasher();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_crc32__ieee_hasher*
wuffs_crc32__ieee_hasher__alloc();
wuffs_crc32__ieee_hasher__alloc(void);
static inline wuffs_base__hasher_u32*
wuffs_crc32__ieee_hasher__alloc_as__wuffs_base__hasher_u32() {
wuffs_crc32__ieee_hasher__alloc_as__wuffs_base__hasher_u32(void) {
return (wuffs_base__hasher_u32*)(wuffs_crc32__ieee_hasher__alloc());
}
@@ -8127,7 +8123,7 @@ wuffs_deflate__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_deflate__decoder();
sizeof__wuffs_deflate__decoder(void);
// ---------------- Allocs
@@ -8138,10 +8134,10 @@ sizeof__wuffs_deflate__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_deflate__decoder*
wuffs_deflate__decoder__alloc();
wuffs_deflate__decoder__alloc(void);
static inline wuffs_base__io_transformer*
wuffs_deflate__decoder__alloc_as__wuffs_base__io_transformer() {
wuffs_deflate__decoder__alloc_as__wuffs_base__io_transformer(void) {
return (wuffs_base__io_transformer*)(wuffs_deflate__decoder__alloc());
}
@@ -8439,7 +8435,7 @@ wuffs_gif__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_gif__decoder();
sizeof__wuffs_gif__decoder(void);
// ---------------- Allocs
@@ -8450,10 +8446,10 @@ sizeof__wuffs_gif__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_gif__decoder*
wuffs_gif__decoder__alloc();
wuffs_gif__decoder__alloc(void);
static inline wuffs_base__image_decoder*
wuffs_gif__decoder__alloc_as__wuffs_base__image_decoder() {
wuffs_gif__decoder__alloc_as__wuffs_base__image_decoder(void) {
return (wuffs_base__image_decoder*)(wuffs_gif__decoder__alloc());
}
@@ -8905,7 +8901,7 @@ wuffs_gzip__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_gzip__decoder();
sizeof__wuffs_gzip__decoder(void);
// ---------------- Allocs
@@ -8916,10 +8912,10 @@ sizeof__wuffs_gzip__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_gzip__decoder*
wuffs_gzip__decoder__alloc();
wuffs_gzip__decoder__alloc(void);
static inline wuffs_base__io_transformer*
wuffs_gzip__decoder__alloc_as__wuffs_base__io_transformer() {
wuffs_gzip__decoder__alloc_as__wuffs_base__io_transformer(void) {
return (wuffs_base__io_transformer*)(wuffs_gzip__decoder__alloc());
}
@@ -9166,7 +9162,7 @@ wuffs_jpeg__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_jpeg__decoder();
sizeof__wuffs_jpeg__decoder(void);
// ---------------- Allocs
@@ -9177,10 +9173,10 @@ sizeof__wuffs_jpeg__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_jpeg__decoder*
wuffs_jpeg__decoder__alloc();
wuffs_jpeg__decoder__alloc(void);
static inline wuffs_base__image_decoder*
wuffs_jpeg__decoder__alloc_as__wuffs_base__image_decoder() {
wuffs_jpeg__decoder__alloc_as__wuffs_base__image_decoder(void) {
return (wuffs_base__image_decoder*)(wuffs_jpeg__decoder__alloc());
}
@@ -9705,7 +9701,7 @@ wuffs_json__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_json__decoder();
sizeof__wuffs_json__decoder(void);
// ---------------- Allocs
@@ -9716,10 +9712,10 @@ sizeof__wuffs_json__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_json__decoder*
wuffs_json__decoder__alloc();
wuffs_json__decoder__alloc(void);
static inline wuffs_base__token_decoder*
wuffs_json__decoder__alloc_as__wuffs_base__token_decoder() {
wuffs_json__decoder__alloc_as__wuffs_base__token_decoder(void) {
return (wuffs_base__token_decoder*)(wuffs_json__decoder__alloc());
}
@@ -9954,7 +9950,7 @@ wuffs_lzw__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_lzw__decoder();
sizeof__wuffs_lzw__decoder(void);
// ---------------- Allocs
@@ -9965,10 +9961,10 @@ sizeof__wuffs_lzw__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_lzw__decoder*
wuffs_lzw__decoder__alloc();
wuffs_lzw__decoder__alloc(void);
static inline wuffs_base__io_transformer*
wuffs_lzw__decoder__alloc_as__wuffs_base__io_transformer() {
wuffs_lzw__decoder__alloc_as__wuffs_base__io_transformer(void) {
return (wuffs_base__io_transformer*)(wuffs_lzw__decoder__alloc());
}
@@ -10212,7 +10208,7 @@ wuffs_netpbm__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_netpbm__decoder();
sizeof__wuffs_netpbm__decoder(void);
// ---------------- Allocs
@@ -10223,10 +10219,10 @@ sizeof__wuffs_netpbm__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_netpbm__decoder*
wuffs_netpbm__decoder__alloc();
wuffs_netpbm__decoder__alloc(void);
static inline wuffs_base__image_decoder*
wuffs_netpbm__decoder__alloc_as__wuffs_base__image_decoder() {
wuffs_netpbm__decoder__alloc_as__wuffs_base__image_decoder(void) {
return (wuffs_base__image_decoder*)(wuffs_netpbm__decoder__alloc());
}
@@ -10570,7 +10566,7 @@ wuffs_nie__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_nie__decoder();
sizeof__wuffs_nie__decoder(void);
// ---------------- Allocs
@@ -10581,10 +10577,10 @@ sizeof__wuffs_nie__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_nie__decoder*
wuffs_nie__decoder__alloc();
wuffs_nie__decoder__alloc(void);
static inline wuffs_base__image_decoder*
wuffs_nie__decoder__alloc_as__wuffs_base__image_decoder() {
wuffs_nie__decoder__alloc_as__wuffs_base__image_decoder(void) {
return (wuffs_base__image_decoder*)(wuffs_nie__decoder__alloc());
}
@@ -10938,7 +10934,7 @@ wuffs_zlib__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_zlib__decoder();
sizeof__wuffs_zlib__decoder(void);
// ---------------- Allocs
@@ -10949,10 +10945,10 @@ sizeof__wuffs_zlib__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_zlib__decoder*
wuffs_zlib__decoder__alloc();
wuffs_zlib__decoder__alloc(void);
static inline wuffs_base__io_transformer*
wuffs_zlib__decoder__alloc_as__wuffs_base__io_transformer() {
wuffs_zlib__decoder__alloc_as__wuffs_base__io_transformer(void) {
return (wuffs_base__io_transformer*)(wuffs_zlib__decoder__alloc());
}
@@ -11218,7 +11214,7 @@ wuffs_png__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_png__decoder();
sizeof__wuffs_png__decoder(void);
// ---------------- Allocs
@@ -11229,10 +11225,10 @@ sizeof__wuffs_png__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_png__decoder*
wuffs_png__decoder__alloc();
wuffs_png__decoder__alloc(void);
static inline wuffs_base__image_decoder*
wuffs_png__decoder__alloc_as__wuffs_base__image_decoder() {
wuffs_png__decoder__alloc_as__wuffs_base__image_decoder(void) {
return (wuffs_base__image_decoder*)(wuffs_png__decoder__alloc());
}
@@ -11724,7 +11720,7 @@ wuffs_tga__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_tga__decoder();
sizeof__wuffs_tga__decoder(void);
// ---------------- Allocs
@@ -11735,10 +11731,10 @@ sizeof__wuffs_tga__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_tga__decoder*
wuffs_tga__decoder__alloc();
wuffs_tga__decoder__alloc(void);
static inline wuffs_base__image_decoder*
wuffs_tga__decoder__alloc_as__wuffs_base__image_decoder() {
wuffs_tga__decoder__alloc_as__wuffs_base__image_decoder(void) {
return (wuffs_base__image_decoder*)(wuffs_tga__decoder__alloc());
}
@@ -12111,7 +12107,7 @@ wuffs_wbmp__decoder__initialize(
uint32_t options);
size_t
sizeof__wuffs_wbmp__decoder();
sizeof__wuffs_wbmp__decoder(void);
// ---------------- Allocs
@@ -12122,10 +12118,10 @@ sizeof__wuffs_wbmp__decoder();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_wbmp__decoder*
wuffs_wbmp__decoder__alloc();
wuffs_wbmp__decoder__alloc(void);
static inline wuffs_base__image_decoder*
wuffs_wbmp__decoder__alloc_as__wuffs_base__image_decoder() {
wuffs_wbmp__decoder__alloc_as__wuffs_base__image_decoder(void) {
return (wuffs_base__image_decoder*)(wuffs_wbmp__decoder__alloc());
}
@@ -12471,7 +12467,7 @@ wuffs_xxhash32__hasher__initialize(
uint32_t options);
size_t
sizeof__wuffs_xxhash32__hasher();
sizeof__wuffs_xxhash32__hasher(void);
// ---------------- Allocs
@@ -12482,10 +12478,10 @@ sizeof__wuffs_xxhash32__hasher();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_xxhash32__hasher*
wuffs_xxhash32__hasher__alloc();
wuffs_xxhash32__hasher__alloc(void);
static inline wuffs_base__hasher_u32*
wuffs_xxhash32__hasher__alloc_as__wuffs_base__hasher_u32() {
wuffs_xxhash32__hasher__alloc_as__wuffs_base__hasher_u32(void) {
return (wuffs_base__hasher_u32*)(wuffs_xxhash32__hasher__alloc());
}
@@ -12697,7 +12693,7 @@ wuffs_xxhash64__hasher__initialize(
uint32_t options);
size_t
sizeof__wuffs_xxhash64__hasher();
sizeof__wuffs_xxhash64__hasher(void);
// ---------------- Allocs
@@ -12708,10 +12704,10 @@ sizeof__wuffs_xxhash64__hasher();
// std::unique_ptr<T, wuffs_unique_ptr_deleter>.
wuffs_xxhash64__hasher*
wuffs_xxhash64__hasher__alloc();
wuffs_xxhash64__hasher__alloc(void);
static inline wuffs_base__hasher_u64*
wuffs_xxhash64__hasher__alloc_as__wuffs_base__hasher_u64() {
wuffs_xxhash64__hasher__alloc_as__wuffs_base__hasher_u64(void) {
return (wuffs_base__hasher_u64*)(wuffs_xxhash64__hasher__alloc());
}
@@ -27183,7 +27179,7 @@ wuffs_adler32__hasher__initialize(
}
wuffs_adler32__hasher*
wuffs_adler32__hasher__alloc() {
wuffs_adler32__hasher__alloc(void) {
wuffs_adler32__hasher* x =
(wuffs_adler32__hasher*)(calloc(sizeof(wuffs_adler32__hasher), 1));
if (!x) {
@@ -27198,7 +27194,7 @@ wuffs_adler32__hasher__alloc() {
}
size_t
sizeof__wuffs_adler32__hasher() {
sizeof__wuffs_adler32__hasher(void) {
return sizeof(wuffs_adler32__hasher);
}
@@ -27790,7 +27786,7 @@ wuffs_bmp__decoder__initialize(
}
wuffs_bmp__decoder*
wuffs_bmp__decoder__alloc() {
wuffs_bmp__decoder__alloc(void) {
wuffs_bmp__decoder* x =
(wuffs_bmp__decoder*)(calloc(sizeof(wuffs_bmp__decoder), 1));
if (!x) {
@@ -27805,7 +27801,7 @@ wuffs_bmp__decoder__alloc() {
}
size_t
sizeof__wuffs_bmp__decoder() {
sizeof__wuffs_bmp__decoder(void) {
return sizeof(wuffs_bmp__decoder);
}
@@ -30572,7 +30568,7 @@ wuffs_bzip2__decoder__initialize(
}
wuffs_bzip2__decoder*
wuffs_bzip2__decoder__alloc() {
wuffs_bzip2__decoder__alloc(void) {
wuffs_bzip2__decoder* x =
(wuffs_bzip2__decoder*)(calloc(sizeof(wuffs_bzip2__decoder), 1));
if (!x) {
@@ -30587,7 +30583,7 @@ wuffs_bzip2__decoder__alloc() {
}
size_t
sizeof__wuffs_bzip2__decoder() {
sizeof__wuffs_bzip2__decoder(void) {
return sizeof(wuffs_bzip2__decoder);
}
@@ -32128,7 +32124,7 @@ wuffs_cbor__decoder__initialize(
}
wuffs_cbor__decoder*
wuffs_cbor__decoder__alloc() {
wuffs_cbor__decoder__alloc(void) {
wuffs_cbor__decoder* x =
(wuffs_cbor__decoder*)(calloc(sizeof(wuffs_cbor__decoder), 1));
if (!x) {
@@ -32143,7 +32139,7 @@ wuffs_cbor__decoder__alloc() {
}
size_t
sizeof__wuffs_cbor__decoder() {
sizeof__wuffs_cbor__decoder(void) {
return sizeof(wuffs_cbor__decoder);
}
@@ -33489,7 +33485,7 @@ wuffs_crc32__ieee_hasher__initialize(
}
wuffs_crc32__ieee_hasher*
wuffs_crc32__ieee_hasher__alloc() {
wuffs_crc32__ieee_hasher__alloc(void) {
wuffs_crc32__ieee_hasher* x =
(wuffs_crc32__ieee_hasher*)(calloc(sizeof(wuffs_crc32__ieee_hasher), 1));
if (!x) {
@@ -33504,7 +33500,7 @@ wuffs_crc32__ieee_hasher__alloc() {
}
size_t
sizeof__wuffs_crc32__ieee_hasher() {
sizeof__wuffs_crc32__ieee_hasher(void) {
return sizeof(wuffs_crc32__ieee_hasher);
}
@@ -34278,7 +34274,7 @@ wuffs_deflate__decoder__initialize(
}
wuffs_deflate__decoder*
wuffs_deflate__decoder__alloc() {
wuffs_deflate__decoder__alloc(void) {
wuffs_deflate__decoder* x =
(wuffs_deflate__decoder*)(calloc(sizeof(wuffs_deflate__decoder), 1));
if (!x) {
@@ -34293,7 +34289,7 @@ wuffs_deflate__decoder__alloc() {
}
size_t
sizeof__wuffs_deflate__decoder() {
sizeof__wuffs_deflate__decoder(void) {
return sizeof(wuffs_deflate__decoder);
}
@@ -36694,7 +36690,7 @@ wuffs_gif__decoder__initialize(
}
wuffs_gif__decoder*
wuffs_gif__decoder__alloc() {
wuffs_gif__decoder__alloc(void) {
wuffs_gif__decoder* x =
(wuffs_gif__decoder*)(calloc(sizeof(wuffs_gif__decoder), 1));
if (!x) {
@@ -36709,7 +36705,7 @@ wuffs_gif__decoder__alloc() {
}
size_t
sizeof__wuffs_gif__decoder() {
sizeof__wuffs_gif__decoder(void) {
return sizeof(wuffs_gif__decoder);
}
@@ -39617,7 +39613,7 @@ wuffs_gzip__decoder__initialize(
}
wuffs_gzip__decoder*
wuffs_gzip__decoder__alloc() {
wuffs_gzip__decoder__alloc(void) {
wuffs_gzip__decoder* x =
(wuffs_gzip__decoder*)(calloc(sizeof(wuffs_gzip__decoder), 1));
if (!x) {
@@ -39632,7 +39628,7 @@ wuffs_gzip__decoder__alloc() {
}
size_t
sizeof__wuffs_gzip__decoder() {
sizeof__wuffs_gzip__decoder(void) {
return sizeof(wuffs_gzip__decoder);
}
@@ -40704,7 +40700,7 @@ wuffs_jpeg__decoder__initialize(
}
wuffs_jpeg__decoder*
wuffs_jpeg__decoder__alloc() {
wuffs_jpeg__decoder__alloc(void) {
wuffs_jpeg__decoder* x =
(wuffs_jpeg__decoder*)(calloc(sizeof(wuffs_jpeg__decoder), 1));
if (!x) {
@@ -40719,7 +40715,7 @@ wuffs_jpeg__decoder__alloc() {
}
size_t
sizeof__wuffs_jpeg__decoder() {
sizeof__wuffs_jpeg__decoder(void) {
return sizeof(wuffs_jpeg__decoder);
}
@@ -47168,7 +47164,7 @@ wuffs_json__decoder__initialize(
}
wuffs_json__decoder*
wuffs_json__decoder__alloc() {
wuffs_json__decoder__alloc(void) {
wuffs_json__decoder* x =
(wuffs_json__decoder*)(calloc(sizeof(wuffs_json__decoder), 1));
if (!x) {
@@ -47183,7 +47179,7 @@ wuffs_json__decoder__alloc() {
}
size_t
sizeof__wuffs_json__decoder() {
sizeof__wuffs_json__decoder(void) {
return sizeof(wuffs_json__decoder);
}
@@ -49155,7 +49151,7 @@ wuffs_lzw__decoder__initialize(
}
wuffs_lzw__decoder*
wuffs_lzw__decoder__alloc() {
wuffs_lzw__decoder__alloc(void) {
wuffs_lzw__decoder* x =
(wuffs_lzw__decoder*)(calloc(sizeof(wuffs_lzw__decoder), 1));
if (!x) {
@@ -49170,7 +49166,7 @@ wuffs_lzw__decoder__alloc() {
}
size_t
sizeof__wuffs_lzw__decoder() {
sizeof__wuffs_lzw__decoder(void) {
return sizeof(wuffs_lzw__decoder);
}
@@ -49772,7 +49768,7 @@ wuffs_netpbm__decoder__initialize(
}
wuffs_netpbm__decoder*
wuffs_netpbm__decoder__alloc() {
wuffs_netpbm__decoder__alloc(void) {
wuffs_netpbm__decoder* x =
(wuffs_netpbm__decoder*)(calloc(sizeof(wuffs_netpbm__decoder), 1));
if (!x) {
@@ -49787,7 +49783,7 @@ wuffs_netpbm__decoder__alloc() {
}
size_t
sizeof__wuffs_netpbm__decoder() {
sizeof__wuffs_netpbm__decoder(void) {
return sizeof(wuffs_netpbm__decoder);
}
@@ -50930,7 +50926,7 @@ wuffs_nie__decoder__initialize(
}
wuffs_nie__decoder*
wuffs_nie__decoder__alloc() {
wuffs_nie__decoder__alloc(void) {
wuffs_nie__decoder* x =
(wuffs_nie__decoder*)(calloc(sizeof(wuffs_nie__decoder), 1));
if (!x) {
@@ -50945,7 +50941,7 @@ wuffs_nie__decoder__alloc() {
}
size_t
sizeof__wuffs_nie__decoder() {
sizeof__wuffs_nie__decoder(void) {
return sizeof(wuffs_nie__decoder);
}
@@ -51991,7 +51987,7 @@ wuffs_zlib__decoder__initialize(
}
wuffs_zlib__decoder*
wuffs_zlib__decoder__alloc() {
wuffs_zlib__decoder__alloc(void) {
wuffs_zlib__decoder* x =
(wuffs_zlib__decoder*)(calloc(sizeof(wuffs_zlib__decoder), 1));
if (!x) {
@@ -52006,7 +52002,7 @@ wuffs_zlib__decoder__alloc() {
}
size_t
sizeof__wuffs_zlib__decoder() {
sizeof__wuffs_zlib__decoder(void) {
return sizeof(wuffs_zlib__decoder);
}
@@ -52961,7 +52957,7 @@ wuffs_png__decoder__initialize(
}
wuffs_png__decoder*
wuffs_png__decoder__alloc() {
wuffs_png__decoder__alloc(void) {
wuffs_png__decoder* x =
(wuffs_png__decoder*)(calloc(sizeof(wuffs_png__decoder), 1));
if (!x) {
@@ -52976,7 +52972,7 @@ wuffs_png__decoder__alloc() {
}
size_t
sizeof__wuffs_png__decoder() {
sizeof__wuffs_png__decoder(void) {
return sizeof(wuffs_png__decoder);
}
@@ -59127,7 +59123,7 @@ wuffs_tga__decoder__initialize(
}
wuffs_tga__decoder*
wuffs_tga__decoder__alloc() {
wuffs_tga__decoder__alloc(void) {
wuffs_tga__decoder* x =
(wuffs_tga__decoder*)(calloc(sizeof(wuffs_tga__decoder), 1));
if (!x) {
@@ -59142,7 +59138,7 @@ wuffs_tga__decoder__alloc() {
}
size_t
sizeof__wuffs_tga__decoder() {
sizeof__wuffs_tga__decoder(void) {
return sizeof(wuffs_tga__decoder);
}
@@ -60581,7 +60577,7 @@ wuffs_wbmp__decoder__initialize(
}
wuffs_wbmp__decoder*
wuffs_wbmp__decoder__alloc() {
wuffs_wbmp__decoder__alloc(void) {
wuffs_wbmp__decoder* x =
(wuffs_wbmp__decoder*)(calloc(sizeof(wuffs_wbmp__decoder), 1));
if (!x) {
@@ -60596,7 +60592,7 @@ wuffs_wbmp__decoder__alloc() {
}
size_t
sizeof__wuffs_wbmp__decoder() {
sizeof__wuffs_wbmp__decoder(void) {
return sizeof(wuffs_wbmp__decoder);
}
@@ -61495,7 +61491,7 @@ wuffs_xxhash32__hasher__initialize(
}
wuffs_xxhash32__hasher*
wuffs_xxhash32__hasher__alloc() {
wuffs_xxhash32__hasher__alloc(void) {
wuffs_xxhash32__hasher* x =
(wuffs_xxhash32__hasher*)(calloc(sizeof(wuffs_xxhash32__hasher), 1));
if (!x) {
@@ -61510,7 +61506,7 @@ wuffs_xxhash32__hasher__alloc() {
}
size_t
sizeof__wuffs_xxhash32__hasher() {
sizeof__wuffs_xxhash32__hasher(void) {
return sizeof(wuffs_xxhash32__hasher);
}
@@ -61908,7 +61904,7 @@ wuffs_xxhash64__hasher__initialize(
}
wuffs_xxhash64__hasher*
wuffs_xxhash64__hasher__alloc() {
wuffs_xxhash64__hasher__alloc(void) {
wuffs_xxhash64__hasher* x =
(wuffs_xxhash64__hasher*)(calloc(sizeof(wuffs_xxhash64__hasher), 1));
if (!x) {
@@ -61923,7 +61919,7 @@ wuffs_xxhash64__hasher__alloc() {
}
size_t
sizeof__wuffs_xxhash64__hasher() {
sizeof__wuffs_xxhash64__hasher(void) {
return sizeof(wuffs_xxhash64__hasher);
}
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -6,6 +6,8 @@
# <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
# option. This file may not be copied, modified, or distributed
# except according to those terms.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
# ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -6,6 +6,8 @@
# <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
# option. This file may not be copied, modified, or distributed
# except according to those terms.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
# ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -6,6 +6,8 @@
# <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
# option. This file may not be copied, modified, or distributed
# except according to those terms.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
# ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -6,6 +6,8 @@
# <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
# option. This file may not be copied, modified, or distributed
# except according to those terms.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
# ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
//go:build ignore
// +build ignore
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// TODO: drop the '?' but still generate wuffs_adler32__hasher__initialize?
pub struct hasher? implements base.hasher_u32(
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pri func hasher.up_arm_neon!(x: roslice base.u8),
choose cpu_arch >= arm_neon,
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pri func hasher.up_x86_sse42!(x: roslice base.u8),
choose cpu_arch >= x86_sse42,
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pub status "#bad header"
pub status "#bad RLE compression"
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pub status "#bad Huffman code (over-subscribed)"
pub status "#bad Huffman code (under-subscribed)"
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pri func decoder.flush_fast!(dst: base.io_writer) {
var flush_pointer : base.u32[..= 1_048575]
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pri func decoder.flush_slow?(dst: base.io_writer) {
var flush_pointer : base.u32[..= 1_048575]
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pri func decoder.decode_huffman_fast!(src: base.io_reader) base.status {
var bits : base.u32
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pri func decoder.decode_huffman_slow?(src: base.io_reader) {
var c : base.u8
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pub status "#bad input"
pub status "#unsupported recursion depth"
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// TODO: drop the '?' but still generate wuffs_crc32__ieee_hasher__initialize?
pub struct ieee_hasher? implements base.hasher_u32(
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pri func ieee_hasher.up_arm_crc32!(x: roslice base.u8),
choose cpu_arch >= arm_crc32,
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// --------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// --------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// CODE_ORDER is defined in the RFC section 3.2.7.
pri const CODE_ORDER : roarray[19] base.u8[..= 18] = [
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pub status "#bad Huffman code (over-subscribed)"
pub status "#bad Huffman code (under-subscribed)"
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// decode_huffman_bmi2 is exactly the same as decode_huffman_fast64 except for
// the "choose cpu_arch >= x86_bmi2". Unsurprisingly, having Bit Manipulation
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// TODO: describe how the xxx_fastxx version differs from the xxx_slow one, the
// assumptions that xxx_fastxx makes, and how that makes it fast.
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// TODO: describe how the xxx_fastxx version differs from the xxx_slow one, the
// assumptions that xxx_fastxx makes, and how that makes it fast.
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pri func decoder.decode_huffman_slow?(dst: base.io_writer, src: base.io_reader) {
var bits : base.u32
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pub status "#bad LZW code"
pub status "#bad extension label"
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pub struct decoder? implements base.image_decoder(
// These upper bounds should be 0xFFFF, on a strict reading of the GIF
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// --------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// --------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
use "std/crc32"
use "std/deflate"
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// --------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pri func decoder.decode_idct!(dst_buffer: slice base.u8, dst_stride: base.u64, q: base.u32[..= 3]),
choosy,
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pri func decoder.decode_idct_x86_avx2!(dst_buffer: slice base.u8, dst_stride: base.u64, q: base.u32[..= 3]),
choose cpu_arch >= x86_avx2,
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pub status "#bad DHT marker"
pub status "#bad DQT marker"
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pri func decoder.decode_mcu!(workbuf: slice base.u8, mx: base.u32[..= 0x1FFF], my: base.u32[..= 0x1FFF]) base.u32,
choosy,
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pri func decoder.decode_mcu_progressive_ac_high_bits!(workbuf: slice base.u8, mx: base.u32[..= 0x1FFF], my: base.u32[..= 0x1FFF]) base.u32 {
var ret : base.u32
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pri func decoder.decode_mcu_progressive_ac_low_bit!(workbuf: slice base.u8, mx: base.u32[..= 0x1FFF], my: base.u32[..= 0x1FFF]) base.u32 {
var ret : base.u32
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pri func decoder.decode_mcu_progressive_dc_high_bits!(workbuf: slice base.u8, mx: base.u32[..= 0x1FFF], my: base.u32[..= 0x1FFF]) base.u32 {
var ret : base.u32
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pri func decoder.decode_mcu_progressive_dc_low_bit!(workbuf: slice base.u8, mx: base.u32[..= 0x1FFF], my: base.u32[..= 0x1FFF]) base.u32 {
var ret : base.u32
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pub status "#bad C0 control code"
pub status "#bad UTF-8"
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pub struct decoder? implements base.token_decoder(
quirks : array[QUIRKS_COUNT] base.bool,
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// --------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pub status "#bad code"
pub status "#truncated input"
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// --------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pub status "#bad header"
pub status "#truncated input"
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pub status "#bad header"
pub status "#truncated input"
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pub status "#bad animation sequence number"
pub status "#bad checksum"
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// --------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// --------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// --------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
use "std/crc32"
use "std/zlib"
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pri func decoder.filter_and_swizzle!(dst: ptr base.pixel_buffer, workbuf: slice base.u8) base.status,
choosy,
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pri func decoder.filter_and_swizzle_tricky!(dst: ptr base.pixel_buffer, workbuf: slice base.u8) base.status {
var dst_pixfmt : base.pixel_format
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pub status "#bad header"
pub status "#bad run length encoding"
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pub status "#bad header"
pub status "#truncated input"
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pri const XXH_PRIME32_1 : base.u32 = 0x9E37_79B1
pri const XXH_PRIME32_2 : base.u32 = 0x85EB_CA77
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
pri const XXH_PRIME64_1 : base.u64 = 0x9E37_79B1_85EB_CA87
pri const XXH_PRIME64_2 : base.u64 = 0xC2B2_AE3D_27D4_EB4F
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// --------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
use "std/adler32"
use "std/deflate"
+2
View File
@@ -6,6 +6,8 @@
# <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
# option. This file may not be copied, modified, or distributed
# except according to those terms.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
# ----------------
+2
View File
@@ -6,6 +6,8 @@
# <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
# option. This file may not be copied, modified, or distributed
# except according to those terms.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
# ----------------
+2
View File
@@ -6,6 +6,8 @@
# <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
# option. This file may not be copied, modified, or distributed
# except according to those terms.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
# ----------------
+2
View File
@@ -6,6 +6,8 @@
# <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
# option. This file may not be copied, modified, or distributed
# except according to those terms.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
# ----------------
+2
View File
@@ -6,6 +6,8 @@
# <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
# option. This file may not be copied, modified, or distributed
# except according to those terms.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
# ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
#include "bzlib.h"
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
#include "gif_lib.h"
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// We #include a foo.cpp file, not a foo.h file, as stb_image is a "single file
// C library".
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
#include "xxhash.h"
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// ----------------
+2
View File
@@ -5,6 +5,8 @@
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
#include <errno.h>
#include <inttypes.h>
+2
View File
@@ -6,6 +6,8 @@
# <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
# option. This file may not be copied, modified, or distributed
# except according to those terms.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
# ----------------