FreeCalypso > hg > gsm-codec-lib
comparison libtwamr/namespace.awk @ 351:97c699f40ab3
libtwamr: generate namespace.h from namespace.list
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 05 May 2024 20:34:55 +0000 |
parents | |
children | b22f13fd0f6a |
comparison
equal
deleted
inserted
replaced
350:9b05bbc23b8a | 351:97c699f40ab3 |
---|---|
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 NF == 1 && $1 !~ /^#/ { | |
12 printf "#define %s amr__%s\n", $1, $1 | |
13 } | |
14 | |
15 END { | |
16 print "" | |
17 print "#endif" | |
18 } |