Documented behavior of preproc
authorLukas Krickl <lukas@krickl.dev>
Tue, 7 Nov 2023 19:29:46 +0000 (20:29 +0100)
committerLukas Krickl <lukas@krickl.dev>
Tue, 7 Nov 2023 19:29:46 +0000 (20:29 +0100)
include/ulas.h

index 14c10f06cb0828b7099895fa6988f75d962fa8f9..072d0479d2abef59370430f296ed662ade510fc8 100644 (file)
@@ -249,6 +249,8 @@ int ulas_preproc(FILE *dst, FILE *src);
 // returns 0 if no more data can be read
 //         1 if data was read
 //         -1 on error
+// it also places the processed line into pp->line.buf
+// note that this is overwritten by every call!
 int ulas_preprocnext(struct ulas_preproc *pp, FILE *dst, FILE *src, char *buf,
                      int n);