Added TODO item for macro expansion. Currently I am 99% certain we are
authorLukas Krickl <lukas@krickl.dev>
Fri, 10 Nov 2023 18:27:46 +0000 (19:27 +0100)
committerLukas Krickl <lukas@krickl.dev>
Fri, 10 Nov 2023 18:27:46 +0000 (19:27 +0100)
allocating too large a buffer.

src/ulas.c

index 2e65b91c8d4efda7d203a988db9e150d53e8f76d..0a696880a8f91fa5f73e17ece9662fd7c1018a62 100644 (file)
@@ -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