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

2021-09-12 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Sep 12 10:06:03 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: emit1.c tree.c Log Message: lint: un-abbreviate rvused and rvdisc No functional change. To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/usr

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

2021-09-05 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Sep 5 16:36:56 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: Makefile Log Message: lint: suppress remaining lint warnings in generated scan.c Warning 162 about 'unsigned <= 0' feels too ambitious, it may be restricted to

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

2021-09-05 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Sep 5 16:36:56 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: Makefile Log Message: lint: suppress remaining lint warnings in generated scan.c Warning 162 about 'unsigned <= 0' feels too ambitious, it may be restricted to

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

2021-09-05 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Sep 5 16:03:55 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c lex.c tree.c Log Message: lint: fix lint warnings To generate a diff of this commit: cvs rdiff -u -r1.233 -r1.234 src/usr.bin/xlint/lint1/decl.c cvs rd

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

2021-09-05 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Sep 5 16:03:55 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c lex.c tree.c Log Message: lint: fix lint warnings To generate a diff of this commit: cvs rdiff -u -r1.233 -r1.234 src/usr.bin/xlint/lint1/decl.c cvs rd

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

2021-09-05 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Sep 5 13:46:31 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: Makefile makeman Log Message: lint: generate date of lint.7 from err.c To generate a diff of this commit: cvs rdiff -u -r1.84 -r1.85 src/usr.bin/xlint/lint1/M

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

2021-09-05 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Sep 5 13:46:31 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: Makefile makeman Log Message: lint: generate date of lint.7 from err.c To generate a diff of this commit: cvs rdiff -u -r1.84 -r1.85 src/usr.bin/xlint/lint1/M

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

2021-09-05 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Sep 5 13:19:39 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: err.c makeman Log Message: lint.7: document removed messages Having just an empty string as the message was confusing. To generate a diff of this commit: cvs

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

2021-09-05 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Sep 5 13:19:39 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: err.c makeman Log Message: lint.7: document removed messages Having just an empty string as the message was confusing. To generate a diff of this commit: cvs

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 14:58:42 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: emit1.c Log Message: lint: clean up outfstrg, which writes format strings Most characters don't need outqchar, a simple outchar is often enough. Since '\0' is

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 14:58:42 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: emit1.c Log Message: lint: clean up outfstrg, which writes format strings Most characters don't need outqchar, a simple outchar is often enough. Since '\0' is

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 13:27:59 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: use unsigned integers for size calculations No change for type definitions that are smaller than 128 MB. For larger types, integer o

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 13:27:59 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: use unsigned integers for size calculations No change for type definitions that are smaller than 128 MB. For larger types, integer o

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 12:37:46 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c func.c Log Message: lint: remove redundant and duplicate code To generate a diff of this commit: cvs rdiff -u -r1.230 -r1.231 src/usr.bin/xlint/lint1/d

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 12:37:46 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c func.c Log Message: lint: remove redundant and duplicate code To generate a diff of this commit: cvs rdiff -u -r1.230 -r1.231 src/usr.bin/xlint/lint1/d

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 12:30:46 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y check-msgs.lua decl.c func.c init.c tree.c Log Message: lint: spell out abbreviations in comments No functional change. To generate a dif

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 12:30:46 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y check-msgs.lua decl.c func.c init.c tree.c Log Message: lint: spell out abbreviations in comments No functional change. To generate a dif

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 12:05:54 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: split declare_local into smaller functions To generate a diff of this commit: cvs rdiff -u -r1.228 -r1.229 src/usr.bin/xlint/lint1/d

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 12:05:54 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: split declare_local into smaller functions To generate a diff of this commit: cvs rdiff -u -r1.228 -r1.229 src/usr.bin/xlint/lint1/d

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 10:09:19 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: sort operators in typeok_op according to ops.def Well, except for INIT, FARG, RETURN. These are listed at the very bottom of the ope

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 10:09:19 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: sort operators in typeok_op according to ops.def Well, except for INIT, FARG, RETURN. These are listed at the very bottom of the ope

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 09:45:27 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: extract typeok_point and typeok_arrow from typeok_op No functional change. To generate a diff of this commit: cvs rdiff -u -r1.374

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 09:45:27 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: extract typeok_point and typeok_arrow from typeok_op No functional change. To generate a diff of this commit: cvs rdiff -u -r1.374

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 09:26:22 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: clean up switch statement in typeok_op In the old times where typeok_op was inlined into typeok, it was necessary to write the compli

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 09:26:22 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: clean up switch statement in typeok_op In the old times where typeok_op was inlined into typeok, it was necessary to write the compli

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 09:18:25 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: make typeok_quest simpler No functional change. To generate a diff of this commit: cvs rdiff -u -r1.372 -r1.373 src/usr.bin/xlint/l

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

2021-09-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 4 09:18:25 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: make typeok_quest simpler No functional change. To generate a diff of this commit: cvs rdiff -u -r1.372 -r1.373 src/usr.bin/xlint/l

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

2021-09-03 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Sep 3 22:27:32 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: extract build_name_call from build_name This reduces the indentation, providing enough space to write out the full diagnostic in the

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

2021-09-03 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Sep 3 22:27:32 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: extract build_name_call from build_name This reduces the indentation, providing enough space to write out the full diagnostic in the

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

2021-09-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Sep 2 20:10:17 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: split check_expr_misc into separate functions No functional change. To generate a diff of this commit: cvs rdiff -u -r1.369 -r1.370

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

2021-09-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Sep 2 20:10:17 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: split check_expr_misc into separate functions No functional change. To generate a diff of this commit: cvs rdiff -u -r1.369 -r1.370

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

2021-09-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Sep 2 19:19:18 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: split check_assign_types_compatible into separate functions No functional change. To generate a diff of this commit: cvs rdiff -u -

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

2021-09-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Sep 2 19:19:18 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: split check_assign_types_compatible into separate functions No functional change. To generate a diff of this commit: cvs rdiff -u -

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

2021-09-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Sep 2 16:31:01 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: move a condition into should_warn_about_prototype_conversion No functional change. To generate a diff of this commit: cvs rdiff -u

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

2021-09-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Sep 2 16:31:01 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: move a condition into should_warn_about_prototype_conversion No functional change. To generate a diff of this commit: cvs rdiff -u

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

2021-09-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Sep 2 16:16:49 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: clean up should_warn_about_prototype_conversion To generate a diff of this commit: cvs rdiff -u -r1.365 -r1.366 src/usr.bin/xlint/li

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

2021-09-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Sep 2 16:16:49 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: clean up should_warn_about_prototype_conversion To generate a diff of this commit: cvs rdiff -u -r1.365 -r1.366 src/usr.bin/xlint/li

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

2021-09-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Sep 2 07:04:41 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: emit1.c Log Message: lint: fix typo in assertion To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 src/usr.bin/xlint/lint1/emit1.c Please note th

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

2021-09-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Sep 2 07:04:41 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: emit1.c Log Message: lint: fix typo in assertion To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 src/usr.bin/xlint/lint1/emit1.c Please note th

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

2021-08-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Sep 1 06:48:24 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: remove array creation from expr_derive_type It is only used for creating string types. The creation of other array types happens in

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

2021-08-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Sep 1 06:48:24 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: remove array creation from expr_derive_type It is only used for creating string types. The creation of other array types happens in

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

2021-08-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 31 23:10:53 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: emit1.c Log Message: lint: reduce verbose switch statement to table lookup No functional change. To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.5

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

2021-08-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 31 23:10:53 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: emit1.c Log Message: lint: reduce verbose switch statement to table lookup No functional change. To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.5

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

2021-08-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 31 19:17:46 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: extract condition for message 259 into separate function No functional change. To generate a diff of this commit: cvs rdiff -u -r1.

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

2021-08-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 31 19:17:46 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: extract condition for message 259 into separate function No functional change. To generate a diff of this commit: cvs rdiff -u -r1.

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

2021-08-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 31 17:51:30 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: err.c externs1.h lint1.h Log Message: lint: remove unused function for generic messages The function message_at is still used, for information about previous o

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

2021-08-31 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Aug 31 17:51:30 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: err.c externs1.h lint1.h Log Message: lint: remove unused function for generic messages The function message_at is still used, for information about previous o

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

2021-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 29 16:17:08 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: treat _mm_ as builtin function name prefix for all compilers This prefix is not specific to GCC, it is also known by the Intel C Comp

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

2021-08-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 29 16:17:08 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: treat _mm_ as builtin function name prefix for all compilers This prefix is not specific to GCC, it is also known by the Intel C Comp

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 21:14:32 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: remove unreachable code for parsing integer constants The largest possible type of an integer constant is 'unsigned long long'. Any l

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 21:14:32 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: remove unreachable code for parsing integer constants The largest possible type of an integer constant is 'unsigned long long'. Any l

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 18:58:24 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: replace obsolete strtouq with equivalent strtoull To generate a diff of this commit: cvs rdiff -u -r1.74 -r1.75 src/usr.bin/xlint/lin

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 18:58:24 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: replace obsolete strtouq with equivalent strtoull To generate a diff of this commit: cvs rdiff -u -r1.74 -r1.75 src/usr.bin/xlint/lin

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 16:51:57 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: remove double inversion from is_out_of_char_range No functional change. To generate a diff of this commit: cvs rdiff -u -r1.359 -r1

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 16:51:57 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: remove double inversion from is_out_of_char_range No functional change. To generate a diff of this commit: cvs rdiff -u -r1.359 -r1

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 16:43:50 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: clean up check_integer_comparison No functional change. To generate a diff of this commit: cvs rdiff -u -r1.358 -r1.359 src/usr.bin

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 16:43:50 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: clean up check_integer_comparison No functional change. To generate a diff of this commit: cvs rdiff -u -r1.358 -r1.359 src/usr.bin

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 15:36:54 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: merge duplicate code in convert_constant_floating To generate a diff of this commit: cvs rdiff -u -r1.356 -r1.357 src/usr.bin/xlint/

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 15:36:54 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: merge duplicate code in convert_constant_floating To generate a diff of this commit: cvs rdiff -u -r1.356 -r1.357 src/usr.bin/xlint/

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 15:01:43 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: fix lexing of character constants The final value of the character constant must be determined by the target platform, not the host pl

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 15:01:43 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: fix lexing of character constants The final value of the character constant must be determined by the target platform, not the host pl

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 13:11:10 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: externs1.h lex.c tree.c Log Message: lint: use 'unsigned int' for bit-size of types in convert_integer There was no need to have two separate magic values (0 a

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 13:11:10 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: externs1.h lex.c tree.c Log Message: lint: use 'unsigned int' for bit-size of types in convert_integer There was no need to have two separate magic values (0 a

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 12:41:03 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c externs1.h lint1.h Log Message: lint: fix a few lint warnings about type conversions A simple 'unsigned int' is more than enough for representing the si

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 12:41:03 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c externs1.h lint1.h Log Message: lint: fix a few lint warnings about type conversions A simple 'unsigned int' is more than enough for representing the si

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 12:29:40 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: remove redundant type casts from convert_constant_floating Since tree.c 1.70 from 2012-03-27, lint has been using properly typed cons

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 12:29:40 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: remove redundant type casts from convert_constant_floating Since tree.c 1.70 from 2012-03-27, lint has been using properly typed cons

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 12:06:09 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: clean up alignment_in_bits The given type can never be NULL, and an array can never have NULL as subtype. To generate a diff of thi

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

2021-08-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 28 12:06:09 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: clean up alignment_in_bits The given type can never be NULL, and an array can never have NULL as subtype. To generate a diff of thi

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

2021-08-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Aug 25 22:48:40 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y lex.c Log Message: lint: add __attribute__ regparm Seen in libexec/ld.elf_so/rtld.h. To generate a diff of this commit: cvs rdiff -u -r1.357 -r1.358

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

2021-08-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Aug 25 22:48:40 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y lex.c Log Message: lint: add __attribute__ regparm Seen in libexec/ld.elf_so/rtld.h. To generate a diff of this commit: cvs rdiff -u -r1.357 -r1.358

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

2021-08-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Aug 25 22:00:27 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: rename local variable in plength The assertion in build_plus_minus is safe since that function is only called if the types are compat

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

2021-08-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Aug 25 22:00:27 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: rename local variable in plength The assertion in build_plus_minus is safe since that function is only called if the types are compat

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

2021-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Aug 23 17:03:23 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lint1.h tree.c Log Message: lint: expand macro in string concatenation No functional change. To generate a diff of this commit: cvs rdiff -u -r1.124 -r1.125

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

2021-08-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Aug 23 17:03:23 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lint1.h tree.c Log Message: lint: expand macro in string concatenation No functional change. To generate a diff of this commit: cvs rdiff -u -r1.124 -r1.125

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

2021-08-22 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Aug 23 06:32:31 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: make overflow check for binary '+' simpler No functional change. To generate a diff of this commit: cvs rdiff -u -r1.348 -r1.349 sr

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

2021-08-22 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Aug 23 06:32:31 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: make overflow check for binary '+' simpler No functional change. To generate a diff of this commit: cvs rdiff -u -r1.348 -r1.349 sr

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

2021-08-22 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Aug 23 06:26:37 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: externs1.h lex.c lint1.h Log Message: lint: inline msb This reduces the binary size on x86_64 by about 500 bytes. No functional change. To generate a diff o

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

2021-08-22 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Aug 23 06:26:37 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: externs1.h lex.c lint1.h Log Message: lint: inline msb This reduces the binary size on x86_64 by about 500 bytes. No functional change. To generate a diff o

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

2021-08-22 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Aug 23 06:21:59 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: emit1.c externs1.h lex.c tree.c Log Message: lint: remove unnecessary width parameter for msb No functional change. To generate a diff of this commit: cvs rd

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

2021-08-22 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Aug 23 06:21:59 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: emit1.c externs1.h lex.c tree.c Log Message: lint: remove unnecessary width parameter for msb No functional change. To generate a diff of this commit: cvs rd

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

2021-08-22 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 22 21:27:15 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: debug.c lint1.h tree.c Log Message: lint: merge duplicate code for binary operator No functional change. To generate a diff of this commit: cvs rdiff -u -r1.

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

2021-08-22 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Aug 22 21:27:15 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: debug.c lint1.h tree.c Log Message: lint: merge duplicate code for binary operator No functional change. To generate a diff of this commit: cvs rdiff -u -r1.

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

2021-08-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 21 11:27:27 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: extract check_prototype_conversion_integer No functional change. To generate a diff of this commit: cvs rdiff -u -r1.343 -r1.344 sr

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

2021-08-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 21 11:27:27 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: extract check_prototype_conversion_integer No functional change. To generate a diff of this commit: cvs rdiff -u -r1.343 -r1.344 sr

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

2021-08-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 21 08:39:01 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: rename local variable '1' in fold_float It looked too similar to the number 1. To generate a diff of this commit: cvs rdiff -u -r1.

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

2021-08-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 21 08:39:01 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: rename local variable '1' in fold_float It looked too similar to the number 1. To generate a diff of this commit: cvs rdiff -u -r1.

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

2021-08-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 21 08:29:59 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: fix spacing in tree.c To generate a diff of this commit: cvs rdiff -u -r1.341 -r1.342 src/usr.bin/xlint/lint1/tree.c Please note th

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

2021-08-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 21 08:29:59 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: fix spacing in tree.c To generate a diff of this commit: cvs rdiff -u -r1.341 -r1.342 src/usr.bin/xlint/lint1/tree.c Please note th

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

2021-08-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 21 07:03:30 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: add missing newlines to grammar debug output To generate a diff of this commit: cvs rdiff -u -r1.356 -r1.357 src/usr.bin/xlint/lint

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

2021-08-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 21 07:03:30 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: add missing newlines to grammar debug output To generate a diff of this commit: cvs rdiff -u -r1.356 -r1.357 src/usr.bin/xlint/lint

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

2021-08-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Aug 19 21:13:58 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: emit1.c externs1.h lex.c tree.c Log Message: lint: change return type of 'msb' from int to bool No functional change. To generate a diff of this commit: cvs

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

2021-08-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Aug 19 21:13:58 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: emit1.c externs1.h lex.c tree.c Log Message: lint: change return type of 'msb' from int to bool No functional change. To generate a diff of this commit: cvs

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

2021-08-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Aug 19 20:53:37 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: clean up formatting of 'fold' To generate a diff of this commit: cvs rdiff -u -r1.338 -r1.339 src/usr.bin/xlint/lint1/tree.c Please

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

2021-08-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Aug 19 20:53:37 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: clean up formatting of 'fold' To generate a diff of this commit: cvs rdiff -u -r1.338 -r1.339 src/usr.bin/xlint/lint1/tree.c Please

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

2021-08-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Aug 19 20:08:25 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: clean up lex_integer_constant When lexing an integer constant, it does not make sense to check for 'struct', 'void' or other types. F

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

2021-08-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Aug 19 20:08:25 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: clean up lex_integer_constant When lexing an integer constant, it does not make sense to check for 'struct', 'void' or other types. F

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

2021-08-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Aug 19 18:39:34 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: op.h Log Message: lint: un-abbreviate parameter names of macro To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/usr.bin/xlint/lint1/op.h Ple

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

2021-08-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Aug 19 18:39:34 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: op.h Log Message: lint: un-abbreviate parameter names of macro To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/usr.bin/xlint/lint1/op.h Ple

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

2021-08-19 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Aug 19 08:59:22 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y lex.c Log Message: Add returns_nonnull attribute To generate a diff of this commit: cvs rdiff -u -r1.355 -r1.356 src/usr.bin/xlint/lint1/cgram.y cvs

<    3   4   5   6   7   8   9   >