ref: c7839bab2449aedd1339b5fee09ed15a13f930bf
parent: a0f5762d967c3c09e6d7303e238976c6c9835ed5
author: qwx <qwx@sciops.net>
date: Sat Aug 19 05:26:29 EDT 2023
fix missing typedef
--- a/asif.h
+++ b/asif.h
@@ -39,6 +39,24 @@
void* vecget(Vector*, int);
Vector* vec(int);
+typedef struct Vecarr Vecarr;
+struct Vecarr{
+ void *buf;
+ void *tail;
+ int elsz;
+ usize len;
+ usize bufsz;
+};
+
+void vecarrnuke(Vecarr*);
+void* vecarrget(Vecarr*, usize);
+void* vecarrpoptail(Vecarr*);
+usize vecarrindexof(Vecarr*, void*);
+void* vecarrcopy(Vecarr*, void*, usize*);
+void* vecarrp(Vecarr*, usize);
+void vecarrresize(Vecarr*, usize);
+Vecarr vecarr(usize, usize);
+
typedef struct QNode QNode;
struct QNode{
QNode *left;