--- - branch: MAIN date: Fri Mar 12 19:11:29 UTC 2021 files: - new: '1.10' old: '1.9' path: src/usr.bin/indent/Makefile pathrev: src/usr.bin/indent/Makefile@1.10 type: modified - new: '1.28' old: '1.27' path: src/usr.bin/indent/io.c pathrev: src/usr.bin/indent/io.c@1.28 type: modified id: 20210312T191129Z.be27d9479f117f62c73762af5906c14dbb475c9c log: | indent: add helper functions for doing the actual output This allows to add debug logging to these few functions instead of all other places that might output something. Reducing the possible output formats to a few primitives makes dump_line simpler, especially the fprintf calls. It also removes the non-constant printf string. The call to output_int may be meant for debugging, as the character 0x80 is unlikely to appear in any real-world code. No functional change. module: src subject: 'CVS commit: src/usr.bin/indent' unixtime: '1615576289' user: rillig