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.16 / (download) - annotate - [select for diffs], Fri May 20 21:18:55 2022 UTC (8 months, 2 weeks ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
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 (11 months, 1 week 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 (15 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 (15 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 (15 months, 4 weeks 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 (17 months, 2 weeks 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 (20 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 (20 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 (21 months, 2 weeks 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 (21 months, 2 weeks 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 (22 months, 2 weeks 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 (23 months, 2 weeks 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 (23 months, 2 weeks 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 (23 months, 2 weeks 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 (23 months, 2 weeks 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 (23 months, 2 weeks 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 (23 months, 2 weeks 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>