From 66deac2a1ddc3bebff73a76752e18f9933391661 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 23 Nov 2023 09:32:34 +0200 Subject: [preproc] Replaced length(nameQueue) with nql for more robustness --- preproc.awk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/preproc.awk b/preproc.awk index 50f6660..962c36d 100644 --- a/preproc.awk +++ b/preproc.awk @@ -82,7 +82,7 @@ stage1 && /<[^>]*>[[:blank:]]*\{/ { # Macro placement stage1 && /<[^>]*>/ { - for (i = 0; i < length(nameQueue); i++) { + for (i = 0; i < nql; i++) { sub(/^ /, "") } nameOnly = $0 @@ -95,7 +95,7 @@ stage1 && /<[^>]*>/ { stage1 && depth >= 1 { depth += gsub("{", "{") - gsub("}", "}") - for (i = 0; i < length(nameQueue); i++) { + for (i = 0; i < nql; i++) { sub(/^ /, "") } -- cgit v1.2.3