ref: 406152e77c30b5ad5907ce77276f1a2d45f581ce
parent: 71b42354a99a5bd152e0db49d1cb7329a20335f2
author: mia soweli <inbox@tachibana-labs.org>
date: Sun Apr 6 00:58:59 EDT 2025
ape: add Bstropen This was missing from the previous commit, breaking the APE build.
--- a/sys/include/ape/bio.h
+++ b/sys/include/ape/bio.h
@@ -9,6 +9,7 @@
#include <u.h>
+typedef struct Bstr Bstr;
typedef struct Biobuf Biobuf;
typedef struct Biobufhdr Biobufhdr;
@@ -50,6 +51,12 @@
uchar b[Bungetsize+Bsize];
};
+struct Bstr
+{
+ Biobufhdr;
+ uchar b[];
+};
+
/* Dregs, redefined as functions for backwards compatibility */
#define BGETC(bp) Bgetc(bp)
#define BPUTC(bp,c) Bputc(bp,c)
@@ -69,6 +76,7 @@
vlong Boffset(Biobufhdr*);
Biobuf* Bopen(char*, int);
Biobuf* Bfdopen(int, int);
+Bstr* Bstropen(void*, int);
int Bprint(Biobufhdr*, char*, ...);
int Bvprint(Biobufhdr*, char*, va_list);
int Bputc(Biobufhdr*, int);
--
⑨