view libgsmhr1/namespace.awk @ 533:3a617e4e9b27

libgsmfr2: add const words with struct sizes
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 19 Sep 2024 21:58:10 +0000
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"
}