mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 00:47:28 +01:00
Generate C ctor/dtor calls for sub-structs.
This commit is contained in:
1 parent
b79036ff32
commit
64aeba8fcc
3 files changed
+58
-10
No files matched your search
@@ -247,12 +247,15 @@ void puffs_gif_decoder_constructor(puffs_gif_decoder* self,
|
||||
memset(self, 0, sizeof(*self));
|
||||
}
|
||||
self->private_impl.magic = PUFFS_MAGIC;
|
||||
puffs_gif_lzw_decoder_constructor(&self->private_impl.f_lzw, PUFFS_VERSION,
|
||||
PUFFS_ALREADY_ZEROED);
|
||||
}
|
||||
|
||||
void puffs_gif_decoder_destructor(puffs_gif_decoder* self) {
|
||||
if (!self) {
|
||||
return;
|
||||
}
|
||||
puffs_gif_lzw_decoder_destructor(&self->private_impl.f_lzw);
|
||||
}
|
||||
|
||||
// ---------------- Function Implementations
|
||||
|
||||
Reference in new issue
Block a user