Remove the obsolete puffs_base__limit1 concept.

This commit is contained in:
Nigel Tao committed 2017-10-27 07:51:57 +11:00
1 parent e0836d73a8
commit 3485950a3f
10 files changed
+17 -443

No files matched your search

-13
View File
@@ -68,20 +68,8 @@ typedef struct {
bool closed; // No further writes are expected.
} puffs_base__buf1;
// puffs_base__limit1 provides a limited view of a 1-dimensional byte stream:
// its first N bytes. That N can be greater than a buffer's current read or
// write capacity. N decreases naturally over time as bytes are read from or
// written to the stream.
//
// A value with all fields NULL or zero is a valid, unlimited view.
typedef struct puffs_base__limit1 {
uint64_t* ptr_to_len; // Pointer to N.
struct puffs_base__limit1* next; // Linked list of limits.
} puffs_base__limit1;
typedef struct {
puffs_base__buf1* buf;
puffs_base__limit1 limit; // TODO: delete.
uint64_t limitt; // TODO: should this be uint8_t*, not (uint64_t + bool)?
bool use_limitt;
// Do not access the private_impl's fields directly. There is no API/ABI
@@ -93,7 +81,6 @@ typedef struct {
typedef struct {
puffs_base__buf1* buf;
puffs_base__limit1 limit; // TODO: delete.
uint64_t limitt; // TODO: should this be uint8_t*, not (uint64_t + bool)?
bool use_limitt;
// Do not access the private_impl's fields directly. There is no API/ABI
-13
View File
@@ -68,20 +68,8 @@ typedef struct {
bool closed; // No further writes are expected.
} puffs_base__buf1;
// puffs_base__limit1 provides a limited view of a 1-dimensional byte stream:
// its first N bytes. That N can be greater than a buffer's current read or
// write capacity. N decreases naturally over time as bytes are read from or
// written to the stream.
//
// A value with all fields NULL or zero is a valid, unlimited view.
typedef struct puffs_base__limit1 {
uint64_t* ptr_to_len; // Pointer to N.
struct puffs_base__limit1* next; // Linked list of limits.
} puffs_base__limit1;
typedef struct {
puffs_base__buf1* buf;
puffs_base__limit1 limit; // TODO: delete.
uint64_t limitt; // TODO: should this be uint8_t*, not (uint64_t + bool)?
bool use_limitt;
// Do not access the private_impl's fields directly. There is no API/ABI
@@ -93,7 +81,6 @@ typedef struct {
typedef struct {
puffs_base__buf1* buf;
puffs_base__limit1 limit; // TODO: delete.
uint64_t limitt; // TODO: should this be uint8_t*, not (uint64_t + bool)?
bool use_limitt;
// Do not access the private_impl's fields directly. There is no API/ABI