comparison 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
comparison
equal deleted inserted replaced
501:597b39aef484 502:b0333fa167c3
1 # This awk script generates namespace.h from namespace.list
2
3 BEGIN {
4 print "/* Auto-generated; do not edit! */"
5 print ""
6 print "#ifndef namespace_h"
7 print "#define namespace_h"
8 print ""
9 }
10
11 {
12 for (i = 1; i <= NF; i++) {
13 if ($i ~ /^#/)
14 break;
15 printf "#define %s gsmhr__%s\n", $i, $i;
16 }
17 }
18
19 END {
20 print ""
21 print "#endif"
22 }