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

2021-04-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Apr 18 10:04:23 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lint1.h Log Message: lint: align the member access macros for tnode_t To generate a diff of this commit: cvs rdiff -u -r1.97 -r1.98 src/usr.bin/xlint/lint1/li

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

2021-04-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Apr 18 10:02:16 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: err.c Log Message: lint: flip parameters in verror_at, vwarning_at, vmessage_at The parameters are in the same order now as in the corresponding macros. To g

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

2021-04-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Apr 18 09:53:03 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c tree.c Log Message: lint: extend documentation about handling initializations To generate a diff of this commit: cvs rdiff -u -r1.197 -r1.198 src/usr.b

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

2021-04-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Apr 18 09:50:00 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: remove redundant test for tflag in initialization handling To generate a diff of this commit: cvs rdiff -u -r1.196 -r1.197 src/usr.b

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

2021-04-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Apr 18 09:39:53 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: func.c Log Message: lint: migrate global_clean_up_decl to warning_at To generate a diff of this commit: cvs rdiff -u -r1.103 -r1.104 src/usr.bin/xlint/lint1/f

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

2021-04-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Apr 18 09:37:18 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: preserve curr_pos when checking whether a symbol is used At the end of a function definition (funcend), curr_pos was not restored, pr

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

2021-04-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Apr 18 09:20:43 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: do not modify curr_pos in check_global_symbols No functional change. To generate a diff of this commit: cvs rdiff -u -r1.175 -r1.17

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

2021-04-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Apr 18 09:15:16 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: in check_global_variable_size, restore curr_pos This affects only calls to lint_assert, all other code stays functionally the same.

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

2021-04-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Apr 18 09:07:36 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: migrate check_tag_usage to warning_at This one is already a little trickier since it does not restore the original curr_pos. This fu

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

2021-04-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Apr 18 08:57:57 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: migrate print_previous_declaration to message_at To generate a diff of this commit: cvs rdiff -u -r1.172 -r1.173 src/usr.bin/xlint/l

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

2021-04-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Apr 18 08:53:35 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: ckgetopt.c Log Message: lint: migrate the getopt check to warning_at To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/usr.bin/xlint/lint1/ckget

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

2021-04-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Apr 18 08:52:04 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: err.c externs1.h lint1.h Log Message: lint: add error_at, warning_at, message_at Right now there are several places in the code that use the global variable cu

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

2021-04-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Apr 18 08:07:04 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: err.c externs1.h Log Message: lint: do not allow the diagnostics to be modified To generate a diff of this commit: cvs rdiff -u -r1.111 -r1.112 src/usr.bin/xl

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

2021-04-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Apr 18 08:00:13 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c lex.c Log Message: lint: fix storage class of compound literal in initializer A compound literal that occurs at block_level 0 does not have storage clas

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

2021-04-17 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Apr 17 11:01:34 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: Makefile Log Message: lint1: remove redundant dependency This is already handled by "make depend". To generate a diff of this commit: cvs rdiff -u -r1.67 -r1

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

2021-04-14 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Apr 14 22:08:28 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: remove stray semicolon from grammar, make empty rule visible No functional change. To generate a diff of this commit: cvs rdiff -u

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

2021-04-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Apr 14 21:20:21 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: there is also an optional type qualifier list in the array size To generate a diff of this commit: cvs rdiff -u -r1.216 -r1.217 src/usr

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

2021-04-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Apr 14 21:20:02 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: err.c Log Message: gnu enables c11 extensions To generate a diff of this commit: cvs rdiff -u -r1.110 -r1.111 src/usr.bin/xlint/lint1/err.c Please note tha

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

2021-04-14 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Apr 14 18:38:06 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: err.c Log Message: lint: remove redundant condition in update_location To generate a diff of this commit: cvs rdiff -u -r1.108 -r1.109 src/usr.bin/xlint/lint1

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

2021-04-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Apr 14 13:34:08 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y err.c Log Message: support parsing c99's static class for array size expressions. To generate a diff of this commit: cvs rdiff -u -r1.213 -r1.214 sr

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

2021-04-13 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Apr 13 22:22:02 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: Allow type attributes after function pointer parameters To generate a diff of this commit: cvs rdiff -u -r1.212 -r1.213 src/usr.bin/xli

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

2021-04-12 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Apr 12 15:55:26 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y lex.c Log Message: Add attribute fallthrough To generate a diff of this commit: cvs rdiff -u -r1.211 -r1.212 src/usr.bin/xlint/lint1/cgram.y cvs rdi

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

2021-04-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Apr 10 23:51:37 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: Makefile.err-msgs-h Log Message: lint: fix build (missing include directory) To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/usr.bin/xlint/lin

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

2021-04-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Apr 10 18:06:53 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c func.c lint1.h tree.c Log Message: lint: prepare renaming of 'struct type' It's confusing to have the same struct tag in both lint1 and lint2, with most

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

2021-04-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Apr 9 19:52:59 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: clean up the check for pointer conversions No functional change. To generate a diff of this commit: cvs rdiff -u -r1.272 -r1.273 sr

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

2021-04-09 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Apr 9 15:58:43 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: err.c externs1.h lex.c Log Message: lint: clean up handling of preprocessing output lines No functional change. To generate a diff of this commit: cvs rdiff

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

2021-04-06 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Apr 6 22:21:53 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: sync comment with reality after renaming several functions No functional change. To generate a diff of this commit: cvs rdiff -u -r1

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

2021-04-06 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Apr 6 21:35:25 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: reduce indentation of typeok_shift No functional change. To generate a diff of this commit: cvs rdiff -u -r1.269 -r1.270 src/usr.bi

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

2021-04-06 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Apr 6 13:17:04 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: Makefile externs1.h tree.c Added Files: src/usr.bin/xlint/lint1: ckbool.c Log Message: lint: move check for strict bool mode into separate file No func

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

2021-04-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Apr 5 02:17:52 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: ckctype.c Log Message: lint: inline macro in check for functions No functional change. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/usr.b

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

2021-04-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Apr 5 02:07:15 UTC 2021 Added Files: src/usr.bin/xlint/lint1: ckctype.c Log Message: lint: warn about for wrong type cast in argument to ctype.h functions The argument to most of the functions from "shall either be represen

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

2021-04-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Apr 2 22:05:44 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lex.c lint1.h Log Message: lint: reduce memory usage No functional change. To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/usr.bin/xlint/li

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

2021-04-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Apr 2 17:10:52 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: fix typo from previous commit in merge_qualifiers To generate a diff of this commit: cvs rdiff -u -r1.263 -r1.264 src/usr.bin/xlint/

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

2021-04-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Apr 2 17:01:39 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: clean up merge_qualifiers No functional change. To generate a diff of this commit: cvs rdiff -u -r1.262 -r1.263 src/usr.bin/xlint/l

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

2021-04-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Apr 2 16:38:08 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: rename local variable in build_colon The name 'rtp' was confusing since it did not correspond to 'rn'. The 'r' meant 'result', not '

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

2021-04-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Apr 2 16:17:19 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: replace a new modtab with op_name This reduces the types of variables that are passed around. No functional change. To generate a

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

2021-04-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Apr 2 15:06:35 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: func.c tree.c Log Message: lint: rename getopname to op_name There are several functions called 'get' that allocate memory. Remove this possible confusion. N

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

2021-04-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Apr 2 14:50:47 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: reorder struct members to be in comprehension order No functional change. To generate a diff of this commit: cvs rdiff -u -r1.192 -

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

2021-04-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Apr 2 14:32:27 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: rename members of brace_level The terms 'member' and 'subscript' are distinctive enough. No functional change. To generate a diff

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

2021-04-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Apr 2 14:19:33 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: remove unused brace_level.bl_array_of_unknown_size Since init.c 1.177 from 2021-03-29, the type of the object to be initialized is no

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

2021-04-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Apr 2 11:53:25 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y decl.c externs1.h func.c init.c tree.c Log Message: lint: rename functions for duplicating types No functional change. To generate a diff of this com

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

2021-04-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Apr 2 10:30:35 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: mem1.c Log Message: lint: rename members of struct memory_block No functional change. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/usr.b

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

2021-04-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Apr 2 10:13:03 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y decl.c externs1.h func.c init.c mem1.c tree.c Log Message: lint: name memory allocation functions consistently No functional change. To g

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

2021-04-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Apr 2 09:52:36 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y externs1.h mem1.c tree.c Log Message: lint: rename getnode to expr_zalloc_tnode The new name highlights that the returned memory is only valid in the s

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

2021-04-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Apr 2 09:45:55 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: mem1.c Log Message: lint: extract filename ID counter into separate function No functional change. To generate a diff of this commit: cvs rdiff -u -r1.38 -r1

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

2021-04-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Apr 2 09:39:25 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: externs1.h init.c lint1.h mem1.c Log Message: lint: rename mbl to memory_block No functional change. To generate a diff of this commit: cvs rdiff -u -r1.95 -

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

2021-04-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Apr 2 08:38:44 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: make debug logging compatible with C90 The previous code used the GCC-style varargs macros, which did not even conform to C99. No fu

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

2021-04-01 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Apr 1 15:06:50 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: remove wrong assumption from comment The size in bits of a struct or union is not measured at all at this point since portable_size_i

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

2021-04-01 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Apr 1 14:59:21 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: ops.def Log Message: lint: replace empty macro arguments with non-empty arguments Empty arguments are a new feature of C99. Since lint is one of the build too

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

2021-03-30 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Mar 30 20:23:30 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: clean up duplicate code in handling of initialization No functional change. To generate a diff of this commit: cvs rdiff -u -r1.183

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

2021-03-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Mar 29 21:34:17 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: rename variable 'level' to 'bl' For consistency with its type prefix and the other variables. This variable is used so often that it

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

2021-03-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Mar 29 21:09:21 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: add helper functions No functional change. To generate a diff of this commit: cvs rdiff -u -r1.176 -r1.177 src/usr.bin/xlint/lint1/

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

2021-03-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Mar 29 20:52:01 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: rename struct members in init.c No functional change. To generate a diff of this commit: cvs rdiff -u -r1.175 -r1.176 src/usr.bin/x

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

2021-03-29 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Mar 29 20:39:18 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y init.c Log Message: lint: remove outdated comments, clean up style No functional change. To generate a diff of this commit: cvs rdiff -u -r1.205 -r1.

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 20:35:58 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: add assertions for aggregate initialization No functional change. To generate a diff of this commit: cvs rdiff -u -r1.173 -r1.174 s

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 19:30:08 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: split complicated function for looking up struct members No functional change. To generate a diff of this commit: cvs rdiff -u -r1.

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 18:33:27 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: inline variable in initialization_init_array_using_string No functional change. To generate a diff of this commit: cvs rdiff -u -r1

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 18:28:22 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: clean up initialization_init_array_using_string No functional change. To generate a diff of this commit: cvs rdiff -u -r1.169 -r1.1

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 18:21:29 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: clean up initialization_expr No functional change. To generate a diff of this commit: cvs rdiff -u -r1.168 -r1.169 src/usr.bin/xlin

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 18:18:22 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: extract duplicate code to is_string_array No functional change. To generate a diff of this commit: cvs rdiff -u -r1.167 -r1.168 src

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 18:01:57 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: add is_struct_or_union No functional change. To generate a diff of this commit: cvs rdiff -u -r1.166 -r1.167 src/usr.bin/xlint/lint

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 16:28:15 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: extract brace_level_subtype No functional change. To generate a diff of this commit: cvs rdiff -u -r1.165 -r1.166 src/usr.bin/xlint

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 16:19:21 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: extract initialization_end_brace_level No functional change. To generate a diff of this commit: cvs rdiff -u -r1.164 -r1.165 src/us

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 15:39:26 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: extract check_no_auto_aggregate No functional change. To generate a diff of this commit: cvs rdiff -u -r1.163 -r1.164 src/usr.bin/x

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 14:13:18 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: clean up type handling in initialization No functional change. To generate a diff of this commit: cvs rdiff -u -r1.162 -r1.163 src/

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 13:09:43 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: externs1.h init.c lex.c tree.c Log Message: lint: sprinkle const on function declarations No functional change. To generate a diff of this commit: cvs rdiff

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 11:08:01 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: move code for extending an array of unknown size further up No functional change. To generate a diff of this commit: cvs rdiff -u -

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 10:58:18 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: move code for checking init expressions further up It did not make sense to have this code between the code for the designation and t

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 10:52:41 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: group functions according to their main object No functional change. To generate a diff of this commit: cvs rdiff -u -r1.157 -r1.15

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 10:09:34 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y externs1.h init.c Log Message: lint: rename public designator functions Their previous names were too similar to the actual implementation functions, w

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 10:05:19 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: inline initsym No functional change. To generate a diff of this commit: cvs rdiff -u -r1.155 -r1.156 src/usr.bin/xlint/lint1/init.c

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 10:03:03 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: replace initstack_push_array with brace_level_push_array The designator is no longer logged at this point because it is irrelevant.

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 09:57:31 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: clean up debug logging, use consistent variable names No functional change. To generate a diff of this commit: cvs rdiff -u -r1.153

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 09:51:16 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: omit unnecessary calls to current_init No functional change. To generate a diff of this commit: cvs rdiff -u -r1.152 -r1.153 src/us

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 09:46:55 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: move brace level functions further up No functional change. To generate a diff of this commit: cvs rdiff -u -r1.151 -r1.152 src/usr

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 09:43:28 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: clean up debug logging for initialization No functional change. To generate a diff of this commit: cvs rdiff -u -r1.150 -r1.151 src

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 09:39:04 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: inline initerr in code for handling initializations No functional change. To generate a diff of this commit: cvs rdiff -u -r1.149 -

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 09:34:45 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: inline brace level in initialization No functional change. To generate a diff of this commit: cvs rdiff -u -r1.148 -r1.149 src/usr.

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 09:20:51 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: replace global variables with function parameters No functional change. To generate a diff of this commit: cvs rdiff -u -r1.147 -r1

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 09:08:13 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: move more functions to the global-variables-free section No functional change. To generate a diff of this commit: cvs rdiff -u -r1.

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 08:30:22 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: reorder code for handling initializations First the primitives for debug logging, then the functions that do not access any global va

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

2021-03-28 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 28 07:59:09 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: move debug primitives to the top of the code No functional change. To generate a diff of this commit: cvs rdiff -u -r1.144 -r1.145

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

2021-03-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 27 23:18:38 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: extract brace_level_next_member from initstack_pop_item_unnamed No functional change. To generate a diff of this commit: cvs rdiff

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

2021-03-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 27 22:53:10 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: extract brace level code into separate functions No functional change. To generate a diff of this commit: cvs rdiff -u -r1.142 -r1.

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

2021-03-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 27 22:35:10 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: prepare support for adding array designators No functional change. To generate a diff of this commit: cvs rdiff -u -r1.141 -r1.142

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

2021-03-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 27 22:13:55 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: move handling of function renaming over to declare_extern No functional change. To generate a diff of this commit: cvs rdiff -u -r1

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

2021-03-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 27 22:04:39 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c externs1.h Log Message: lint: rename decl1ext, reduce visibility No functional change. To generate a diff of this commit: cvs rdiff -u -r1.164 -r1.165

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

2021-03-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 27 21:56:51 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: add function for setting the initialization error No functional change. To generate a diff of this commit: cvs rdiff -u -r1.140 -r1

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

2021-03-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 27 19:59:22 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: remove unnecessary typedefs No functional change. To generate a diff of this commit: cvs rdiff -u -r1.139 -r1.140 src/usr.bin/xlint

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

2021-03-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 27 19:48:00 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: rename initstack_element to brace_level No functional change. To generate a diff of this commit: cvs rdiff -u -r1.138 -r1.139 src/u

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

2021-03-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 27 16:37:12 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: extract look_up_member from initstack_push_struct_or_union No functional change. To generate a diff of this commit: cvs rdiff -u -r

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

2021-03-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 27 16:24:21 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: clean up initstack_pop_item_named_member Previously, the code accessed the global variable for the designator several times, even tho

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

2021-03-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 27 13:17:43 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: fix and update comments about initialization To generate a diff of this commit: cvs rdiff -u -r1.135 -r1.136 src/usr.bin/xlint/lint1

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

2021-03-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 27 13:08:20 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: merge duplicate code in initialization No functional change. To generate a diff of this commit: cvs rdiff -u -r1.134 -r1.135 src/us

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

2021-03-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 27 12:32:19 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: emit1.c externs1.h lex.c mem1.c Log Message: lint: rename filename management functions No functional change. To generate a diff of this commit: cvs rdiff -u

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

2021-03-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 27 12:24:43 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: mem1.c Log Message: lint: clean up code for filename management In add_directory_replacement, the expression 'r->repl - r->orig' looked strange, as if two poin

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

2021-03-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 27 12:17:22 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: mem1.c Log Message: lint: rename filename_replacement.len to orig_len No functional change. To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src

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

2021-03-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 27 12:14:49 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: mem1.c Log Message: lint: rename global variables in filename management No functional change. To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34

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

2021-03-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 27 12:10:41 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: mem1.c Log Message: lint: rename srchfn to search_filename, return const value No functional change. To generate a diff of this commit: cvs rdiff -u -r1.32 -

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

2021-03-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 27 12:01:49 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: mem1.c Log Message: lint: rename types in filename management No functional change. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/usr.bin

<    1   2   3   4   5   6   7   8   >