The NetBSD Project

CVS log for src/tests/usr.bin/indent/indent_off_on.c

[BACK] Up to [cvs.NetBSD.org] / src / tests / usr.bin / indent

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Jun 4 22:20:04 2023 UTC (18 months ago) by rillig
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +22 -1 lines
tests/indent: cover code in lexi.c

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Jun 3 21:44:08 2023 UTC (18 months ago) by rillig
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -3 lines
indent: fix indentation of adjacent '{'

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun May 21 10:18:44 2023 UTC (18 months, 2 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2 lines
tests/indent: fix outdated or wrong comments

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat May 20 10:25:47 2023 UTC (18 months, 2 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +17 -1 lines
indent: ensure that no blank lines are inserted in INDENT OFF mode

No blank lines were inserted previously, but the code looked
suspicious as if that were possible.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue May 16 08:04:04 2023 UTC (18 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +12 -53 lines
indent: fix handling of INDENT OFF/ON comments

Previously, the 'INDENT OFF' comments were interpreted when the newline
token from the line above the comment was processed, which was earlier
than could be reasonably expected.

The 'INDENT ON' comments were interpreted equally early, which led to
the situation that the 'INDENT OFF' comments were preserved literally
but the 'INDENT ON' comments weren't.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun May 14 17:53:38 2023 UTC (18 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +5 -4 lines
indent: fix handling of multiple block comments in a line

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu May 11 18:13:55 2023 UTC (18 months, 3 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +22 -3 lines
indent: remove broken code for handling blank lines

This fixes several bugs where blank lines were erroneously added or
removed, treating these old bugs for new bugs in different places.
These new bugs are expected to be easier to fix, as the old bugs will
not interfere anymore.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Apr 24 09:04:12 2022 UTC (2 years, 7 months ago) by rillig
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +41 -41 lines
tests/indent: change directive from '#' to '//'

Using a '//' instead of '#' turns the directives into well-formed C
code, resulting in fewer error markers in the editor.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Apr 22 21:21:20 2022 UTC (2 years, 7 months ago) by rillig
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +1 -2 lines
indent: remove FreeBSD IDs

Most of the IDs were empty anyway.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Nov 25 17:10:53 2021 UTC (3 years ago) by rillig
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +7 -11 lines
indent: fix heuristic for declaration/definition to post-1990 reality

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Nov 20 11:13:18 2021 UTC (3 years ago) by rillig
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -1 lines
tests/indent: normalize empty lines in tests

Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Nov 19 22:24:29 2021 UTC (3 years ago) by rillig
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +53 -5 lines
tests/indent: refine and extend tests

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Oct 19 21:21:07 2021 UTC (3 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +19 -1 lines
indent: use simpler code for copying the input buffer

In debug mode, this reduces the amount of debug output lines.

No functional change in default mode.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Oct 19 20:41:42 2021 UTC (3 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +80 -1 lines
tests/indent: move tests for indent comments

The special INDENT ON and INDENT OFF comments look like ordinary
comments but are handled in inbuf_read_line. Implementing this feature
in the input function has several unintended side effects regarding
indentation of these comments, as demonstrated by the tests.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Oct 19 20:20:25 2021 UTC (3 years, 1 month ago) by rillig
Branches: MAIN
tests/indent: add test for INDENT OFF/ON comments

Just to prevent unintended side effects when fixing bugs in this area.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>