From 882561c1dd185e937a9ffc389d1aa1c45ac0d5f5 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Fri, 10 Nov 2023 19:27:46 +0100 Subject: [PATCH] Added TODO item for macro expansion. Currently I am 99% certain we are allocating too large a buffer. --- src/ulas.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ulas.c b/src/ulas.c index 2e65b91..0a69688 100644 --- 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 -- 2.30.2