Generate C structs.

This commit is contained in:
Nigel Tao committed 2017-05-26 14:45:20 +10:00
1 parent 7e18d9b549
commit d7403b8e57
8 files changed
+146 -46

No files matched your search

+8
View File
@@ -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;
+8
View File
@@ -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