FreeCalypso > hg > gsm-codec-lib
comparison libtwamr/namespace.awk @ 360:b22f13fd0f6a
libtwamr namespace gen: list multiple items per line
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 06 May 2024 01:49:57 +0000 |
parents | 97c699f40ab3 |
children |
comparison
equal
deleted
inserted
replaced
359:dfb1f86541b2 | 360:b22f13fd0f6a |
---|---|
6 print "#ifndef namespace_h" | 6 print "#ifndef namespace_h" |
7 print "#define namespace_h" | 7 print "#define namespace_h" |
8 print "" | 8 print "" |
9 } | 9 } |
10 | 10 |
11 NF == 1 && $1 !~ /^#/ { | 11 { |
12 printf "#define %s amr__%s\n", $1, $1 | 12 for (i = 1; i <= NF; i++) { |
13 if ($i ~ /^#/) | |
14 break; | |
15 printf "#define %s amr__%s\n", $i, $i; | |
16 } | |
13 } | 17 } |
14 | 18 |
15 END { | 19 END { |
16 print "" | 20 print "" |
17 print "#endif" | 21 print "#endif" |