CVS commit: src/usr.bin/xlint/lint2

2023-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 10 14:13:19 UTC 2023 Modified Files: src/usr.bin/xlint/lint2: chk.c msg.c read.c Log Message: lint: push memory management one layer down Just as with type_name in lint1, it is more convenient if the application code

CVS commit: src/usr.bin/xlint/lint2

2023-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 10 14:13:19 UTC 2023 Modified Files: src/usr.bin/xlint/lint2: chk.c msg.c read.c Log Message: lint: push memory management one layer down Just as with type_name in lint1, it is more convenient if the application code

CVS commit: src/usr.bin/xlint/lint2

2023-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 10 12:40:22 UTC 2023 Modified Files: src/usr.bin/xlint/lint2: chk.c externs2.h hash.c lint2.h main2.c msg.c read.c Log Message: lint: clean up lint2 To generate a diff of this commit: cvs rdiff -u -r1.57

CVS commit: src/usr.bin/xlint/lint2

2023-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jul 10 12:40:22 UTC 2023 Modified Files: src/usr.bin/xlint/lint2: chk.c externs2.h hash.c lint2.h main2.c msg.c read.c Log Message: lint: clean up lint2 To generate a diff of this commit: cvs rdiff -u -r1.57

CVS commit: src/usr.bin/xlint/lint2

2023-02-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Feb 21 19:32:55 UTC 2023 Modified Files: src/usr.bin/xlint/lint2: main2.c Log Message: lint: return instead of calling exit from main No functional change. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27

CVS commit: src/usr.bin/xlint/lint2

2023-02-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Feb 21 19:32:55 UTC 2023 Modified Files: src/usr.bin/xlint/lint2: main2.c Log Message: lint: return instead of calling exit from main No functional change. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27

CVS commit: src/usr.bin/xlint/lint2

2023-01-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Jan 13 19:50:00 UTC 2023 Modified Files: src/usr.bin/xlint/lint2: Makefile externs2.h read.c Removed Files: src/usr.bin/xlint/lint2: mem2.c Log Message: lint: move xalloc to the only file where it is used No

CVS commit: src/usr.bin/xlint/lint2

2023-01-13 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Jan 13 19:50:00 UTC 2023 Modified Files: src/usr.bin/xlint/lint2: Makefile externs2.h read.c Removed Files: src/usr.bin/xlint/lint2: mem2.c Log Message: lint: move xalloc to the only file where it is used No

CVS commit: src/usr.bin/xlint/lint2

2022-04-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Apr 21 21:09:13 UTC 2022 Modified Files: src/usr.bin/xlint/lint2: chk.c Log Message: lint: expand the last remaining __arraycount For consistency with the other expressions for an array length, which already use the expanded

CVS commit: src/usr.bin/xlint/lint2

2022-04-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Apr 21 21:09:13 UTC 2022 Modified Files: src/usr.bin/xlint/lint2: chk.c Log Message: lint: expand the last remaining __arraycount For consistency with the other expressions for an array length, which already use the expanded

CVS commit: src/usr.bin/xlint/lint2

2021-12-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Dec 19 10:42:36 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: remove redundant braces No binary change. To generate a diff of this commit: cvs rdiff -u -r1.74 -r1.75

CVS commit: src/usr.bin/xlint/lint2

2021-12-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Dec 19 10:42:36 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: remove redundant braces No binary change. To generate a diff of this commit: cvs rdiff -u -r1.74 -r1.75

CVS commit: src/usr.bin/xlint/lint2

2021-12-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Dec 19 10:29:06 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: reduce pointer usage when reading .ln lines No binary change. To generate a diff of this commit: cvs rdiff -u -r1.73 -r1.74

CVS commit: src/usr.bin/xlint/lint2

2021-12-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Dec 19 10:29:06 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: reduce pointer usage when reading .ln lines No binary change. To generate a diff of this commit: cvs rdiff -u -r1.73 -r1.74

CVS commit: src/usr.bin/xlint/lint2

2021-12-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Dec 19 10:19:59 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: remove unused parameter in read_ln_line To generate a diff of this commit: cvs rdiff -u -r1.72 -r1.73

CVS commit: src/usr.bin/xlint/lint2

2021-12-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Dec 19 10:19:59 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: remove unused parameter in read_ln_line To generate a diff of this commit: cvs rdiff -u -r1.72 -r1.73

CVS commit: src/usr.bin/xlint/lint2

2021-11-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 28 08:21:50 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: move fgetln peculiarities out of read_ln_line This allows the function parameter to be a pointer to const. No functional change.

CVS commit: src/usr.bin/xlint/lint2

2021-11-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Nov 28 08:21:50 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: move fgetln peculiarities out of read_ln_line This allows the function parameter to be a pointer to const. No functional change.

CVS commit: src/usr.bin/xlint/lint2

2021-11-16 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Nov 16 22:12:44 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: chk.c emit2.c read.c Log Message: lint: clean up lint2 No functional change. To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46

CVS commit: src/usr.bin/xlint/lint2

2021-11-16 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Nov 16 22:12:44 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: chk.c emit2.c read.c Log Message: lint: clean up lint2 No functional change. To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46

CVS commit: src/usr.bin/xlint/lint2

2021-11-16 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Nov 16 22:03:12 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: externs2.h hash.c main2.c read.c Log Message: lint: clean up initialization of lint2 symbol table No functional change. To generate a diff of this commit:

CVS commit: src/usr.bin/xlint/lint2

2021-11-16 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Nov 16 22:03:12 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: externs2.h hash.c main2.c read.c Log Message: lint: clean up initialization of lint2 symbol table No functional change. To generate a diff of this commit:

CVS commit: src/usr.bin/xlint/lint2

2021-09-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Sep 10 21:05:08 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: check-msgs.lua Log Message: tests/lint: align message checker for lint2 to the one from lint1 No functional change. To generate a diff of this commit: cvs

CVS commit: src/usr.bin/xlint/lint2

2021-09-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Sep 10 21:05:08 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: check-msgs.lua Log Message: tests/lint: align message checker for lint2 to the one from lint1 No functional change. To generate a diff of this commit: cvs

CVS commit: src/usr.bin/xlint/lint2

2021-09-05 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Sep 5 19:58:53 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: remove source code references from internal error message The additional strings that are provided with the error message are

CVS commit: src/usr.bin/xlint/lint2

2021-09-05 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Sep 5 19:58:53 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: remove source code references from internal error message The additional strings that are provided with the error message are

CVS commit: src/usr.bin/xlint/lint2

2021-09-05 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Sep 5 19:44:57 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: extract function for reading a single line from a .ln file No functional change. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/xlint/lint2

2021-09-05 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Sep 5 19:44:57 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: extract function for reading a single line from a .ln file No functional change. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/xlint/lint2

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 19:16:38 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: reduce complexity of reading a function call No functional change. To generate a diff of this commit: cvs rdiff -u -r1.63 -r1.64

CVS commit: src/usr.bin/xlint/lint2

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 19:16:38 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: reduce complexity of reading a function call No functional change. To generate a diff of this commit: cvs rdiff -u -r1.63 -r1.64

CVS commit: src/usr.bin/xlint/lint2

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 18:49:33 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: emit2.c Log Message: lint: condense code for writing to a lint library Same as in lint1. No functional change. To generate a diff of this commit: cvs rdiff

CVS commit: src/usr.bin/xlint/lint2

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 18:49:33 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: emit2.c Log Message: lint: condense code for writing to a lint library Same as in lint1. No functional change. To generate a diff of this commit: cvs rdiff

CVS commit: src/usr.bin/xlint/lint2

2021-08-30 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Aug 30 21:35:23 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: extract parse_function_attribute from decldef No functional change. To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63

CVS commit: src/usr.bin/xlint/lint2

2021-08-30 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Aug 30 21:35:23 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: extract parse_function_attribute from decldef No functional change. To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63

CVS commit: src/usr.bin/xlint/lint2

2021-08-30 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Aug 30 20:20:20 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: remove redundant call to strchr in decldef This time, the branches for varargs, printflike and scanflike in the big switch statement

CVS commit: src/usr.bin/xlint/lint2

2021-08-30 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Aug 30 20:20:20 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: remove redundant call to strchr in decldef This time, the branches for varargs, printflike and scanflike in the big switch statement

CVS commit: src/usr.bin/xlint/lint2

2021-08-30 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Aug 30 18:03:52 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: Move the character one back so that we don't increment twice To generate a diff of this commit: cvs rdiff -u -r1.59 -r1.60

CVS commit: src/usr.bin/xlint/lint2

2021-08-30 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Aug 30 18:03:52 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: Move the character one back so that we don't increment twice To generate a diff of this commit: cvs rdiff -u -r1.59 -r1.60

CVS commit: src/usr.bin/xlint/lint2

2021-08-30 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Aug 30 14:57:04 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: Skip the current character before parsing the number of arguments. To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59

CVS commit: src/usr.bin/xlint/lint2

2021-08-30 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Aug 30 14:57:04 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: Skip the current character before parsing the number of arguments. To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59

CVS commit: src/usr.bin/xlint/lint2

2021-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 29 10:18:17 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: remove redundant call to strchr To generate a diff of this commit: cvs rdiff -u -r1.57 -r1.58 src/usr.bin/xlint/lint2/read.c

CVS commit: src/usr.bin/xlint/lint2

2021-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 29 10:18:17 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: remove redundant call to strchr To generate a diff of this commit: cvs rdiff -u -r1.57 -r1.58 src/usr.bin/xlint/lint2/read.c

CVS commit: src/usr.bin/xlint/lint2

2021-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 29 10:13:02 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: chk.c emit2.c lint2.h read.c Log Message: lint: un-abbreviate members of sym_t No functional change. To generate a diff of this commit: cvs rdiff -u -r1.44

CVS commit: src/usr.bin/xlint/lint2

2021-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 29 10:13:02 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: chk.c emit2.c lint2.h read.c Log Message: lint: un-abbreviate members of sym_t No functional change. To generate a diff of this commit: cvs rdiff -u -r1.44

CVS commit: src/usr.bin/xlint/lint2

2021-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 29 09:48:02 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: lint2.h Log Message: lint: in debug mode, use proper type for sym_t.s_def To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18

CVS commit: src/usr.bin/xlint/lint2

2021-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 29 09:48:02 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: lint2.h Log Message: lint: in debug mode, use proper type for sym_t.s_def To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18

CVS commit: src/usr.bin/xlint/lint2

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 19:00:55 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: hash.c Log Message: lint: fix memory leak in symtab_forall_sorted (since today) To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20

CVS commit: src/usr.bin/xlint/lint2

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 19:00:55 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: hash.c Log Message: lint: fix memory leak in symtab_forall_sorted (since today) To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20

CVS commit: src/usr.bin/xlint/lint2

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 17:11:19 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: emit2.c externs2.h hash.c main2.c Log Message: lint: remove unused parameter from forall No functional change. To generate a diff of this commit: cvs rdiff

CVS commit: src/usr.bin/xlint/lint2

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 17:11:19 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: emit2.c externs2.h hash.c main2.c Log Message: lint: remove unused parameter from forall No functional change. To generate a diff of this commit: cvs rdiff

CVS commit: src/usr.bin/xlint/lint2

2021-08-22 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 22 13:21:48 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: clean up error handling in lint2 These are edge cases that don't happen in practice, therefore reduce the size of the binary. To

CVS commit: src/usr.bin/xlint/lint2

2021-08-22 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 22 13:21:48 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: clean up error handling in lint2 These are edge cases that don't happen in practice, therefore reduce the size of the binary. To

CVS commit: src/usr.bin/xlint/lint2

2021-08-22 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 22 12:32:13 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: simplify reading of type qualifiers in lint2 The only producer of .ln files is lint1, which always writes the type qualifiers in the

CVS commit: src/usr.bin/xlint/lint2

2021-08-22 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 22 12:32:13 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: simplify reading of type qualifiers in lint2 The only producer of .ln files is lint1, which always writes the type qualifiers in the

CVS commit: src/usr.bin/xlint/lint2

2021-08-22 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 22 12:25:16 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: clean up switch statements in gettlen Since the switch statements are only about tagged and derived types, there is no need to list

CVS commit: src/usr.bin/xlint/lint2

2021-08-22 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 22 12:25:16 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: clean up switch statements in gettlen Since the switch statements are only about tagged and derived types, there is no need to list

CVS commit: src/usr.bin/xlint/lint2

2021-08-22 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 22 12:15:38 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: lint2.h read.c Log Message: lint: convert TP from macro to inline function No functional change. To generate a diff of this commit: cvs rdiff -u -r1.14

CVS commit: src/usr.bin/xlint/lint2

2021-08-22 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 22 12:15:38 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: lint2.h read.c Log Message: lint: convert TP from macro to inline function No functional change. To generate a diff of this commit: cvs rdiff -u -r1.14

CVS commit: src/usr.bin/xlint/lint2

2021-08-22 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 22 11:57:23 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: extract parse_tspec from inptype Add error handling for unknown type character, which led to read of uninitialized memory before.

CVS commit: src/usr.bin/xlint/lint2

2021-08-22 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 22 11:57:23 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: read.c Log Message: lint: extract parse_tspec from inptype Add error handling for unknown type character, which led to read of uninitialized memory before.

CVS commit: src/usr.bin/xlint/lint2

2021-08-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 22 04:43:44 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: chk.c externs2.h main2.c Log Message: lint: constify lint2 checking functions No functional change. To generate a diff of this commit: cvs rdiff -u -r1.43

CVS commit: src/usr.bin/xlint/lint2

2021-08-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 22 04:43:44 UTC 2021 Modified Files: src/usr.bin/xlint/lint2: chk.c externs2.h main2.c Log Message: lint: constify lint2 checking functions No functional change. To generate a diff of this commit: cvs rdiff -u -r1.43

CVS commit: src/usr.bin/xlint/lint2

2010-01-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Jan 14 16:58:27 UTC 2010 Modified Files: src/usr.bin/xlint/lint2: chk.c main2.c Log Message: Add a list of functions where we usually don't care about their return code. Can be bypassed by -hh To generate a diff of this