mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 00:47:28 +01:00
Generate C structs.
This commit is contained in:
1 parent
7e18d9b549
commit
d7403b8e57
8 files changed
+146
-46
No files matched your search
@@ -3,8 +3,16 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be found
|
||||
// in the LICENSE file.
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#if __WORDSIZE < 32
|
||||
#error "Puffs requires a word size of at least 32 bits"
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
uint32_t literal_width;
|
||||
uint8_t stack[4096];
|
||||
uint8_t suffixes[4096];
|
||||
uint16_t prefixes[4096];
|
||||
} puffs_gif_lzw_decoder;
|
||||
@@ -3,6 +3,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be found
|
||||
// in the LICENSE file.
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#if __WORDSIZE < 32
|
||||
@@ -13,6 +14,13 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
uint32_t literal_width;
|
||||
uint8_t stack[4096];
|
||||
uint8_t suffixes[4096];
|
||||
uint16_t prefixes[4096];
|
||||
} puffs_gif_lzw_decoder;
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
||||
Reference in new issue
Block a user