projects
/
ulas
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a705cd
)
Added TODO item for macro expansion. Currently I am 99% certain we are
author
Lukas Krickl
<lukas@krickl.dev>
Fri, 10 Nov 2023 18:27:46 +0000
(19:27 +0100)
committer
Lukas Krickl
<lukas@krickl.dev>
Fri, 10 Nov 2023 18:27:46 +0000
(19:27 +0100)
allocating too large a buffer.
src/ulas.c
patch
|
blob
|
history
diff --git
a/src/ulas.c
b/src/ulas.c
index 2e65b91c8d4efda7d203a988db9e150d53e8f76d..0a696880a8f91fa5f73e17ece9662fd7c1018a62 100644
(file)
--- a/
src/ulas.c
+++ b/
src/ulas.c
@@
-215,6
+215,8
@@
char *ulas_preprocexpand(struct ulas_preproc *pp, const char *raw_line,
strncat(pp->line.buf, def->value, val_len);
break;
case ULAS_PPMACRO: {
+ // TODO: i am sure we can optimize the resize of line buffers here...
+
// get 9 comma separated values.
// $1-$9 will reference the respective arg
// $0 will reference the entire line after the macro name