#!/bin/awk -f
#
-# Copyright © 2023 Nick Bowler
+# Copyright © 2023-2024 Nick Bowler
#
# Hackjob to improve the horrible yytname array generated by Bison.
#
# At the end of the yytname definition, output our replacement function.
in_table && $0 ~ /^};/ {
print "#if !defined(UINT_LEAST8_MAX) || !defined(UINT_LEAST16_MAX)";
- print "# include <stdint.h>";
+ print "# include <inttypes.h>";
print "#endif";
print "#ifndef assert";
print "# include <assert.h>";