The NetBSD Project

CVS log for src/usr.bin/xlint/lint1/ckgetopt.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / xlint / lint1

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.27: download - view: text, markup, annotated - select for diffs
Tue Mar 19 23:19:03 2024 UTC (8 months, 3 weeks ago) by rillig
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -4 lines
lint: keep invalid arguments in function calls

Previously, arguments of incomplete type or 'void' cleared all arguments
of the function call expression, requiring extra checks in later checks.

Invalid function calls are now exported to the .ln files, but that's
irrelevant in practice as these invalid function calls make lint1 fail,
after which xlint removes the .ln file.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Mar 9 13:54:47 2024 UTC (9 months ago) by rillig
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +14 -14 lines
lint: inline accessor macros for tnode_t

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Mar 3 16:09:01 2024 UTC (9 months, 1 week ago) by rillig
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3 lines
lint: clean up string parsing and snprintb check

Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Mar 1 21:52:48 2024 UTC (9 months, 1 week ago) by rillig
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -3 lines
lint: fix misleading initializer for string iterator

The field 'start' marks the start of the previous matching character,
not the current iterator position.

No binary change.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Feb 5 23:11:22 2024 UTC (10 months, 1 week ago) by rillig
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +14 -11 lines
lint: make function call arguments directly accessible

Previously, the arguments of a function call expression were arranged in
a linear tree structure, from right to left.  To allow easier access to
the arguments, store them in an array instead.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Feb 3 19:25:16 2024 UTC (10 months, 1 week ago) by rillig
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +8 -3 lines
lint: keep strings in their source representation

This allows further analysis depending on whether individual characters are
escaped as octal, hexadecimal or not at all.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat Feb 3 12:57:12 2024 UTC (10 months, 1 week ago) by rillig
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +5 -14 lines
lint: clean up comments, reduce scope of variables

Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Feb 1 18:37:06 2024 UTC (10 months, 1 week ago) by rillig
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +5 -5 lines
lint: use standard buffer for storing string values

No functional change.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Jan 29 21:30:24 2024 UTC (10 months, 2 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3 lines
lint: do not remember content of wide string literals

The plain char literals are needed for checking printf/scanf format
strings; lint has no similar check for wide strings. These format
strings are checked by modern compilers, making this check less
relevant.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Jan 29 21:04:21 2024 UTC (10 months, 2 weeks ago) by rillig
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +26 -29 lines
lint: check getopt call more strictly

Previously, '(c = getopt(...)) != -2' would match as well.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Dec 3 13:12:40 2023 UTC (12 months, 1 week ago) by rillig
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +5 -5 lines
lint: re-wrap comments

No functional change.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri May 20 21:18:55 2022 UTC (2 years, 6 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.15: preferred, colored
Changes since revision 1.15: +3 -3 lines
lint: use __RCSID in lint mode as well

Since 1995-10-02, lint supports __asm statements and __asm modifiers.

No binary change.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Feb 27 18:29:14 2022 UTC (2 years, 9 months ago) by rillig
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -5 lines
lint: merge duplicate code for handling plain and wide strings

No functional change.  As before, the string literals "1" "2" "3" are
not concatenated from left to right, instead concatenation starts with
"23" and then proceeds to "123".

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Nov 1 19:48:51 2021 UTC (3 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +5 -3 lines
lint: enter full C90 compatibility mode

The C99 comment in tree.c:3468 has been there since 2017-03-06, without
anyone complaining that their compiler would not handle it.

Strangely, running GCC 10.3.0 in '-std=c90' mode does not complain about
declarations after statements, '-Wdeclaration-after-statement' is needed
separately.

No functional change.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Nov 1 19:10:07 2021 UTC (3 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +9 -5 lines
lint: move all declarations above statements

All code that is used by src/tools is supposed to be compatible with C90.

No functional change.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Oct 9 14:22:42 2021 UTC (3 years, 2 months ago) by rillig
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +6 -3 lines
lint: warn if a getopt switch tries to handle unreachable ':'

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Aug 22 22:15:07 2021 UTC (3 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -6 lines
lint: fix wrong warning about '?' in getopt

Revision 1.9.4.1: download - view: text, markup, annotated - select for diffs
Sun Jun 6 20:30:55 2021 UTC (3 years, 6 months ago) by cjep
Branches: cjep_sun2x
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +5 -5 lines
sync with head

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Jun 4 21:12:10 2021 UTC (3 years, 6 months ago) by rillig
Branches: MAIN
CVS tags: cjep_sun2x-base1
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +5 -5 lines
lint: fix function name in check for getopt

No functional change.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Apr 18 17:36:18 2021 UTC (3 years, 7 months ago) by rillig
Branches: MAIN
CVS tags: cjep_sun2x-base, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: cjep_sun2x
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3 lines
lint: pass pos_t via const pointer

Thanks for the suggestion, christos@.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Apr 18 08:53:35 2021 UTC (3 years, 7 months ago) by rillig
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -6 lines
lint: migrate the getopt check to warning_at

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Mar 22 19:25:08 2021 UTC (3 years, 8 months ago) by rillig
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3 lines
lint: reduce visibility of global variable for getopt check

No functional change.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Feb 20 10:12:52 2021 UTC (3 years, 9 months ago) by rillig
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +19 -26 lines
lint: reduce duplicate code in check for getopt

This also changes the conditions to their positive form, which is easier
to read.

No functional change.  The resulting binary would have been the same as
before, were it not for the changed line numbers in the lint_assert
calls further down in the code.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Feb 20 10:01:27 2021 UTC (3 years, 9 months ago) by rillig
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +8 -12 lines
lint: clean up check for getopt

The original options string is not needed during the check.  Having only
the unhandled options suffices.

No functional change.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Feb 20 09:57:02 2021 UTC (3 years, 9 months ago) by rillig
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +28 -7 lines
lint: fix crash from ckgetopt.c 1.2 and document the data structures

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Feb 20 01:18:02 2021 UTC (3 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +6 -3 lines
Prevent crashing when options are NULL in libc while linting
    src/lib/libc/posix1e/acl_from_text.c

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Feb 19 14:44:29 2021 UTC (3 years, 9 months ago) by rillig
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +6 -2 lines
lint: fix build in tools mode

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Feb 19 12:28:56 2021 UTC (3 years, 9 months ago) by rillig
Branches: MAIN
lint: warn about mismatch in getopt handling

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>