Generate some extern "C" lines

This commit is contained in:
Nigel Tao committed 2018-06-16 08:22:26 +10:00
1 parent 56491b384e
commit c82e41c249
18 files changed
+256 -56

No files matched your search

+17 -1
View File
@@ -24,6 +24,10 @@
#include <stdint.h>
#include <string.h>
#ifdef __cplusplus
extern "C" {
#endif
// Wuffs assumes that:
// - converting a uint32_t to a size_t will never overflow.
// - converting a size_t to a uint64_t will never overflow.
@@ -1248,9 +1252,13 @@ static inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(
: ((wuffs_base__table_u8){});
}
#ifdef __cplusplus
} // extern "C"
#endif
#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC
// ---------------- Use Declarations
// ---------------- Use Declarations
#ifdef __cplusplus
extern "C" {
@@ -1325,6 +1333,10 @@ uint32_t wuffs_adler32__hasher__update(wuffs_adler32__hasher* self,
// See the License for the specific language governing permissions and
// limitations under the License.
#ifdef __cplusplus
extern "C" {
#endif
#define WUFFS_BASE__IGNORE_POTENTIALLY_UNUSED_VARIABLE(x) (void)(x)
// WUFFS_BASE__MAGIC is a magic number to check that initializers are called.
@@ -1866,6 +1878,10 @@ static inline wuffs_base__empty_struct wuffs_base__io_writer__set_mark(
return ((wuffs_base__empty_struct){});
}
#ifdef __cplusplus
} // extern "C"
#endif
#endif // WUFFS_INCLUDE_GUARD__BASE_PRIVATE
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__ADLER32)
+17 -1
View File
@@ -24,6 +24,10 @@
#include <stdint.h>
#include <string.h>
#ifdef __cplusplus
extern "C" {
#endif
// Wuffs assumes that:
// - converting a uint32_t to a size_t will never overflow.
// - converting a size_t to a uint64_t will never overflow.
@@ -1248,9 +1252,13 @@ static inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(
: ((wuffs_base__table_u8){});
}
#ifdef __cplusplus
} // extern "C"
#endif
#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC
// ---------------- Use Declarations
// ---------------- Use Declarations
#ifdef __cplusplus
extern "C" {
@@ -1325,6 +1333,10 @@ uint32_t wuffs_crc32__ieee_hasher__update(wuffs_crc32__ieee_hasher* self,
// See the License for the specific language governing permissions and
// limitations under the License.
#ifdef __cplusplus
extern "C" {
#endif
#define WUFFS_BASE__IGNORE_POTENTIALLY_UNUSED_VARIABLE(x) (void)(x)
// WUFFS_BASE__MAGIC is a magic number to check that initializers are called.
@@ -1866,6 +1878,10 @@ static inline wuffs_base__empty_struct wuffs_base__io_writer__set_mark(
return ((wuffs_base__empty_struct){});
}
#ifdef __cplusplus
} // extern "C"
#endif
#endif // WUFFS_INCLUDE_GUARD__BASE_PRIVATE
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__CRC32)
+17 -1
View File
@@ -24,6 +24,10 @@
#include <stdint.h>
#include <string.h>
#ifdef __cplusplus
extern "C" {
#endif
// Wuffs assumes that:
// - converting a uint32_t to a size_t will never overflow.
// - converting a size_t to a uint64_t will never overflow.
@@ -1248,9 +1252,13 @@ static inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(
: ((wuffs_base__table_u8){});
}
#ifdef __cplusplus
} // extern "C"
#endif
#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC
// ---------------- Use Declarations
// ---------------- Use Declarations
#ifdef __cplusplus
extern "C" {
@@ -1413,6 +1421,10 @@ wuffs_base__status wuffs_deflate__decoder__decode(wuffs_deflate__decoder* self,
// See the License for the specific language governing permissions and
// limitations under the License.
#ifdef __cplusplus
extern "C" {
#endif
#define WUFFS_BASE__IGNORE_POTENTIALLY_UNUSED_VARIABLE(x) (void)(x)
// WUFFS_BASE__MAGIC is a magic number to check that initializers are called.
@@ -1954,6 +1966,10 @@ static inline wuffs_base__empty_struct wuffs_base__io_writer__set_mark(
return ((wuffs_base__empty_struct){});
}
#ifdef __cplusplus
} // extern "C"
#endif
#endif // WUFFS_INCLUDE_GUARD__BASE_PRIVATE
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__DEFLATE)
+20 -4
View File
@@ -24,6 +24,10 @@
#include <stdint.h>
#include <string.h>
#ifdef __cplusplus
extern "C" {
#endif
// Wuffs assumes that:
// - converting a uint32_t to a size_t will never overflow.
// - converting a size_t to a uint64_t will never overflow.
@@ -1248,18 +1252,22 @@ static inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(
: ((wuffs_base__table_u8){});
}
#ifdef __cplusplus
} // extern "C"
#endif
#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC
// ---------------- Use Declarations
// ---------------- Use Declarations
// ---------------- BEGIN USE "std/lzw"
// ---------------- BEGIN USE "std/lzw"
#ifndef WUFFS_INCLUDE_GUARD__LZW
#define WUFFS_INCLUDE_GUARD__LZW
// Code generated by wuffs-c. DO NOT EDIT.
// Code generated by wuffs-c. DO NOT EDIT.
// ---------------- Use Declarations
// ---------------- Use Declarations
#ifdef __cplusplus
extern "C" {
@@ -1530,6 +1538,10 @@ wuffs_base__status wuffs_gif__decoder__decode_up_to_id_part1(
// See the License for the specific language governing permissions and
// limitations under the License.
#ifdef __cplusplus
extern "C" {
#endif
#define WUFFS_BASE__IGNORE_POTENTIALLY_UNUSED_VARIABLE(x) (void)(x)
// WUFFS_BASE__MAGIC is a magic number to check that initializers are called.
@@ -2071,6 +2083,10 @@ static inline wuffs_base__empty_struct wuffs_base__io_writer__set_mark(
return ((wuffs_base__empty_struct){});
}
#ifdef __cplusplus
} // extern "C"
#endif
#endif // WUFFS_INCLUDE_GUARD__BASE_PRIVATE
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__GIF)
+20 -4
View File
@@ -24,6 +24,10 @@
#include <stdint.h>
#include <string.h>
#ifdef __cplusplus
extern "C" {
#endif
// Wuffs assumes that:
// - converting a uint32_t to a size_t will never overflow.
// - converting a size_t to a uint64_t will never overflow.
@@ -1248,18 +1252,22 @@ static inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(
: ((wuffs_base__table_u8){});
}
#ifdef __cplusplus
} // extern "C"
#endif
#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC
// ---------------- Use Declarations
// ---------------- Use Declarations
// ---------------- BEGIN USE "std/crc32"
// ---------------- BEGIN USE "std/crc32"
#ifndef WUFFS_INCLUDE_GUARD__CRC32
#define WUFFS_INCLUDE_GUARD__CRC32
// Code generated by wuffs-c. DO NOT EDIT.
// Code generated by wuffs-c. DO NOT EDIT.
// ---------------- Use Declarations
// ---------------- Use Declarations
#ifdef __cplusplus
extern "C" {
@@ -1565,6 +1573,10 @@ wuffs_base__status wuffs_gzip__decoder__decode(wuffs_gzip__decoder* self,
// See the License for the specific language governing permissions and
// limitations under the License.
#ifdef __cplusplus
extern "C" {
#endif
#define WUFFS_BASE__IGNORE_POTENTIALLY_UNUSED_VARIABLE(x) (void)(x)
// WUFFS_BASE__MAGIC is a magic number to check that initializers are called.
@@ -2106,6 +2118,10 @@ static inline wuffs_base__empty_struct wuffs_base__io_writer__set_mark(
return ((wuffs_base__empty_struct){});
}
#ifdef __cplusplus
} // extern "C"
#endif
#endif // WUFFS_INCLUDE_GUARD__BASE_PRIVATE
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__GZIP)
+17 -1
View File
@@ -24,6 +24,10 @@
#include <stdint.h>
#include <string.h>
#ifdef __cplusplus
extern "C" {
#endif
// Wuffs assumes that:
// - converting a uint32_t to a size_t will never overflow.
// - converting a size_t to a uint64_t will never overflow.
@@ -1248,9 +1252,13 @@ static inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(
: ((wuffs_base__table_u8){});
}
#ifdef __cplusplus
} // extern "C"
#endif
#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC
// ---------------- Use Declarations
// ---------------- Use Declarations
#ifdef __cplusplus
extern "C" {
@@ -1349,6 +1357,10 @@ wuffs_base__status wuffs_lzw__decoder__decode(wuffs_lzw__decoder* self,
// See the License for the specific language governing permissions and
// limitations under the License.
#ifdef __cplusplus
extern "C" {
#endif
#define WUFFS_BASE__IGNORE_POTENTIALLY_UNUSED_VARIABLE(x) (void)(x)
// WUFFS_BASE__MAGIC is a magic number to check that initializers are called.
@@ -1890,6 +1902,10 @@ static inline wuffs_base__empty_struct wuffs_base__io_writer__set_mark(
return ((wuffs_base__empty_struct){});
}
#ifdef __cplusplus
} // extern "C"
#endif
#endif // WUFFS_INCLUDE_GUARD__BASE_PRIVATE
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__LZW)
+20 -4
View File
@@ -24,6 +24,10 @@
#include <stdint.h>
#include <string.h>
#ifdef __cplusplus
extern "C" {
#endif
// Wuffs assumes that:
// - converting a uint32_t to a size_t will never overflow.
// - converting a size_t to a uint64_t will never overflow.
@@ -1248,18 +1252,22 @@ static inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(
: ((wuffs_base__table_u8){});
}
#ifdef __cplusplus
} // extern "C"
#endif
#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC
// ---------------- Use Declarations
// ---------------- Use Declarations
// ---------------- BEGIN USE "std/adler32"
// ---------------- BEGIN USE "std/adler32"
#ifndef WUFFS_INCLUDE_GUARD__ADLER32
#define WUFFS_INCLUDE_GUARD__ADLER32
// Code generated by wuffs-c. DO NOT EDIT.
// Code generated by wuffs-c. DO NOT EDIT.
// ---------------- Use Declarations
// ---------------- Use Declarations
#ifdef __cplusplus
extern "C" {
@@ -1563,6 +1571,10 @@ wuffs_base__status wuffs_zlib__decoder__decode(wuffs_zlib__decoder* self,
// See the License for the specific language governing permissions and
// limitations under the License.
#ifdef __cplusplus
extern "C" {
#endif
#define WUFFS_BASE__IGNORE_POTENTIALLY_UNUSED_VARIABLE(x) (void)(x)
// WUFFS_BASE__MAGIC is a magic number to check that initializers are called.
@@ -2104,6 +2116,10 @@ static inline wuffs_base__empty_struct wuffs_base__io_writer__set_mark(
return ((wuffs_base__empty_struct){});
}
#ifdef __cplusplus
} // extern "C"
#endif
#endif // WUFFS_INCLUDE_GUARD__BASE_PRIVATE
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__ZLIB)