mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 16:47:28 +01:00
Generate pub and pri structs separately.
This commit is contained in:
1 parent
b548f8f3ff
commit
0890d210c2
3 files changed
+39
-14
No files matched your search
+6
-2
@@ -42,7 +42,7 @@ typedef enum {
|
||||
puffs_gif_status_short_src = -6,
|
||||
} puffs_gif_status;
|
||||
|
||||
// ---------------- Structs
|
||||
// ---------------- Public Structs
|
||||
|
||||
typedef struct {
|
||||
puffs_gif_status status;
|
||||
@@ -53,7 +53,7 @@ typedef struct {
|
||||
uint16_t f_prefixes[4096];
|
||||
} puffs_gif_lzw_decoder;
|
||||
|
||||
// ---------------- Constructor and Destructor Prototypes
|
||||
// ---------------- Public Constructor and Destructor Prototypes
|
||||
|
||||
void puffs_gif_lzw_decoder_constructor(puffs_gif_lzw_decoder* self,
|
||||
uint32_t puffs_version);
|
||||
@@ -64,6 +64,10 @@ void puffs_gif_lzw_decoder_destructor(puffs_gif_lzw_decoder* self);
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
// ---------------- Private Structs
|
||||
|
||||
// ---------------- Private Constructor and Destructor Prototypes
|
||||
|
||||
// ---------------- Constructor and Destructor Implementations
|
||||
|
||||
// PUFFS_MAGIC is a magic number to check that constructors are called. It's
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@ typedef enum {
|
||||
puffs_gif_status_short_src = -6,
|
||||
} puffs_gif_status;
|
||||
|
||||
// ---------------- Structs
|
||||
// ---------------- Public Structs
|
||||
|
||||
typedef struct {
|
||||
puffs_gif_status status;
|
||||
@@ -53,7 +53,7 @@ typedef struct {
|
||||
uint16_t f_prefixes[4096];
|
||||
} puffs_gif_lzw_decoder;
|
||||
|
||||
// ---------------- Constructor and Destructor Prototypes
|
||||
// ---------------- Public Constructor and Destructor Prototypes
|
||||
|
||||
void puffs_gif_lzw_decoder_constructor(puffs_gif_lzw_decoder* self,
|
||||
uint32_t puffs_version);
|
||||
|
||||
Reference in new issue
Block a user