mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 08:32:11 +01:00
Add cmd/puffs-gen-c/base-impl.h.
Also rename preamble.h to base-header.h.
This commit is contained in:
1 parent
1841ed8a36
commit
930ff53ff6
7 files changed
+67
-38
No files matched your search
+11
-4
@@ -3,8 +3,8 @@
|
||||
|
||||
// Code generated by puffs-gen-c. DO NOT EDIT.
|
||||
|
||||
#ifndef PUFFS_BASE_H
|
||||
#define PUFFS_BASE_H
|
||||
#ifndef PUFFS_BASE_HEADER_H
|
||||
#define PUFFS_BASE_HEADER_H
|
||||
|
||||
// Use of this source code is governed by a BSD-style license that can be found
|
||||
// in the LICENSE file.
|
||||
@@ -29,10 +29,10 @@
|
||||
//
|
||||
// For now, the API and ABI are simply unstable and can change at any time.
|
||||
//
|
||||
// TODO: don't hard code this in preamble.h.
|
||||
// TODO: don't hard code this in base-header.h.
|
||||
#define PUFFS_VERSION (0x00001)
|
||||
|
||||
#endif // PUFFS_BASE_H
|
||||
#endif // PUFFS_BASE_HEADER_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -88,6 +88,13 @@ puffs_gif_status puffs_gif_lzw_decoder_decode(puffs_gif_lzw_decoder* self);
|
||||
|
||||
// C HEADER ENDS HERE.
|
||||
|
||||
#ifndef PUFFS_BASE_IMPL_H
|
||||
#define PUFFS_BASE_IMPL_H
|
||||
|
||||
#define PUFFS_LOW_BITS(x, n) ((x) & ((1 << (n)) - 1))
|
||||
|
||||
#endif // PUFFS_BASE_IMPL_H
|
||||
|
||||
// ---------------- Private Structs
|
||||
|
||||
// ---------------- Private Constructor and Destructor Prototypes
|
||||
|
||||
+4
-4
@@ -3,8 +3,8 @@
|
||||
|
||||
// Code generated by puffs-gen-c. DO NOT EDIT.
|
||||
|
||||
#ifndef PUFFS_BASE_H
|
||||
#define PUFFS_BASE_H
|
||||
#ifndef PUFFS_BASE_HEADER_H
|
||||
#define PUFFS_BASE_HEADER_H
|
||||
|
||||
// Use of this source code is governed by a BSD-style license that can be found
|
||||
// in the LICENSE file.
|
||||
@@ -29,10 +29,10 @@
|
||||
//
|
||||
// For now, the API and ABI are simply unstable and can change at any time.
|
||||
//
|
||||
// TODO: don't hard code this in preamble.h.
|
||||
// TODO: don't hard code this in base-header.h.
|
||||
#define PUFFS_VERSION (0x00001)
|
||||
|
||||
#endif // PUFFS_BASE_H
|
||||
#endif // PUFFS_BASE_HEADER_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
Reference in new issue
Block a user