CVS commit: src/usr.bin/indent

2023-06-05 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jun 5 06:43:14 UTC 2023 Modified Files: src/usr.bin/indent: io.c Log Message: indent: let the output routines keep track of the indentation No functional change. To generate a diff of this commit: cvs rdiff -u -r1.193

CVS commit: src/usr.bin/indent

2023-06-05 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jun 5 06:43:14 UTC 2023 Modified Files: src/usr.bin/indent: io.c Log Message: indent: let the output routines keep track of the indentation No functional change. To generate a diff of this commit: cvs rdiff -u -r1.193

CVS commit: src/usr.bin/indent

2023-06-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jun 4 20:51:19 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.c indent.h io.c lexi.c pr_comment.c Log Message: indent: remove read pointer from buffers that don't need it The only buffer that needs a read

CVS commit: src/usr.bin/indent

2023-06-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jun 4 20:51:19 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.c indent.h io.c lexi.c pr_comment.c Log Message: indent: remove read pointer from buffers that don't need it The only buffer that needs a read

CVS commit: src/usr.bin/indent

2023-06-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jun 4 20:23:13 UTC 2023 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: fix out-of-bounds read when reading a comment To generate a diff of this commit: cvs rdiff -u -r1.149 -r1.150

CVS commit: src/usr.bin/indent

2023-06-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jun 4 20:23:13 UTC 2023 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: fix out-of-bounds read when reading a comment To generate a diff of this commit: cvs rdiff -u -r1.149 -r1.150

CVS commit: src/usr.bin/indent

2023-06-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jun 4 19:08:49 UTC 2023 Modified Files: src/usr.bin/indent: README.md Log Message: indent: remove trailing whitespace from README To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/usr.bin/indent/README.md

CVS commit: src/usr.bin/indent

2023-06-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jun 4 19:08:49 UTC 2023 Modified Files: src/usr.bin/indent: README.md Log Message: indent: remove trailing whitespace from README To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/usr.bin/indent/README.md

CVS commit: src/usr.bin/indent

2023-06-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jun 4 17:54:11 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.c indent.h io.c parse.c Log Message: indent: track the kind of '{' on the parser stack To generate a diff of this commit: cvs rdiff -u -r1.32

CVS commit: src/usr.bin/indent

2023-06-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jun 4 17:54:11 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.c indent.h io.c parse.c Log Message: indent: track the kind of '{' on the parser stack To generate a diff of this commit: cvs rdiff -u -r1.32

CVS commit: src/usr.bin/indent

2023-06-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jun 4 17:02:06 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.h Log Message: indent: fix debug output of the parser symbol stack Even though the stack always contains a stmt_list as first element, print it

CVS commit: src/usr.bin/indent

2023-06-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jun 4 17:02:06 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.h Log Message: indent: fix debug output of the parser symbol stack Even though the stack always contains a stmt_list as first element, print it

CVS commit: src/usr.bin/indent

2023-06-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jun 4 14:38:16 UTC 2023 Modified Files: src/usr.bin/indent: indent.c io.c Log Message: indent: ensure that the 'block init level' never goes negative No functional change. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/indent

2023-06-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jun 4 14:38:16 UTC 2023 Modified Files: src/usr.bin/indent: indent.c io.c Log Message: indent: ensure that the 'block init level' never goes negative No functional change. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/indent

2023-06-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jun 4 11:33:36 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.c indent.h lexi.c Log Message: indent: use separate lexer symbols for the different kinds of ':' To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/indent

2023-06-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jun 4 11:33:36 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.c indent.h lexi.c Log Message: indent: use separate lexer symbols for the different kinds of ':' To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/indent

2023-06-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jun 4 11:09:18 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.c indent.h io.c Log Message: indent: handle the indentation of 'case' in a simpler way To generate a diff of this commit: cvs rdiff -u -r1.26

CVS commit: src/usr.bin/indent

2023-06-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jun 4 11:09:18 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.c indent.h io.c Log Message: indent: handle the indentation of 'case' in a simpler way To generate a diff of this commit: cvs rdiff -u -r1.26

CVS commit: src/usr.bin/indent

2023-06-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jun 4 10:23:36 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.c indent.h lexi.c Log Message: indent: separate code for handling parentheses and brackets Handling parentheses is more complicated than for

CVS commit: src/usr.bin/indent

2023-06-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Jun 4 10:23:36 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.c indent.h lexi.c Log Message: indent: separate code for handling parentheses and brackets Handling parentheses is more complicated than for

CVS commit: src/usr.bin/indent

2023-06-03 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jun 3 21:24:26 UTC 2023 Modified Files: src/usr.bin/indent: indent.c parse.c Log Message: indent: clean up handling of brace indentation No functional change. To generate a diff of this commit: cvs rdiff -u -r1.315

CVS commit: src/usr.bin/indent

2023-06-03 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Jun 3 21:24:26 UTC 2023 Modified Files: src/usr.bin/indent: indent.c parse.c Log Message: indent: clean up handling of brace indentation No functional change. To generate a diff of this commit: cvs rdiff -u -r1.315

CVS commit: src/usr.bin/indent

2023-05-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue May 23 18:16:28 UTC 2023 Modified Files: src/usr.bin/indent: indent.c io.c lexi.c Log Message: indent: separate code for handling enums from the lexer The lexer's responsibility is to generate tokens, it's not supposed to

CVS commit: src/usr.bin/indent

2023-05-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue May 23 18:16:28 UTC 2023 Modified Files: src/usr.bin/indent: indent.c io.c lexi.c Log Message: indent: separate code for handling enums from the lexer The lexer's responsibility is to generate tokens, it's not supposed to

CVS commit: src/usr.bin/indent

2023-05-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue May 23 12:12:29 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.c indent.h io.c lexi.c parse.c Log Message: indent: split debug output into paragraphs The paragraphs separate the different processing steps:

CVS commit: src/usr.bin/indent

2023-05-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue May 23 12:12:29 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.c indent.h io.c lexi.c parse.c Log Message: indent: split debug output into paragraphs The paragraphs separate the different processing steps:

CVS commit: src/usr.bin/indent

2023-05-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue May 23 11:37:23 UTC 2023 Modified Files: src/usr.bin/indent: indent.c Log Message: indent: extract processing of a single token to separate function No functional change. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/indent

2023-05-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue May 23 11:37:23 UTC 2023 Modified Files: src/usr.bin/indent: indent.c Log Message: indent: extract processing of a single token to separate function No functional change. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/indent

2023-05-22 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon May 22 22:09:46 UTC 2023 Modified Files: src/usr.bin/indent: lexi.c Log Message: indent: adjust indentation in lexer No binary change. To generate a diff of this commit: cvs rdiff -u -r1.202 -r1.203

CVS commit: src/usr.bin/indent

2023-05-22 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon May 22 22:09:46 UTC 2023 Modified Files: src/usr.bin/indent: lexi.c Log Message: indent: adjust indentation in lexer No binary change. To generate a diff of this commit: cvs rdiff -u -r1.202 -r1.203

CVS commit: src/usr.bin/indent

2023-05-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun May 21 10:05:20 UTC 2023 Modified Files: src/usr.bin/indent: indent.c Log Message: indent: don't read out-of-bounds memory in preprocessing lines (Since a few minutes.) If a line '#if 0' was followed by an unlikely line

CVS commit: src/usr.bin/indent

2023-05-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun May 21 10:05:20 UTC 2023 Modified Files: src/usr.bin/indent: indent.c Log Message: indent: don't read out-of-bounds memory in preprocessing lines (Since a few minutes.) If a line '#if 0' was followed by an unlikely line

CVS commit: src/usr.bin/indent

2023-05-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat May 20 16:31:31 UTC 2023 Modified Files: src/usr.bin/indent: indent.c Log Message: indent: remove redundant checks in processing of '}' No functional change. To generate a diff of this commit: cvs rdiff -u -r1.299 -r1.300

CVS commit: src/usr.bin/indent

2023-05-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat May 20 16:31:31 UTC 2023 Modified Files: src/usr.bin/indent: indent.c Log Message: indent: remove redundant checks in processing of '}' No functional change. To generate a diff of this commit: cvs rdiff -u -r1.299 -r1.300

CVS commit: src/usr.bin/indent

2023-05-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat May 20 11:53:53 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.c indent.h io.c lexi.c pr_comment.c Log Message: indent: extract the output state from the parser state The parser state depends on the

CVS commit: src/usr.bin/indent

2023-05-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat May 20 02:47:35 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.c indent.h Log Message: indent: add debug logging for brace indentation No functional change outside debug mode, as the initialization of

CVS commit: src/usr.bin/indent

2023-05-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat May 20 02:47:35 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.c indent.h Log Message: indent: add debug logging for brace indentation No functional change outside debug mode, as the initialization of

CVS commit: src/usr.bin/indent

2023-05-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat May 20 01:28:14 UTC 2023 Modified Files: src/usr.bin/indent: lexi.c Log Message: indent: clean up lexing of word tokens No functional change. To generate a diff of this commit: cvs rdiff -u -r1.200 -r1.201

CVS commit: src/usr.bin/indent

2023-05-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat May 20 01:28:14 UTC 2023 Modified Files: src/usr.bin/indent: lexi.c Log Message: indent: clean up lexing of word tokens No functional change. To generate a diff of this commit: cvs rdiff -u -r1.200 -r1.201

CVS commit: src/usr.bin/indent

2023-05-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat May 20 00:17:56 UTC 2023 Modified Files: src/usr.bin/indent: indent.h lexi.c Log Message: indent: separate detection of function definitions from lexing '*' No functional change. To generate a diff of this commit: cvs

CVS commit: src/usr.bin/indent

2023-05-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat May 20 00:17:56 UTC 2023 Modified Files: src/usr.bin/indent: indent.h lexi.c Log Message: indent: separate detection of function definitions from lexing '*' No functional change. To generate a diff of this commit: cvs

CVS commit: src/usr.bin/indent

2023-05-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu May 18 07:13:05 UTC 2023 Modified Files: src/usr.bin/indent: indent.c Log Message: indent: remove detailed rules for blank before comment To generate a diff of this commit: cvs rdiff -u -r1.294 -r1.295

CVS commit: src/usr.bin/indent

2023-05-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu May 18 07:13:05 UTC 2023 Modified Files: src/usr.bin/indent: indent.c Log Message: indent: remove detailed rules for blank before comment To generate a diff of this commit: cvs rdiff -u -r1.294 -r1.295

CVS commit: src/usr.bin/indent

2023-05-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu May 18 06:01:39 UTC 2023 Modified Files: src/usr.bin/indent: args.c indent.c indent.h Log Message: indent: rename a few functions No functional change. To generate a diff of this commit: cvs rdiff -u -r1.79 -r1.80

CVS commit: src/usr.bin/indent

2023-05-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu May 18 06:01:39 UTC 2023 Modified Files: src/usr.bin/indent: args.c indent.c indent.h Log Message: indent: rename a few functions No functional change. To generate a diff of this commit: cvs rdiff -u -r1.79 -r1.80

CVS commit: src/usr.bin/indent

2023-05-17 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu May 18 04:23:03 UTC 2023 Modified Files: src/usr.bin/indent: .indent.pro args.c debug.c indent.c indent.h io.c lexi.c parse.c pr_comment.c Log Message: indent: switch to standard code style Taken from

CVS commit: src/usr.bin/indent

2023-05-17 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu May 18 03:38:34 UTC 2023 Modified Files: src/usr.bin/indent: indent.c indent.h io.c Log Message: indent: remove unnecessary variable size optimization Due to the enum that follows in the struct, the short variable was padded

CVS commit: src/usr.bin/indent

2023-05-17 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu May 18 03:38:34 UTC 2023 Modified Files: src/usr.bin/indent: indent.c indent.h io.c Log Message: indent: remove unnecessary variable size optimization Due to the enum that follows in the struct, the short variable was padded

CVS commit: src/usr.bin/indent

2023-05-17 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed May 17 18:03:25 UTC 2023 Modified Files: src/usr.bin/indent: debug.c Log Message: indent: fix indentation in preprocessor line No binary change. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12

CVS commit: src/usr.bin/indent

2023-05-17 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed May 17 18:03:25 UTC 2023 Modified Files: src/usr.bin/indent: debug.c Log Message: indent: fix indentation in preprocessor line No binary change. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12

CVS commit: src/usr.bin/indent

2023-05-16 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue May 16 13:26:26 UTC 2023 Modified Files: src/usr.bin/indent: indent.c indent.h io.c lexi.c pr_comment.c Log Message: indent: directly access the input buffer No functional change. To generate a diff of this commit: cvs

CVS commit: src/usr.bin/indent

2023-05-16 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue May 16 13:26:26 UTC 2023 Modified Files: src/usr.bin/indent: indent.c indent.h io.c lexi.c pr_comment.c Log Message: indent: directly access the input buffer No functional change. To generate a diff of this commit: cvs

CVS commit: src/usr.bin/indent

2023-05-16 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue May 16 12:46:43 UTC 2023 Modified Files: src/usr.bin/indent: .indent.pro debug.c lexi.c parse.c Log Message: indent: allow comments in column 1 to be formatted To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6

CVS commit: src/usr.bin/indent

2023-05-16 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue May 16 12:46:43 UTC 2023 Modified Files: src/usr.bin/indent: .indent.pro debug.c lexi.c parse.c Log Message: indent: allow comments in column 1 to be formatted To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6

CVS commit: src/usr.bin/indent

2023-05-16 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue May 16 07:13:05 UTC 2023 Modified Files: src/usr.bin/indent: indent.h io.c lexi.c Log Message: indent: move parsing of 'INDENT OFF/ON' comments to the lexer No functional change. To generate a diff of this commit: cvs

CVS commit: src/usr.bin/indent

2023-05-16 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue May 16 07:13:05 UTC 2023 Modified Files: src/usr.bin/indent: indent.h io.c lexi.c Log Message: indent: move parsing of 'INDENT OFF/ON' comments to the lexer No functional change. To generate a diff of this commit: cvs

CVS commit: src/usr.bin/indent

2023-05-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon May 15 22:52:21 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.c indent.h lexi.c Log Message: indent: clean up detection of whether parentheses form a cast No functional change. To generate a diff of this

CVS commit: src/usr.bin/indent

2023-05-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon May 15 22:52:21 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.c indent.h lexi.c Log Message: indent: clean up detection of whether parentheses form a cast No functional change. To generate a diff of this

CVS commit: src/usr.bin/indent

2023-05-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon May 15 22:35:41 UTC 2023 Modified Files: src/usr.bin/indent: indent.c io.c Log Message: indent: fix cast detection In process_lparen_or_lbracket, ps.paren[...].maybe_cast was not initialized, which may have been the cause

CVS commit: src/usr.bin/indent

2023-05-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon May 15 22:35:41 UTC 2023 Modified Files: src/usr.bin/indent: indent.c io.c Log Message: indent: fix cast detection In process_lparen_or_lbracket, ps.paren[...].maybe_cast was not initialized, which may have been the cause

CVS commit: src/usr.bin/indent

2023-05-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon May 15 20:35:56 UTC 2023 Modified Files: src/usr.bin/indent: .indent.pro Log Message: indent: clean up local indentation profile The -eei option now works, the type hints are no longer necessary. To generate a diff of this

CVS commit: src/usr.bin/indent

2023-05-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon May 15 20:35:56 UTC 2023 Modified Files: src/usr.bin/indent: .indent.pro Log Message: indent: clean up local indentation profile The -eei option now works, the type hints are no longer necessary. To generate a diff of this

CVS commit: src/usr.bin/indent

2023-05-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon May 15 20:12:28 UTC 2023 Modified Files: src/usr.bin/indent: indent.c indent.h parse.c Log Message: indent: format its own code, extend some comments With manual corrections, as there are still some bugs left. No functional

CVS commit: src/usr.bin/indent

2023-05-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon May 15 20:12:28 UTC 2023 Modified Files: src/usr.bin/indent: indent.c indent.h parse.c Log Message: indent: format its own code, extend some comments With manual corrections, as there are still some bugs left. No functional

CVS commit: src/usr.bin/indent

2023-05-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon May 15 13:37:16 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.c io.c lexi.c Log Message: indent: indent multi-line conditions No functional change. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8

CVS commit: src/usr.bin/indent

2023-05-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon May 15 13:37:16 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.c io.c lexi.c Log Message: indent: indent multi-line conditions No functional change. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8

CVS commit: src/usr.bin/indent

2023-05-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon May 15 09:53:32 UTC 2023 Modified Files: src/usr.bin/indent: indent.h Log Message: indent: group parser state by topic No functional change. To generate a diff of this commit: cvs rdiff -u -r1.135 -r1.136

CVS commit: src/usr.bin/indent

2023-05-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon May 15 09:53:32 UTC 2023 Modified Files: src/usr.bin/indent: indent.h Log Message: indent: group parser state by topic No functional change. To generate a diff of this commit: cvs rdiff -u -r1.135 -r1.136

CVS commit: src/usr.bin/indent

2023-05-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon May 15 09:22:53 UTC 2023 Modified Files: src/usr.bin/indent: .indent.pro indent.c lexi.c pr_comment.c Log Message: indent: let indent format its own code With manual corrections, as indent does not properly indent multi-line

CVS commit: src/usr.bin/indent

2023-05-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon May 15 09:22:53 UTC 2023 Modified Files: src/usr.bin/indent: .indent.pro indent.c lexi.c pr_comment.c Log Message: indent: let indent format its own code With manual corrections, as indent does not properly indent multi-line

CVS commit: src/usr.bin/indent

2023-05-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon May 15 09:00:51 UTC 2023 Modified Files: src/usr.bin/indent: debug.c Log Message: indent: document feature toggle for debugging output To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/usr.bin/indent/debug.c

CVS commit: src/usr.bin/indent

2023-05-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon May 15 09:00:51 UTC 2023 Modified Files: src/usr.bin/indent: debug.c Log Message: indent: document feature toggle for debugging output To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/usr.bin/indent/debug.c

CVS commit: src/usr.bin/indent

2023-05-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon May 15 08:11:27 UTC 2023 Modified Files: src/usr.bin/indent: indent.c io.c parse.c Log Message: indent: remove redundant include lines To generate a diff of this commit: cvs rdiff -u -r1.270 -r1.271

CVS commit: src/usr.bin/indent

2023-05-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon May 15 08:11:27 UTC 2023 Modified Files: src/usr.bin/indent: indent.c io.c parse.c Log Message: indent: remove redundant include lines To generate a diff of this commit: cvs rdiff -u -r1.270 -r1.271

CVS commit: src/usr.bin/indent

2023-05-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon May 15 08:02:01 UTC 2023 Modified Files: src/usr.bin/indent: indent.c indent.h lexi.c Log Message: indent: clean up memory allocation No functional change. To generate a diff of this commit: cvs rdiff -u -r1.269 -r1.270

CVS commit: src/usr.bin/indent

2023-05-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon May 15 08:02:01 UTC 2023 Modified Files: src/usr.bin/indent: indent.c indent.h lexi.c Log Message: indent: clean up memory allocation No functional change. To generate a diff of this commit: cvs rdiff -u -r1.269 -r1.270

CVS commit: src/usr.bin/indent

2023-05-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon May 15 07:57:22 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.c indent.h lexi.c Log Message: indent: move debugging code to separate file No functional change. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/indent

2023-05-15 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon May 15 07:57:22 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.c indent.h lexi.c Log Message: indent: move debugging code to separate file No functional change. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/indent

2023-05-14 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun May 14 18:05:53 UTC 2023 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: shorten variable names for indenting comments No functional change. To generate a diff of this commit: cvs rdiff -u -r1.137

CVS commit: src/usr.bin/indent

2023-05-14 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun May 14 18:05:53 UTC 2023 Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: shorten variable names for indenting comments No functional change. To generate a diff of this commit: cvs rdiff -u -r1.137

CVS commit: src/usr.bin/indent

2023-05-14 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun May 14 14:14:07 UTC 2023 Modified Files: src/usr.bin/indent: indent.h io.c lexi.c pr_comment.c Log Message: indent: reduce code for scanning tokens The input line is guaranteed to end with '\n', so there's no need to carry

CVS commit: src/usr.bin/indent

2023-05-14 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun May 14 14:14:07 UTC 2023 Modified Files: src/usr.bin/indent: indent.h io.c lexi.c pr_comment.c Log Message: indent: reduce code for scanning tokens The input line is guaranteed to end with '\n', so there's no need to carry

CVS commit: src/usr.bin/indent

2023-05-14 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun May 14 12:12:02 UTC 2023 Modified Files: src/usr.bin/indent: args.c indent.c indent.h io.c lexi.c parse.c pr_comment.c Log Message: indent: remove foreign RCS IDs To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/indent

2023-05-14 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun May 14 12:12:02 UTC 2023 Modified Files: src/usr.bin/indent: args.c indent.c indent.h io.c lexi.c parse.c pr_comment.c Log Message: indent: remove foreign RCS IDs To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/indent

2023-05-14 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun May 14 11:02:53 UTC 2023 Modified Files: src/usr.bin/indent: lexi.c Log Message: indent: reduce binary size No functional change. To generate a diff of this commit: cvs rdiff -u -r1.179 -r1.180 src/usr.bin/indent/lexi.c

CVS commit: src/usr.bin/indent

2023-05-14 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun May 14 11:02:53 UTC 2023 Modified Files: src/usr.bin/indent: lexi.c Log Message: indent: reduce binary size No functional change. To generate a diff of this commit: cvs rdiff -u -r1.179 -r1.180 src/usr.bin/indent/lexi.c

CVS commit: src/usr.bin/indent

2023-05-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat May 13 17:54:34 UTC 2023 Modified Files: src/usr.bin/indent: indent.c Log Message: indent: prevent undefined behavior on unbalanced parentheses To generate a diff of this commit: cvs rdiff -u -r1.263 -r1.264

CVS commit: src/usr.bin/indent

2023-05-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat May 13 17:54:34 UTC 2023 Modified Files: src/usr.bin/indent: indent.c Log Message: indent: prevent undefined behavior on unbalanced parentheses To generate a diff of this commit: cvs rdiff -u -r1.263 -r1.264

CVS commit: src/usr.bin/indent

2023-05-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat May 13 17:20:41 UTC 2023 Modified Files: src/usr.bin/indent: indent.c io.c Log Message: indent: do not add a blank at the beginning of a line Most calls to output_line did already reset the variable. There may be some

CVS commit: src/usr.bin/indent

2023-05-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat May 13 17:20:41 UTC 2023 Modified Files: src/usr.bin/indent: indent.c io.c Log Message: indent: do not add a blank at the beginning of a line Most calls to output_line did already reset the variable. There may be some

CVS commit: src/usr.bin/indent

2023-05-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat May 13 16:19:37 UTC 2023 Modified Files: src/usr.bin/indent: indent.c Log Message: indent: replace __dead functions with return statements No functional change. To generate a diff of this commit: cvs rdiff -u -r1.260

CVS commit: src/usr.bin/indent

2023-05-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat May 13 16:19:37 UTC 2023 Modified Files: src/usr.bin/indent: indent.c Log Message: indent: replace __dead functions with return statements No functional change. To generate a diff of this commit: cvs rdiff -u -r1.260

CVS commit: src/usr.bin/indent

2023-05-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat May 13 14:30:49 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.c indent.h io.c pr_comment.c Log Message: indent: use enum instead of magic numbers for tracking declarations No functional change. To generate a

CVS commit: src/usr.bin/indent

2023-05-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat May 13 14:30:49 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.c indent.h io.c pr_comment.c Log Message: indent: use enum instead of magic numbers for tracking declarations No functional change. To generate a

CVS commit: src/usr.bin/indent

2023-05-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat May 13 13:48:54 UTC 2023 Modified Files: src/usr.bin/indent: args.c indent.h io.c Log Message: indent: improve names of option variables No functional change. To generate a diff of this commit: cvs rdiff -u -r1.74 -r1.75

CVS commit: src/usr.bin/indent

2023-05-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat May 13 13:48:54 UTC 2023 Modified Files: src/usr.bin/indent: args.c indent.h io.c Log Message: indent: improve names of option variables No functional change. To generate a diff of this commit: cvs rdiff -u -r1.74 -r1.75

CVS commit: src/usr.bin/indent

2023-05-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat May 13 13:45:24 UTC 2023 Modified Files: src/usr.bin/indent: debug.c Log Message: indent: add debug logging for enum token classification To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2

CVS commit: src/usr.bin/indent

2023-05-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat May 13 13:45:24 UTC 2023 Modified Files: src/usr.bin/indent: debug.c Log Message: indent: add debug logging for enum token classification To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2

CVS commit: src/usr.bin/indent

2023-05-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat May 13 12:31:02 UTC 2023 Modified Files: src/usr.bin/indent: indent.c indent.h io.c lexi.c pr_comment.c Log Message: indent: rename struct fields for buffers No binary change except for assertion line numbers. To generate

CVS commit: src/usr.bin/indent

2023-05-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat May 13 12:31:02 UTC 2023 Modified Files: src/usr.bin/indent: indent.c indent.h io.c lexi.c pr_comment.c Log Message: indent: rename struct fields for buffers No binary change except for assertion line numbers. To generate

<    1   2   3   4   5   6   7   8   9   >