addprogfmt
addprogfmt("#include <%s>\n", st->st_hdrs[i]);
addprogfmt("test_value%s;\n", s); /* s usually empty */
addprogfmt("\ttest_value = %s;\n}", st->st_name);
addprogfmt("#if !defined(%s)", st->st_name);
addprogfmt("|| %s != %s", st->st_name, st->st_defval);
addprogfmt("\n#error %s is not defined or has the wrong value",
addprogfmt("\n#endif\n");
addprogfmt("(*a%d", i);
addprogfmt("a%d[", i);
addprogfmt(" a%d", i);
addprogfmt(")%s\n{\n\t", s);
addprogfmt("%s(", st->st_name);
addprogfmt("%sa%d", i > 0 ? ", " : "", i);