CVS commit: src/usr.bin/indent

2021-11-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 19 18:25:50 UTC 2021 Modified Files: src/usr.bin/indent: indent.h io.c Log Message: indent: unexport inbuf No functional change. To generate a diff of this commit: cvs rdiff -u -r1.95 -r1.96 src/usr.bin/indent/indent.h

CVS commit: src/usr.bin/indent

2021-11-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 19 18:25:50 UTC 2021 Modified Files: src/usr.bin/indent: indent.h io.c Log Message: indent: unexport inbuf No functional change. To generate a diff of this commit: cvs rdiff -u -r1.95 -r1.96 src/usr.bin/indent/indent.h

CVS commit: src/usr.bin/indent

2021-11-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 19 18:23:59 UTC 2021 Modified Files: src/usr.bin/indent: indent.h io.c pr_comment.c Log Message: indent: use character input API from pr_comment.c No functional change. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/indent

2021-11-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 19 18:23:59 UTC 2021 Modified Files: src/usr.bin/indent: indent.h io.c pr_comment.c Log Message: indent: use character input API from pr_comment.c No functional change. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/indent

2021-11-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 19 18:14:18 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h io.c Log Message: indent: remove all references to inbuf from indent.c No functional change. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/indent

2021-11-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 19 18:14:18 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h io.c Log Message: indent: remove all references to inbuf from indent.c No functional change. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/indent

2021-11-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 19 17:59:16 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h io.c Log Message: indent: move character input handling from indent.c to io.c No functional change. To generate a diff of this commit: cvs

CVS commit: src/usr.bin/indent

2021-11-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 19 17:59:16 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h io.c Log Message: indent: move character input handling from indent.c to io.c No functional change. To generate a diff of this commit: cvs

CVS commit: src/usr.bin/indent

2021-11-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 19 17:42:46 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h io.c Log Message: indent: move character input from indent.c to io.c No functional change. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/indent

2021-11-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 19 17:42:46 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h io.c Log Message: indent: move character input from indent.c to io.c No functional change. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/indent

2021-11-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 19 17:30:10 UTC 2021 Modified Files: src/usr.bin/indent: indent.h io.c lexi.c Log Message: indent: use character input API from the tokenizer No functional change. To generate a diff of this commit: cvs rdiff -u -r1.90

CVS commit: src/usr.bin/indent

2021-11-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 19 17:30:10 UTC 2021 Modified Files: src/usr.bin/indent: indent.h io.c lexi.c Log Message: indent: use character input API from the tokenizer No functional change. To generate a diff of this commit: cvs rdiff -u -r1.90

CVS commit: src/usr.bin/indent

2021-11-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 19 17:20:57 UTC 2021 Modified Files: src/usr.bin/indent: indent.h io.c lexi.c Log Message: indent: move character input handling from lexi.c to io.c No functional change. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/indent

2021-11-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 19 17:20:57 UTC 2021 Modified Files: src/usr.bin/indent: indent.h io.c lexi.c Log Message: indent: move character input handling from lexi.c to io.c No functional change. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/indent

2021-11-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 19 17:11:46 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h lexi.c pr_comment.c Log Message: indent: replace direct access to the input buffer This is a preparation for abstracting away all the low-level

CVS commit: src/usr.bin/indent

2021-11-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 19 17:11:46 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h lexi.c pr_comment.c Log Message: indent: replace direct access to the input buffer This is a preparation for abstracting away all the low-level

CVS commit: src/usr.bin/indent

2021-11-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 19 15:34:25 UTC 2021 Modified Files: src/usr.bin/indent: indent.c Log Message: indent: add debug logging for input buffer handling To generate a diff of this commit: cvs rdiff -u -r1.220 -r1.221

CVS commit: src/usr.bin/indent

2021-11-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 19 15:34:25 UTC 2021 Modified Files: src/usr.bin/indent: indent.c Log Message: indent: add debug logging for input buffer handling To generate a diff of this commit: cvs rdiff -u -r1.220 -r1.221

CVS commit: src/usr.bin/indent

2021-11-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 19 15:32:13 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h pr_comment.c Log Message: indent: rename input buffer variables >From reading the names 'save_com' and 'sc_end', it was not obvious enough that

CVS commit: src/usr.bin/indent

2021-11-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 19 15:32:13 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h pr_comment.c Log Message: indent: rename input buffer variables >From reading the names 'save_com' and 'sc_end', it was not obvious enough that

CVS commit: src/usr.bin/indent

2021-11-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 19 15:28:32 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h io.c lexi.c pr_comment.c Log Message: indent: group variables for input handling No functional change. To generate a diff of this commit: cvs

CVS commit: src/usr.bin/indent

2021-11-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 19 15:28:32 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h io.c lexi.c pr_comment.c Log Message: indent: group variables for input handling No functional change. To generate a diff of this commit: cvs

CVS commit: src/usr.bin/indent

2021-11-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Nov 18 23:26:58 UTC 2021 Modified Files: src/usr.bin/indent: lexi.c Log Message: indent: prevent use-after-free bug Triggered by the following artificial program: snip int * f (

CVS commit: src/usr.bin/indent

2021-11-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Nov 18 23:26:58 UTC 2021 Modified Files: src/usr.bin/indent: lexi.c Log Message: indent: prevent use-after-free bug Triggered by the following artificial program: snip int * f (

CVS commit: src/usr.bin/indent

2021-11-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Nov 18 16:54:35 UTC 2021 Added Files: src/usr.bin/indent: README.md Removed Files: src/usr.bin/indent: README Log Message: indent: replace old license discussion with a brief history section To generate a diff of

CVS commit: src/usr.bin/indent

2021-11-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Nov 18 16:54:35 UTC 2021 Added Files: src/usr.bin/indent: README.md Removed Files: src/usr.bin/indent: README Log Message: indent: replace old license discussion with a brief history section To generate a diff of

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 18:26:17 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h lexi.c parse.c pr_comment.c Log Message: indent: various cleanups Make several comments more precise. Rename process_end_of_file to process_eof

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 18:26:17 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h lexi.c parse.c pr_comment.c Log Message: indent: various cleanups Make several comments more precise. Rename process_end_of_file to process_eof

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 15:18:25 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h lexi.c Log Message: indent: rename ps.decl_nest to decl_level This better matches the comment. No functional change. To generate a diff of

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 15:18:25 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h lexi.c Log Message: indent: rename ps.decl_nest to decl_level This better matches the comment. No functional change. To generate a diff of

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 14:04:35 UTC 2021 Modified Files: src/usr.bin/indent: lexi.c Log Message: indent: move ps.p_l_follow closer to lsym_type_outside_parentheses This makes it easier to see the relation between these two. No functional

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 14:04:35 UTC 2021 Modified Files: src/usr.bin/indent: lexi.c Log Message: indent: move ps.p_l_follow closer to lsym_type_outside_parentheses This makes it easier to see the relation between these two. No functional

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 14:00:35 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h Log Message: indent: reduce negations in process_else, clean up comments No functional change. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 14:00:35 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h Log Message: indent: reduce negations in process_else, clean up comments No functional change. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 13:43:11 UTC 2021 Modified Files: src/usr.bin/indent: indent.h Log Message: indent: document the comment buffer more accurately To generate a diff of this commit: cvs rdiff -u -r1.82 -r1.83

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 13:43:11 UTC 2021 Modified Files: src/usr.bin/indent: indent.h Log Message: indent: document the comment buffer more accurately To generate a diff of this commit: cvs rdiff -u -r1.82 -r1.83

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 13:38:32 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: remove code that accessed out-of-bounds data from buffer Saving and restoring the exact buffer position had been necessary before

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 13:38:32 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: remove code that accessed out-of-bounds data from buffer Saving and restoring the exact buffer position had been necessary before

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 12:29:58 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: do not expand comment buffer unnecessarily This may have been a simple typo or a really tricky optimization that isn't obvious

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 12:29:58 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: do not expand comment buffer unnecessarily This may have been a simple typo or a really tricky optimization that isn't obvious

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 11:08:25 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: remove dead code from copy_comment_wrap C99 comments are not wrapped, therefore there is no need to check for them in

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 11:08:25 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: remove dead code from copy_comment_wrap C99 comments are not wrapped, therefore there is no need to check for them in

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 10:56:06 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: move documentation from process_comment to copy_comment_wrap To generate a diff of this commit: cvs rdiff -u -r1.109 -r1.110

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 10:56:06 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: move documentation from process_comment to copy_comment_wrap To generate a diff of this commit: cvs rdiff -u -r1.109 -r1.110

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 10:49:31 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: clean up process_comment The assignments to the variables were redundant, they are already done by analyze_comment. No

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 10:49:31 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: clean up process_comment The assignments to the variables were redundant, they are already done by analyze_comment. No

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 10:34:03 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: make end of comment detection of nowrap comments simpler No functional change. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 10:34:03 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: make end of comment detection of nowrap comments simpler No functional change. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 10:31:13 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: clean up overcomplicated conditions in copy_comment_nowrap No functional change. To generate a diff of this commit: cvs rdiff

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 10:31:13 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: clean up overcomplicated conditions in copy_comment_nowrap No functional change. To generate a diff of this commit: cvs rdiff

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 10:26:43 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: skip redundant conditions in copy_comment_nowrap No functional change. To generate a diff of this commit: cvs rdiff -u -r1.104

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 10:26:43 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: skip redundant conditions in copy_comment_nowrap No functional change. To generate a diff of this commit: cvs rdiff -u -r1.104

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 10:17:39 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: clean up copy_comment_nowrap The action for '\f' was the same as the default action. Replacing 'switch' with 'if' makes the code

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 10:17:39 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: clean up copy_comment_nowrap The action for '\f' was the same as the default action. Replacing 'switch' with 'if' makes the code

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 08:41:13 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: remove dead code from process_comment_nowrap In comments that are preserved, no additional leading ' * ' is inserted. No

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 08:41:13 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: remove dead code from process_comment_nowrap In comments that are preserved, no additional leading ' * ' is inserted. No

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 08:38:27 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: remove dead code from copy_comment_wrap No functional change. To generate a diff of this commit: cvs rdiff -u -r1.100 -r1.101

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 08:38:27 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: remove dead code from copy_comment_wrap No functional change. To generate a diff of this commit: cvs rdiff -u -r1.100 -r1.101

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 08:31:46 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: remove dead code from copy_comment_nowrap No functional change. To generate a diff of this commit: cvs rdiff -u -r1.99 -r1.100

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 08:31:46 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: remove dead code from copy_comment_nowrap No functional change. To generate a diff of this commit: cvs rdiff -u -r1.99 -r1.100

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 08:24:50 UTC 2021 Modified Files: src/usr.bin/indent: indent.h pr_comment.c Log Message: indent: split copy_comment into wrapping and non-wrapping These two cases are processed in an almost entirely different way. In

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 08:24:50 UTC 2021 Modified Files: src/usr.bin/indent: indent.h pr_comment.c Log Message: indent: split copy_comment into wrapping and non-wrapping These two cases are processed in an almost entirely different way. In

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 07:35:06 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h lexi.c Log Message: indent: distinguish between typename in parentheses and other words This gets rid of two members of parser_state. No

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 07:35:06 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h lexi.c Log Message: indent: distinguish between typename in parentheses and other words This gets rid of two members of parser_state. No

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 07:06:00 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h io.c lexi.c pr_comment.c Log Message: indent: rename 'inbuf' functions to 'inp' The variable 'inp' used to be named 'inbuf'. Make the function

CVS commit: src/usr.bin/indent

2021-11-07 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 7 07:06:00 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h io.c lexi.c pr_comment.c Log Message: indent: rename 'inbuf' functions to 'inp' The variable 'inp' used to be named 'inbuf'. Make the function

CVS commit: src/usr.bin/indent

2021-11-05 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 5 22:06:43 UTC 2021 Modified Files: src/usr.bin/indent: lexi.c Log Message: indent: consistently use token.e[-1] for the last added character No functional change. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/indent

2021-11-05 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 5 22:06:43 UTC 2021 Modified Files: src/usr.bin/indent: lexi.c Log Message: indent: consistently use token.e[-1] for the last added character No functional change. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/indent

2021-11-05 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 5 21:52:17 UTC 2021 Modified Files: src/usr.bin/indent: args.c Log Message: indent: clean up argument parsing In struct pro, place the dependent member below its dependency. In load_profile, consistently use -1 when

CVS commit: src/usr.bin/indent

2021-11-05 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 5 21:52:17 UTC 2021 Modified Files: src/usr.bin/indent: args.c Log Message: indent: clean up argument parsing In struct pro, place the dependent member below its dependency. In load_profile, consistently use -1 when

CVS commit: src/usr.bin/indent

2021-11-05 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 5 21:39:12 UTC 2021 Modified Files: src/usr.bin/indent: indent.h io.c Log Message: indent: the '+ 1' in dump_line_code is not an off-by-one error To generate a diff of this commit: cvs rdiff -u -r1.77 -r1.78

CVS commit: src/usr.bin/indent

2021-11-05 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 5 21:39:12 UTC 2021 Modified Files: src/usr.bin/indent: indent.h io.c Log Message: indent: the '+ 1' in dump_line_code is not an off-by-one error To generate a diff of this commit: cvs rdiff -u -r1.77 -r1.78

CVS commit: src/usr.bin/indent

2021-11-05 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 5 21:08:04 UTC 2021 Modified Files: src/usr.bin/indent: lexi.c Log Message: indent: add debug output for remaining members of parser_status To generate a diff of this commit: cvs rdiff -u -r1.130 -r1.131

CVS commit: src/usr.bin/indent

2021-11-05 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 5 21:08:04 UTC 2021 Modified Files: src/usr.bin/indent: lexi.c Log Message: indent: add debug output for remaining members of parser_status To generate a diff of this commit: cvs rdiff -u -r1.130 -r1.131

CVS commit: src/usr.bin/indent

2021-11-05 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 5 19:42:48 UTC 2021 Modified Files: src/usr.bin/indent: indent.c Log Message: indent: rename process_keyword_do to process_do, same for 'else' Before the symbols from the tokenizer had the prefix 'lsym', the symbols

CVS commit: src/usr.bin/indent

2021-11-05 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Nov 5 19:42:48 UTC 2021 Modified Files: src/usr.bin/indent: indent.c Log Message: indent: rename process_keyword_do to process_do, same for 'else' Before the symbols from the tokenizer had the prefix 'lsym', the symbols

CVS commit: src/usr.bin/indent

2021-11-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Nov 4 20:31:05 UTC 2021 Modified Files: src/usr.bin/indent: indent.c Log Message: indent: split process_comment_in_code into separate functions No functional change. To generate a diff of this commit: cvs rdiff -u -r1.206

CVS commit: src/usr.bin/indent

2021-11-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Nov 4 20:31:05 UTC 2021 Modified Files: src/usr.bin/indent: indent.c Log Message: indent: split process_comment_in_code into separate functions No functional change. To generate a diff of this commit: cvs rdiff -u -r1.206

CVS commit: src/usr.bin/indent

2021-11-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Nov 4 19:23:57 UTC 2021 Modified Files: src/usr.bin/indent: io.c Log Message: indent: do not discard former error comments anymore Since io.c 1.20 from 2019-10-19, indent has not placed error comments in the code anymore.

CVS commit: src/usr.bin/indent

2021-11-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Nov 4 19:23:57 UTC 2021 Modified Files: src/usr.bin/indent: io.c Log Message: indent: do not discard former error comments anymore Since io.c 1.20 from 2019-10-19, indent has not placed error comments in the code anymore.

CVS commit: src/usr.bin/indent

2021-11-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Nov 4 17:37:03 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: split process_comments into separate functions No functional change. To generate a diff of this commit: cvs rdiff -u -r1.94

CVS commit: src/usr.bin/indent

2021-11-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Nov 4 17:37:03 UTC 2021 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: split process_comments into separate functions No functional change. To generate a diff of this commit: cvs rdiff -u -r1.94

CVS commit: src/usr.bin/indent

2021-11-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Nov 4 17:10:37 UTC 2021 Modified Files: src/usr.bin/indent: io.c Log Message: indent: extract compute_code_indent_lineup into separate function Having 9 different paths in a single function made it more complicated to

CVS commit: src/usr.bin/indent

2021-11-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Nov 4 17:10:37 UTC 2021 Modified Files: src/usr.bin/indent: io.c Log Message: indent: extract compute_code_indent_lineup into separate function Having 9 different paths in a single function made it more complicated to

CVS commit: src/usr.bin/indent

2021-11-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Nov 4 17:08:50 UTC 2021 Modified Files: src/usr.bin/indent: io.c Log Message: indent: fix off-by-one confusion in paren_indent The variable was called 'indent' but actually contained a 'column', which was off by one. No

CVS commit: src/usr.bin/indent

2021-11-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Nov 4 17:08:50 UTC 2021 Modified Files: src/usr.bin/indent: io.c Log Message: indent: fix off-by-one confusion in paren_indent The variable was called 'indent' but actually contained a 'column', which was off by one. No

CVS commit: src/usr.bin/indent

2021-11-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Nov 4 17:07:02 UTC 2021 Modified Files: src/usr.bin/indent: io.c Log Message: indent: replace column computation with indentation computation No functional change. To generate a diff of this commit: cvs rdiff -u -r1.110

CVS commit: src/usr.bin/indent

2021-11-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Nov 4 17:07:02 UTC 2021 Modified Files: src/usr.bin/indent: io.c Log Message: indent: replace column computation with indentation computation No functional change. To generate a diff of this commit: cvs rdiff -u -r1.110

CVS commit: src/usr.bin/indent

2021-11-03 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Nov 4 00:13:57 UTC 2021 Modified Files: src/usr.bin/indent: io.c Log Message: indent: group conditions in compute_code_indent by topic No functional change. To generate a diff of this commit: cvs rdiff -u -r1.109 -r1.110

CVS commit: src/usr.bin/indent

2021-11-03 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Nov 4 00:13:57 UTC 2021 Modified Files: src/usr.bin/indent: io.c Log Message: indent: group conditions in compute_code_indent by topic No functional change. To generate a diff of this commit: cvs rdiff -u -r1.109 -r1.110

CVS commit: src/usr.bin/indent

2021-11-03 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Nov 3 21:47:35 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h io.c pr_comment.c Log Message: indent: inline indentation_after, shorten function name to ind_add There were only few calls to indentation_after,

CVS commit: src/usr.bin/indent

2021-11-03 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Nov 3 21:47:35 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h io.c pr_comment.c Log Message: indent: inline indentation_after, shorten function name to ind_add There were only few calls to indentation_after,

CVS commit: src/usr.bin/indent

2021-10-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Oct 31 22:38:12 UTC 2021 Modified Files: src/usr.bin/indent: args.c indent.c indent.h lexi.c Log Message: indent: clean up Initialize buffers in reading order, make comments more expressive, rename add_typename to

CVS commit: src/usr.bin/indent

2021-10-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Oct 31 22:38:12 UTC 2021 Modified Files: src/usr.bin/indent: args.c indent.c indent.h lexi.c Log Message: indent: clean up Initialize buffers in reading order, make comments more expressive, rename add_typename to

CVS commit: src/usr.bin/indent

2021-10-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Oct 31 20:59:26 UTC 2021 Modified Files: src/usr.bin/indent: lexi.c Log Message: indent: remove redundant keyword.is_type It is still confusing that not all type keywords end up as lsym_type. Those that occur inside

CVS commit: src/usr.bin/indent

2021-10-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Oct 31 20:59:26 UTC 2021 Modified Files: src/usr.bin/indent: lexi.c Log Message: indent: remove redundant keyword.is_type It is still confusing that not all type keywords end up as lsym_type. Those that occur inside

CVS commit: src/usr.bin/indent

2021-10-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Oct 31 20:40:42 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h lexi.c Log Message: indent: replace kw_tag with lsym_tag This leaves only one special type of token, which is lsym_ident, which in some cases

CVS commit: src/usr.bin/indent

2021-10-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Oct 31 20:40:42 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h lexi.c Log Message: indent: replace kw_tag with lsym_tag This leaves only one special type of token, which is lsym_ident, which in some cases

CVS commit: src/usr.bin/indent

2021-10-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Oct 31 19:57:44 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h lexi.c Log Message: indent: replace simple cases of keyword_kind with lexer_symbol The remaining keyword kinds 'tag' and 'type' require a bit

CVS commit: src/usr.bin/indent

2021-10-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Oct 31 19:57:44 UTC 2021 Modified Files: src/usr.bin/indent: indent.c indent.h lexi.c Log Message: indent: replace simple cases of keyword_kind with lexer_symbol The remaining keyword kinds 'tag' and 'type' require a bit

<    1   2   3   4   5   6   7   8   9   >