mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 00:47:56 +01:00
Have check_wuffs_version take the sizeof receiver
Also rename foo__initialize to foo__check_wuffs_version.
This commit is contained in:
1 parent
d59eec7936
commit
87ab36f8c4
28 files changed
+354
-361
No files matched your search
+5
-5
@@ -1211,14 +1211,14 @@ typedef struct {
|
||||
|
||||
// ---------------- Public Initializer Prototypes
|
||||
|
||||
// wuffs_adler32__hasher__initialize is an initializer function.
|
||||
// wuffs_adler32__hasher__check_wuffs_version is an initializer function.
|
||||
//
|
||||
// It should be called before any other wuffs_adler32__hasher__* function.
|
||||
//
|
||||
// Pass WUFFS_VERSION and 0 for wuffs_version and for_internal_use_only.
|
||||
void wuffs_adler32__hasher__initialize(wuffs_adler32__hasher* self,
|
||||
uint32_t wuffs_version,
|
||||
uint32_t for_internal_use_only);
|
||||
// Pass WUFFS_VERSION and sizeof(*self) for wuffs_version and sizeof_star_self.
|
||||
void wuffs_adler32__hasher__check_wuffs_version(wuffs_adler32__hasher* self,
|
||||
uint32_t wuffs_version,
|
||||
size_t sizeof_star_self);
|
||||
|
||||
// ---------------- Public Function Prototypes
|
||||
|
||||
|
||||
+6
-5
@@ -1209,14 +1209,15 @@ typedef struct {
|
||||
|
||||
// ---------------- Public Initializer Prototypes
|
||||
|
||||
// wuffs_crc32__ieee_hasher__initialize is an initializer function.
|
||||
// wuffs_crc32__ieee_hasher__check_wuffs_version is an initializer function.
|
||||
//
|
||||
// It should be called before any other wuffs_crc32__ieee_hasher__* function.
|
||||
//
|
||||
// Pass WUFFS_VERSION and 0 for wuffs_version and for_internal_use_only.
|
||||
void wuffs_crc32__ieee_hasher__initialize(wuffs_crc32__ieee_hasher* self,
|
||||
uint32_t wuffs_version,
|
||||
uint32_t for_internal_use_only);
|
||||
// Pass WUFFS_VERSION and sizeof(*self) for wuffs_version and sizeof_star_self.
|
||||
void wuffs_crc32__ieee_hasher__check_wuffs_version(
|
||||
wuffs_crc32__ieee_hasher* self,
|
||||
uint32_t wuffs_version,
|
||||
size_t sizeof_star_self);
|
||||
|
||||
// ---------------- Public Function Prototypes
|
||||
|
||||
|
||||
+5
-5
@@ -1299,14 +1299,14 @@ typedef struct {
|
||||
|
||||
// ---------------- Public Initializer Prototypes
|
||||
|
||||
// wuffs_deflate__decoder__initialize is an initializer function.
|
||||
// wuffs_deflate__decoder__check_wuffs_version is an initializer function.
|
||||
//
|
||||
// It should be called before any other wuffs_deflate__decoder__* function.
|
||||
//
|
||||
// Pass WUFFS_VERSION and 0 for wuffs_version and for_internal_use_only.
|
||||
void wuffs_deflate__decoder__initialize(wuffs_deflate__decoder* self,
|
||||
uint32_t wuffs_version,
|
||||
uint32_t for_internal_use_only);
|
||||
// Pass WUFFS_VERSION and sizeof(*self) for wuffs_version and sizeof_star_self.
|
||||
void wuffs_deflate__decoder__check_wuffs_version(wuffs_deflate__decoder* self,
|
||||
uint32_t wuffs_version,
|
||||
size_t sizeof_star_self);
|
||||
|
||||
// ---------------- Public Function Prototypes
|
||||
|
||||
|
||||
+5
-5
@@ -1343,14 +1343,14 @@ typedef struct {
|
||||
|
||||
// ---------------- Public Initializer Prototypes
|
||||
|
||||
// wuffs_gif__decoder__initialize is an initializer function.
|
||||
// wuffs_gif__decoder__check_wuffs_version is an initializer function.
|
||||
//
|
||||
// It should be called before any other wuffs_gif__decoder__* function.
|
||||
//
|
||||
// Pass WUFFS_VERSION and 0 for wuffs_version and for_internal_use_only.
|
||||
void wuffs_gif__decoder__initialize(wuffs_gif__decoder* self,
|
||||
uint32_t wuffs_version,
|
||||
uint32_t for_internal_use_only);
|
||||
// Pass WUFFS_VERSION and sizeof(*self) for wuffs_version and sizeof_star_self.
|
||||
void wuffs_gif__decoder__check_wuffs_version(wuffs_gif__decoder* self,
|
||||
uint32_t wuffs_version,
|
||||
size_t sizeof_star_self);
|
||||
|
||||
// ---------------- Public Function Prototypes
|
||||
|
||||
|
||||
+16
-15
@@ -1218,14 +1218,15 @@ typedef struct {
|
||||
|
||||
// ---------------- Public Initializer Prototypes
|
||||
|
||||
// wuffs_crc32__ieee_hasher__initialize is an initializer function.
|
||||
// wuffs_crc32__ieee_hasher__check_wuffs_version is an initializer function.
|
||||
//
|
||||
// It should be called before any other wuffs_crc32__ieee_hasher__* function.
|
||||
//
|
||||
// Pass WUFFS_VERSION and 0 for wuffs_version and for_internal_use_only.
|
||||
void wuffs_crc32__ieee_hasher__initialize(wuffs_crc32__ieee_hasher* self,
|
||||
uint32_t wuffs_version,
|
||||
uint32_t for_internal_use_only);
|
||||
// Pass WUFFS_VERSION and sizeof(*self) for wuffs_version and sizeof_star_self.
|
||||
void wuffs_crc32__ieee_hasher__check_wuffs_version(
|
||||
wuffs_crc32__ieee_hasher* self,
|
||||
uint32_t wuffs_version,
|
||||
size_t sizeof_star_self);
|
||||
|
||||
// ---------------- Public Function Prototypes
|
||||
|
||||
@@ -1398,14 +1399,14 @@ typedef struct {
|
||||
|
||||
// ---------------- Public Initializer Prototypes
|
||||
|
||||
// wuffs_deflate__decoder__initialize is an initializer function.
|
||||
// wuffs_deflate__decoder__check_wuffs_version is an initializer function.
|
||||
//
|
||||
// It should be called before any other wuffs_deflate__decoder__* function.
|
||||
//
|
||||
// Pass WUFFS_VERSION and 0 for wuffs_version and for_internal_use_only.
|
||||
void wuffs_deflate__decoder__initialize(wuffs_deflate__decoder* self,
|
||||
uint32_t wuffs_version,
|
||||
uint32_t for_internal_use_only);
|
||||
// Pass WUFFS_VERSION and sizeof(*self) for wuffs_version and sizeof_star_self.
|
||||
void wuffs_deflate__decoder__check_wuffs_version(wuffs_deflate__decoder* self,
|
||||
uint32_t wuffs_version,
|
||||
size_t sizeof_star_self);
|
||||
|
||||
// ---------------- Public Function Prototypes
|
||||
|
||||
@@ -1500,14 +1501,14 @@ typedef struct {
|
||||
|
||||
// ---------------- Public Initializer Prototypes
|
||||
|
||||
// wuffs_gzip__decoder__initialize is an initializer function.
|
||||
// wuffs_gzip__decoder__check_wuffs_version is an initializer function.
|
||||
//
|
||||
// It should be called before any other wuffs_gzip__decoder__* function.
|
||||
//
|
||||
// Pass WUFFS_VERSION and 0 for wuffs_version and for_internal_use_only.
|
||||
void wuffs_gzip__decoder__initialize(wuffs_gzip__decoder* self,
|
||||
uint32_t wuffs_version,
|
||||
uint32_t for_internal_use_only);
|
||||
// Pass WUFFS_VERSION and sizeof(*self) for wuffs_version and sizeof_star_self.
|
||||
void wuffs_gzip__decoder__check_wuffs_version(wuffs_gzip__decoder* self,
|
||||
uint32_t wuffs_version,
|
||||
size_t sizeof_star_self);
|
||||
|
||||
// ---------------- Public Function Prototypes
|
||||
|
||||
|
||||
+15
-15
@@ -1220,14 +1220,14 @@ typedef struct {
|
||||
|
||||
// ---------------- Public Initializer Prototypes
|
||||
|
||||
// wuffs_adler32__hasher__initialize is an initializer function.
|
||||
// wuffs_adler32__hasher__check_wuffs_version is an initializer function.
|
||||
//
|
||||
// It should be called before any other wuffs_adler32__hasher__* function.
|
||||
//
|
||||
// Pass WUFFS_VERSION and 0 for wuffs_version and for_internal_use_only.
|
||||
void wuffs_adler32__hasher__initialize(wuffs_adler32__hasher* self,
|
||||
uint32_t wuffs_version,
|
||||
uint32_t for_internal_use_only);
|
||||
// Pass WUFFS_VERSION and sizeof(*self) for wuffs_version and sizeof_star_self.
|
||||
void wuffs_adler32__hasher__check_wuffs_version(wuffs_adler32__hasher* self,
|
||||
uint32_t wuffs_version,
|
||||
size_t sizeof_star_self);
|
||||
|
||||
// ---------------- Public Function Prototypes
|
||||
|
||||
@@ -1400,14 +1400,14 @@ typedef struct {
|
||||
|
||||
// ---------------- Public Initializer Prototypes
|
||||
|
||||
// wuffs_deflate__decoder__initialize is an initializer function.
|
||||
// wuffs_deflate__decoder__check_wuffs_version is an initializer function.
|
||||
//
|
||||
// It should be called before any other wuffs_deflate__decoder__* function.
|
||||
//
|
||||
// Pass WUFFS_VERSION and 0 for wuffs_version and for_internal_use_only.
|
||||
void wuffs_deflate__decoder__initialize(wuffs_deflate__decoder* self,
|
||||
uint32_t wuffs_version,
|
||||
uint32_t for_internal_use_only);
|
||||
// Pass WUFFS_VERSION and sizeof(*self) for wuffs_version and sizeof_star_self.
|
||||
void wuffs_deflate__decoder__check_wuffs_version(wuffs_deflate__decoder* self,
|
||||
uint32_t wuffs_version,
|
||||
size_t sizeof_star_self);
|
||||
|
||||
// ---------------- Public Function Prototypes
|
||||
|
||||
@@ -1501,14 +1501,14 @@ typedef struct {
|
||||
|
||||
// ---------------- Public Initializer Prototypes
|
||||
|
||||
// wuffs_zlib__decoder__initialize is an initializer function.
|
||||
// wuffs_zlib__decoder__check_wuffs_version is an initializer function.
|
||||
//
|
||||
// It should be called before any other wuffs_zlib__decoder__* function.
|
||||
//
|
||||
// Pass WUFFS_VERSION and 0 for wuffs_version and for_internal_use_only.
|
||||
void wuffs_zlib__decoder__initialize(wuffs_zlib__decoder* self,
|
||||
uint32_t wuffs_version,
|
||||
uint32_t for_internal_use_only);
|
||||
// Pass WUFFS_VERSION and sizeof(*self) for wuffs_version and sizeof_star_self.
|
||||
void wuffs_zlib__decoder__check_wuffs_version(wuffs_zlib__decoder* self,
|
||||
uint32_t wuffs_version,
|
||||
size_t sizeof_star_self);
|
||||
|
||||
// ---------------- Public Function Prototypes
|
||||
|
||||
|
||||
Reference in new issue
Block a user