]> git.draconx.ca Git - cdecl99.git/blobdiff - src/gen-specstr.awk
libcdecl: Avoid overalignment of string tables.
[cdecl99.git] / src / gen-specstr.awk
index c9148f80c22a95efbfed807fb063f52da9f463f0..0bc8278db172bbd7d2c782244639293c6bc8a3ed 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/awk -f
 #
-# Copyright © 2021, 2023 Nick Bowler
+# Copyright © 2021, 2023-2024 Nick Bowler
 #
 # Generate a function to return the C keyword corresponding to a specifier
 # type as a string, for internal use by the output routines.
@@ -82,7 +82,7 @@ END {
 
   print "static const char *spec_string(unsigned type)"
   print "{"
-  print "\tstatic const uint_least8_t idx[] = {";
+  print "\tstatic const unsigned char _Alignas(1) idx[] = {";
   print "\t\t" offset_table;
   print "\t};\n";