Add names to "typedef struct { ... } foo" types

This commit is contained in:
Nigel Tao committed 2020-09-23 22:02:53 +10:00
1 parent aa46859ea4
commit 4f1d24c070
9 files changed
+131 -130

No files matched your search

+2 -2
View File
@@ -20,7 +20,7 @@
// wuffs_base__io_buffer_meta is the metadata for a wuffs_base__io_buffer's
// data.
typedef struct {
typedef struct wuffs_base__io_buffer_meta__struct {
size_t wi; // Write index. Invariant: wi <= len.
size_t ri; // Read index. Invariant: ri <= wi.
uint64_t pos; // Buffer position (relative to the start of stream).
@@ -31,7 +31,7 @@ typedef struct {
// additional metadata.
//
// A value with all fields zero is a valid, empty buffer.
typedef struct {
typedef struct wuffs_base__io_buffer__struct {
wuffs_base__slice_u8 data;
wuffs_base__io_buffer_meta meta;