mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 03:08:31 +00:00
Remove some includes
This commit is contained in:
parent
75832f7379
commit
6bb9ce553e
30 changed files with 52 additions and 118 deletions
|
@ -16,9 +16,23 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/macros.internal.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "tool/build/lib/iovs.h"
|
||||
|
||||
void InitIovs(struct Iovs *ib) {
|
||||
ib->p = ib->init;
|
||||
ib->i = 0;
|
||||
ib->n = ARRAYLEN(ib->init);
|
||||
}
|
||||
|
||||
void FreeIovs(struct Iovs *ib) {
|
||||
if (ib->p != ib->init) {
|
||||
free(ib->p);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Appends memory region to i/o vector builder.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue