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


Default branch: MAIN


Revision 1.23 / (download) - annotate - [select for diffs], Mon Feb 5 23:11:22 2024 UTC (2 weeks, 4 days ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.22: +14 -11 lines
Diff to previous 1.22 (colored)

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) - annotate - [select for diffs], Sat Feb 3 19:25:16 2024 UTC (2 weeks, 6 days ago) by rillig
Branch: MAIN
Changes since 1.21: +8 -3 lines
Diff to previous 1.21 (colored)

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) - annotate - [select for diffs], Sat Feb 3 12:57:12 2024 UTC (2 weeks, 6 days ago) by rillig
Branch: MAIN
Changes since 1.20: +5 -14 lines
Diff to previous 1.20 (colored)

lint: clean up comments, reduce scope of variables

Revision 1.20 / (download) - annotate - [select for diffs], Thu Feb 1 18:37:06 2024 UTC (3 weeks, 1 day ago) by rillig
Branch: MAIN
Changes since 1.19: +5 -5 lines
Diff to previous 1.19 (colored)

lint: use standard buffer for storing string values

No functional change.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Jan 29 21:30:24 2024 UTC (3 weeks, 4 days ago) by rillig
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

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) - annotate - [select for diffs], Mon Jan 29 21:04:21 2024 UTC (3 weeks, 4 days ago) by rillig
Branch: MAIN
Changes since 1.17: +26 -29 lines
Diff to previous 1.17 (colored)

lint: check getopt call more strictly

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

Revision 1.17 / (download) - annotate - [select for diffs], Sun Dec 3 13:12:40 2023 UTC (2 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.16: +5 -5 lines
Diff to previous 1.16 (colored)

lint: re-wrap comments

No functional change.

Revision 1.16 / (download) - annotate - [select for diffs], Fri May 20 21:18:55 2022 UTC (21 months ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

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) - annotate - [select for diffs], Sun Feb 27 18:29:14 2022 UTC (23 months, 3 weeks ago) by rillig
Branch: MAIN
Changes since 1.14: +4 -5 lines
Diff to previous 1.14 (colored)

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) - annotate - [select for diffs], Mon Nov 1 19:48:51 2021 UTC (2 years, 3 months ago) by rillig
Branch: MAIN
Changes since 1.13: +5 -3 lines
Diff to previous 1.13 (colored)

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) - annotate - [select for diffs], Mon Nov 1 19:10:07 2021 UTC (2 years, 3 months ago) by rillig
Branch: MAIN
Changes since 1.12: +9 -5 lines
Diff to previous 1.12 (colored)

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) - annotate - [select for diffs], Sat Oct 9 14:22:42 2021 UTC (2 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.11: +6 -3 lines
Diff to previous 1.11 (colored)

lint: warn if a getopt switch tries to handle unreachable ':'

Revision 1.11 / (download) - annotate - [select for diffs], Sun Aug 22 22:15:07 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN
Changes since 1.10: +3 -6 lines
Diff to previous 1.10 (colored)

lint: fix wrong warning about '?' in getopt

Revision 1.9.4.1 / (download) - annotate - [select for diffs], Sun Jun 6 20:30:55 2021 UTC (2 years, 8 months ago) by cjep
Branch: cjep_sun2x
Changes since 1.9: +5 -5 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

sync with head

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jun 4 21:12:10 2021 UTC (2 years, 8 months ago) by rillig
Branch: MAIN
CVS Tags: cjep_sun2x-base1
Changes since 1.9: +5 -5 lines
Diff to previous 1.9 (colored)

lint: fix function name in check for getopt

No functional change.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Apr 18 17:36:18 2021 UTC (2 years, 10 months ago) by rillig
Branch: MAIN
CVS Tags: cjep_sun2x-base, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: cjep_sun2x
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

lint: pass pos_t via const pointer

Thanks for the suggestion, christos@.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Apr 18 08:53:35 2021 UTC (2 years, 10 months ago) by rillig
Branch: MAIN
Changes since 1.7: +3 -6 lines
Diff to previous 1.7 (colored)

lint: migrate the getopt check to warning_at

Revision 1.7 / (download) - annotate - [select for diffs], Mon Mar 22 19:25:08 2021 UTC (2 years, 11 months ago) by rillig
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

lint: reduce visibility of global variable for getopt check

No functional change.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Feb 20 10:12:52 2021 UTC (3 years ago) by rillig
Branch: MAIN
Changes since 1.5: +19 -26 lines
Diff to previous 1.5 (colored)

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) - annotate - [select for diffs], Sat Feb 20 10:01:27 2021 UTC (3 years ago) by rillig
Branch: MAIN
Changes since 1.4: +8 -12 lines
Diff to previous 1.4 (colored)

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) - annotate - [select for diffs], Sat Feb 20 09:57:02 2021 UTC (3 years ago) by rillig
Branch: MAIN
Changes since 1.3: +28 -7 lines
Diff to previous 1.3 (colored)

lint: fix crash from ckgetopt.c 1.2 and document the data structures

Revision 1.3 / (download) - annotate - [select for diffs], Sat Feb 20 01:18:02 2021 UTC (3 years ago) by christos
Branch: MAIN
Changes since 1.2: +6 -3 lines
Diff to previous 1.2 (colored)

Prevent crashing when options are NULL in libc while linting
    src/lib/libc/posix1e/acl_from_text.c

Revision 1.2 / (download) - annotate - [select for diffs], Fri Feb 19 14:44:29 2021 UTC (3 years ago) by rillig
Branch: MAIN
Changes since 1.1: +6 -2 lines
Diff to previous 1.1 (colored)

lint: fix build in tools mode

Revision 1.1 / (download) - annotate - [select for diffs], Fri Feb 19 12:28:56 2021 UTC (3 years ago) by rillig
Branch: MAIN

lint: warn about mismatch in getopt handling

This form allows you to request diff's 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.




CVSweb <webmaster@jp.NetBSD.org>