view libtwamr/namespace.awk @ 423:cf90077b753c

twamr-tseq-enc: treat dribble input as non-fatal 3GPP VAD2 test sequences dt22.inp and dt23.inp have incomplete frames at the end, hence we need to ignore that dribble in a non-fatal manner in order to pass all tests.
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 07 May 2024 07:20:29 +0000
parents b22f13fd0f6a
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	amr__%s\n", $i, $i;
	}
}

END {
	print ""
	print "#endif"
}