--- - branch: MAIN date: Sat Feb 12 15:50:14 UTC 2022 files: - new: '1.168' old: '1.167' path: src/usr.bin/indent/lexi.c pathrev: src/usr.bin/indent/lexi.c@1.168 type: modified id: 20220212T155014Z.918696920e81211b1898eefa9d2097ae96d5450c log: | indent: extend debug logging for the parser state The member names in struct parser_state are not trustworthy, for example in_decl does not correspond to the intuitive definition of "inside a declaration". To cope with this uncertainty, output the full state of the parser state to the debug log, not only the changes. This helps to track the inner state for small differences in the input, such as between 'typedef enum { TA, TB } TT' and 'enum { EA, EB } ET'. This hopefully helps in fixing PR#55453. No functional change outside debug mode. module: src subject: 'CVS commit: src/usr.bin/indent' unixtime: '1644681014' user: rillig