diff libgsmhr1/namespace.awk @ 502:b0333fa167c3

libgsmhr1: compile mathhalf.c
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 19 Jun 2024 01:06:28 +0000
parents libtwamr/namespace.awk@b22f13fd0f6a
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libgsmhr1/namespace.awk	Wed Jun 19 01:06:28 2024 +0000
@@ -0,0 +1,22 @@
+# This awk script generates namespace.h from namespace.list
+
+BEGIN {
+	print "/* Auto-generated; do not edit! */"
+	print ""
+	print "#ifndef	namespace_h"
+	print "#define	namespace_h"
+	print ""
+}
+
+{
+	for (i = 1; i <= NF; i++) {
+		if ($i ~ /^#/)
+			break;
+		printf "#define	%s	gsmhr__%s\n", $i, $i;
+	}
+}
+
+END {
+	print ""
+	print "#endif"
+}