From 05736ea75c58becace133c284f0dae3945c84f80 Mon Sep 17 00:00:00 2001 From: Daniel Stevens Date: Sat, 24 Oct 2020 00:12:17 -0600 Subject: [PATCH] Fix use of reserved awk name `isarray` --- src/libxlibtrace-functions.h.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libxlibtrace-functions.h.sh b/src/libxlibtrace-functions.h.sh index a57ece8..61be1a8 100755 --- a/src/libxlibtrace-functions.h.sh +++ b/src/libxlibtrace-functions.h.sh @@ -81,7 +81,7 @@ function isconst(t) { return (t ~ /^[cC][oO][nN][sS][tT][ ]/); } -function isarray(t) { +function isarray2(t) { return (t ~ /\[.*\]$/); } @@ -90,7 +90,7 @@ function makedefn(t, n) { return sprintf("%s", t); } else if (isfunctionpointer(t)) { return gensub("^(.*\\(\\*)(\\).*)$", "\\1"n"\\2", "", t); - } else if (isarray(t)) { + } else if (isarray2(t)) { return gensub("^(.*)(\\[.*\\])$", "\\1"n"\\2", "", t); } else { return sprintf("%s %s", t, n);