mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-17 16:32:11 +01:00
Add an PUFFS_BASE_H include guard.
This commit is contained in:
1 parent
4c7aa62821
commit
1841ed8a36
4 files changed
+17
-1
No files matched your search
@@ -6,5 +6,6 @@
|
||||
package main
|
||||
|
||||
const preamble = "" +
|
||||
"// Use of this source code is governed by a BSD-style license that can be found\n// in the LICENSE file.\n\n#include <stdbool.h>\n#include <stdint.h>\n#include <string.h>\n\n// Puffs requires a word size of at least 32 bits because it assumes that\n// converting a u32 to usize will never overflow. For example, the size of a\n// decoded image is often represented, explicitly or implicitly in an image\n// file, as a u32, and it is convenient to compare that to a buffer size.\n#if __WORDSIZE < 32\n#error \"Puffs requires a word size of at least 32 bits\"\n#endif\n\n// PUFFS_VERSION is the major.minor version number as a uint32. The major\n// number is the high 16 bits. The minor number is the low 16 bits.\n//\n// The intention is to bump the version number at least on every API / ABI\n// backwards incompatible change.\n//\n// For now, the API and ABI are simply unstable and can change at any time.\n//\n// TODO: don't hard code this in preamble.h.\n#define PUFFS_VERSION (0x00001)\n" +
|
||||
"#ifndef PUFFS_BASE_H\n#define PUFFS_BASE_H\n\n// Use of this source code is governed by a BSD-style license that can be found\n// in the LICENSE file.\n\n#include <stdbool.h>\n#include <stdint.h>\n#include <string.h>\n\n// Puffs requires a word size of at least 32 bits because it assumes that\n// converting a u32 to usize will never overflow. For example, the size of a\n// decoded image is often represented, explicitly or implicitly in an image\n// file, as a u32, and it is convenient to compare that to a buffer size.\n#if __WORDSIZE < 32\n#error \"Puffs requires a word size of at least 32 bits\"\n#endif\n\n// PUFFS_VERSION is the major.minor version number as a uint32. The major\n// number is the high 16 bits. The minor number is the low 16 bits.\n//\n// The intention is to bump the version number at least on every API / ABI\n// backwards incompatible change.\n//\n// For now, the API and ABI are simply unstable and can change at any time.\n//\n// TODO: don't hard code this in preamble.h.\n#define PUFFS_VERSION (0x00001)\n\n#endif // PUFF" +
|
||||
"S_BASE_H\n" +
|
||||
""
|
||||
@@ -1,5 +1,8 @@
|
||||
// After editing this file, run "go generate" in this directory.
|
||||
|
||||
#ifndef PUFFS_BASE_H
|
||||
#define PUFFS_BASE_H
|
||||
|
||||
// Use of this source code is governed by a BSD-style license that can be found
|
||||
// in the LICENSE file.
|
||||
|
||||
@@ -25,3 +28,5 @@
|
||||
//
|
||||
// TODO: don't hard code this in preamble.h.
|
||||
#define PUFFS_VERSION (0x00001)
|
||||
|
||||
#endif // PUFFS_BASE_H
|
||||
@@ -3,6 +3,9 @@
|
||||
|
||||
// Code generated by puffs-gen-c. DO NOT EDIT.
|
||||
|
||||
#ifndef PUFFS_BASE_H
|
||||
#define PUFFS_BASE_H
|
||||
|
||||
// Use of this source code is governed by a BSD-style license that can be found
|
||||
// in the LICENSE file.
|
||||
|
||||
@@ -29,6 +32,8 @@
|
||||
// TODO: don't hard code this in preamble.h.
|
||||
#define PUFFS_VERSION (0x00001)
|
||||
|
||||
#endif // PUFFS_BASE_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
@@ -3,6 +3,9 @@
|
||||
|
||||
// Code generated by puffs-gen-c. DO NOT EDIT.
|
||||
|
||||
#ifndef PUFFS_BASE_H
|
||||
#define PUFFS_BASE_H
|
||||
|
||||
// Use of this source code is governed by a BSD-style license that can be found
|
||||
// in the LICENSE file.
|
||||
|
||||
@@ -29,6 +32,8 @@
|
||||
// TODO: don't hard code this in preamble.h.
|
||||
#define PUFFS_VERSION (0x00001)
|
||||
|
||||
#endif // PUFFS_BASE_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user