tests: adjust c99-to-c89 patch as well as the code to generate it