projects
/
ulas
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97b8a22
)
Documented behavior of preproc
author
Lukas Krickl
<lukas@krickl.dev>
Tue, 7 Nov 2023 19:29:46 +0000
(20:29 +0100)
committer
Lukas Krickl
<lukas@krickl.dev>
Tue, 7 Nov 2023 19:29:46 +0000
(20:29 +0100)
include/ulas.h
patch
|
blob
|
history
diff --git
a/include/ulas.h
b/include/ulas.h
index 14c10f06cb0828b7099895fa6988f75d962fa8f9..072d0479d2abef59370430f296ed662ade510fc8 100644
(file)
--- a/
include/ulas.h
+++ b/
include/ulas.h
@@
-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);