Remove obsolete limit implementation

This commit is contained in:
Nigel Tao committed 2018-05-02 20:29:39 +10:00
1 parent 86157ba363
commit b9b398dc9a
19 files changed
+9 -284

No files matched your search

-13
View File
@@ -555,17 +555,6 @@ typedef struct {
bool closed; // No further writes are expected.
} wuffs_base__io_buffer;
// wuffs_base__io_limit 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 wuffs_base__io_limit {
uint64_t* ptr_to_len; // Pointer to N.
struct wuffs_base__io_limit* next; // Linked list of limits.
} wuffs_base__io_limit;
typedef struct {
// Do not access the private_impl's fields directly. There is no API/ABI
// compatibility or safety guarantee if you do so.
@@ -575,7 +564,6 @@ typedef struct {
// API. NULL means that the callee substitutes the implicit bounds derived
// from buf.
uint8_t* bounds[2];
wuffs_base__io_limit limit;
} private_impl;
} wuffs_base__io_reader;
@@ -588,7 +576,6 @@ typedef struct {
// API. NULL means that the callee substitutes the implicit bounds derived
// from buf.
uint8_t* bounds[2];
wuffs_base__io_limit limit;
} private_impl;
} wuffs_base__io_writer;
-13
View File
@@ -555,17 +555,6 @@ typedef struct {
bool closed; // No further writes are expected.
} wuffs_base__io_buffer;
// wuffs_base__io_limit 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 wuffs_base__io_limit {
uint64_t* ptr_to_len; // Pointer to N.
struct wuffs_base__io_limit* next; // Linked list of limits.
} wuffs_base__io_limit;
typedef struct {
// Do not access the private_impl's fields directly. There is no API/ABI
// compatibility or safety guarantee if you do so.
@@ -575,7 +564,6 @@ typedef struct {
// API. NULL means that the callee substitutes the implicit bounds derived
// from buf.
uint8_t* bounds[2];
wuffs_base__io_limit limit;
} private_impl;
} wuffs_base__io_reader;
@@ -588,7 +576,6 @@ typedef struct {
// API. NULL means that the callee substitutes the implicit bounds derived
// from buf.
uint8_t* bounds[2];
wuffs_base__io_limit limit;
} private_impl;
} wuffs_base__io_writer;
-13
View File
@@ -555,17 +555,6 @@ typedef struct {
bool closed; // No further writes are expected.
} wuffs_base__io_buffer;
// wuffs_base__io_limit 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 wuffs_base__io_limit {
uint64_t* ptr_to_len; // Pointer to N.
struct wuffs_base__io_limit* next; // Linked list of limits.
} wuffs_base__io_limit;
typedef struct {
// Do not access the private_impl's fields directly. There is no API/ABI
// compatibility or safety guarantee if you do so.
@@ -575,7 +564,6 @@ typedef struct {
// API. NULL means that the callee substitutes the implicit bounds derived
// from buf.
uint8_t* bounds[2];
wuffs_base__io_limit limit;
} private_impl;
} wuffs_base__io_reader;
@@ -588,7 +576,6 @@ typedef struct {
// API. NULL means that the callee substitutes the implicit bounds derived
// from buf.
uint8_t* bounds[2];
wuffs_base__io_limit limit;
} private_impl;
} wuffs_base__io_writer;
-13
View File
@@ -555,17 +555,6 @@ typedef struct {
bool closed; // No further writes are expected.
} wuffs_base__io_buffer;
// wuffs_base__io_limit 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 wuffs_base__io_limit {
uint64_t* ptr_to_len; // Pointer to N.
struct wuffs_base__io_limit* next; // Linked list of limits.
} wuffs_base__io_limit;
typedef struct {
// Do not access the private_impl's fields directly. There is no API/ABI
// compatibility or safety guarantee if you do so.
@@ -575,7 +564,6 @@ typedef struct {
// API. NULL means that the callee substitutes the implicit bounds derived
// from buf.
uint8_t* bounds[2];
wuffs_base__io_limit limit;
} private_impl;
} wuffs_base__io_reader;
@@ -588,7 +576,6 @@ typedef struct {
// API. NULL means that the callee substitutes the implicit bounds derived
// from buf.
uint8_t* bounds[2];
wuffs_base__io_limit limit;
} private_impl;
} wuffs_base__io_writer;
-13
View File
@@ -555,17 +555,6 @@ typedef struct {
bool closed; // No further writes are expected.
} wuffs_base__io_buffer;
// wuffs_base__io_limit 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 wuffs_base__io_limit {
uint64_t* ptr_to_len; // Pointer to N.
struct wuffs_base__io_limit* next; // Linked list of limits.
} wuffs_base__io_limit;
typedef struct {
// Do not access the private_impl's fields directly. There is no API/ABI
// compatibility or safety guarantee if you do so.
@@ -575,7 +564,6 @@ typedef struct {
// API. NULL means that the callee substitutes the implicit bounds derived
// from buf.
uint8_t* bounds[2];
wuffs_base__io_limit limit;
} private_impl;
} wuffs_base__io_reader;
@@ -588,7 +576,6 @@ typedef struct {
// API. NULL means that the callee substitutes the implicit bounds derived
// from buf.
uint8_t* bounds[2];
wuffs_base__io_limit limit;
} private_impl;
} wuffs_base__io_writer;
-13
View File
@@ -555,17 +555,6 @@ typedef struct {
bool closed; // No further writes are expected.
} wuffs_base__io_buffer;
// wuffs_base__io_limit 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 wuffs_base__io_limit {
uint64_t* ptr_to_len; // Pointer to N.
struct wuffs_base__io_limit* next; // Linked list of limits.
} wuffs_base__io_limit;
typedef struct {
// Do not access the private_impl's fields directly. There is no API/ABI
// compatibility or safety guarantee if you do so.
@@ -575,7 +564,6 @@ typedef struct {
// API. NULL means that the callee substitutes the implicit bounds derived
// from buf.
uint8_t* bounds[2];
wuffs_base__io_limit limit;
} private_impl;
} wuffs_base__io_reader;
@@ -588,7 +576,6 @@ typedef struct {
// API. NULL means that the callee substitutes the implicit bounds derived
// from buf.
uint8_t* bounds[2];
wuffs_base__io_limit limit;
} private_impl;
} wuffs_base__io_writer;