This will enable de-duplicating some code in an upcoming commit.
Gitlab: #2302
return 0;
}
+/* agxbclear:
+ * Resets pointer to data;
+ */
+static inline void agxbclear(agxbuf *xb) { xb->size = 0; }
+
/* agxbuse:
* Null-terminates buffer; resets and returns pointer to data. The buffer is
* still associated with the agxbuf and will be overwritten on the next, e.g.,
return xb->buf;
}
-/* agxbclear:
- * Resets pointer to data;
- */
-static inline void agxbclear(agxbuf *xb) { xb->size = 0; }
-
/* agxbdisown:
* Disassociate the backing buffer from this agxbuf and return it. The buffer is
* NUL terminated before being returned. If the agxbuf is using stack memory,