FreeCalypso > hg > gsm-codec-lib
view libgsmhr1/namespace.awk @ 570:b4c4ed4b1b91
hrutil: new program gsmhr-cod-craft
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 12 Feb 2025 04:53:08 +0000 (6 weeks ago) |
parents | b0333fa167c3 |
children |
line wrap: on
line source
# 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" }