From: Lukas Krickl Date: Fri, 10 Nov 2023 18:27:46 +0000 (+0100) Subject: Added TODO item for macro expansion. Currently I am 99% certain we are X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=882561c1dd185e937a9ffc389d1aa1c45ac0d5f5;p=ulas%2F.git Added TODO item for macro expansion. Currently I am 99% certain we are allocating too large a buffer. --- 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