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

2021-03-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Mar 18 14:58:44 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c lint1.h Log Message: lint: document the initialization of an object in more detail This will help fixing the bugs that are currently demonstrated in msg

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

2021-03-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Mar 18 20:22:50 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: document how initialization works, improve debug logging No functional change outside debug mode. To generate a diff of this commit

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

2021-03-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Mar 18 20:55:58 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: reduce debug logging for initialization, update documentation No functional change outside debug mode. To generate a diff of this c

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

2021-03-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Mar 18 21:56:35 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: ops.def Log Message: lint: rename operator 'const' to 'constant' The previous name could be too easily confused with the type qualifier 'const'. The operator

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

2021-03-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Mar 18 22:05:33 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: make the debug log for nodes more readable The operator NAME has the name 'name', therefore no special case is needed. Having the wo

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

2021-03-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Mar 18 22:08:05 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: improve debug logging during initialization No functional change outside debug mode. To generate a diff of this commit: cvs rdiff -

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

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

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

2021-03-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Mar 18 23:37:31 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: clean up control flow in initstack_push No functional change. To generate a diff of this commit: cvs rdiff -u -r1.97 -r1.98 src/usr

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

2021-03-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Mar 18 23:45:20 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: split initstack_push into smaller functions No functional change. To generate a diff of this commit: cvs rdiff -u -r1.98 -r1.99 src

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

2021-03-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Mar 19 00:08:13 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: improve debug logging in initstack_push No functional change outside debug mode. To generate a diff of this commit: cvs rdiff -u -r

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

2021-03-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Mar 19 00:19:32 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: split initstack_pop_item into separate functions No functional change. To generate a diff of this commit: cvs rdiff -u -r1.100 -r1.

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

2021-03-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Mar 19 00:39:17 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: extend documentation about initialization No functional change. To generate a diff of this commit: cvs rdiff -u -r1.101 -r1.102 src

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

2021-03-18 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Mar 19 00:55:02 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y externs1.h init.c Log Message: lint: rename push_member and pop_member These two functions are supposed to model the designator that is used for initia

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

2021-03-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Mar 19 07:54:13 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: add reminder that C99 does not allow '{}' in initializer No functional change. To generate a diff of this commit: cvs rdiff -u -r1

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

2021-03-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Mar 19 08:19:25 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c externs1.h tree.c Log Message: lint: rename tsize to type_size_in_bits The shorter name size_in_bits was already taken by the function-like macro with a

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

2021-03-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Mar 19 08:21:26 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c lint1.h tree.c Log Message: lint: rename in_bit to in_bits No functional change. To generate a diff of this commit: cvs rdiff -u -r1.148 -r1.149 src/u

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

2021-03-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Mar 19 08:23:39 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: externs1.h Log Message: lint: use standard form of statement macro for debug_node No functional change. To generate a diff of this commit: cvs rdiff -u -r1.7

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

2021-03-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Mar 19 17:37:57 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: rename designator_pop_name to designator_shift_name The entries are removed from the beginning, not from the end. No functional chan

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

2021-03-19 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Mar 19 18:17:46 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: improve debug loggin for initialization To generate a diff of this commit: cvs rdiff -u -r1.105 -r1.106 src/usr.bin/xlint/lint1/init

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

2021-03-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 20 10:32:43 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: align rule names in grammar with C99 No functional change. To generate a diff of this commit: cvs rdiff -u -r1.178 -r1.179 src/usr

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

2021-03-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 20 11:05:16 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: fix grammar for initialization Previously, the grammar syntactically accepted the following code: int var = .member = 12345

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

2021-03-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 20 11:33:50 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: remove unnecessary '%prec T_COMMA' from grammar My previous commit message was wrong in saying that the '%prec' was necessary. It i

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

2021-03-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 20 13:00:43 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lint1.h Log Message: lint: document the struct for declarations more precisely No functional change. To generate a diff of this commit: cvs rdiff -u -r1.75 -

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

2021-03-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 20 13:06:05 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: extract adjusting of the storage class into separate function No functional change. To generate a diff of this commit: cvs rdiff -u

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

2021-03-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 20 13:22:06 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: reduce indentation and braces in merge_type_specifiers No functional change. To generate a diff of this commit: cvs rdiff -u -r1.15

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

2021-03-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 20 13:25:31 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: update comment on setasm for C99 No functional change. To generate a diff of this commit: cvs rdiff -u -r1.151 -r1.152 src/usr.bin/

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

2021-03-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 20 13:53:28 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: use proper boolean literals instead of 0/1 The code in the C grammar is generated by yacc and is not checked by lint's strict bool m

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

2021-03-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 20 15:30:58 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: clean up grammar for declaration after statement No functional change. To generate a diff of this commit: cvs rdiff -u -r1.185 -r1

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

2021-03-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 20 16:11:12 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: make the calls to clear_warning_flags stand out less Even though clear_warning_flags and its companions are implemented as macros, t

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

2021-03-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 20 16:16:32 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y externs1.h func.c Log Message: lint: rename ftflg to seen_fallthrough One less abbreviation to remember when reading the code. No functional change.

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

2021-03-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 20 18:38:25 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: inline access to type properties in check_bad_enum_operation No functional change. To generate a diff of this commit: cvs rdiff -u

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

2021-03-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 20 19:24:57 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lex.c Log Message: lint: use macro for initializing keywords table Since today, lint's strict bool mode requires initializers to have the correct type. The fl

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

2021-03-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 20 19:33:25 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: Makefile lex.c oper.c Log Message: lint: make lint's own code pass the strict bool mode No functional change. To generate a diff of this commit: cvs rdiff -u

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

2021-03-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 20 20:15:37 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: op.h oper.c ops.def Log Message: lint: fix argument names and table headings for operator definitions The abbreviations in the table of operator properties had

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

2021-03-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 20 20:39:35 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: main1.c op.h oper.c ops.def tree.c Log Message: lint: remove redundant operator properties table It's enough to have modtab, which describes the properties of

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

2021-03-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 20 20:56:58 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: op.h oper.c print.c tree.c Log Message: lint: move getopname over to tree.c Except for the one use in print_tnode, the name of the operator is only used in tre

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

2021-03-20 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 20 21:08:10 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: clean up new_name_node No functional change. To generate a diff of this commit: cvs rdiff -u -r1.241 -r1.242 src/usr.bin/xlint/lint

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

2021-03-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 21 08:46:26 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y scan.l Log Message: lint: remove redundant operator information from the grammar Several tokens can only ever map to a single operator and thus do not

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

2021-03-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 21 08:52:05 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: in debug output, use uniform file location references This makes it easy to click on the location in the IDE instead of having to ma

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

2021-03-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 21 08:55:59 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y scan.l Log Message: lint: rename token T_XOR to T_BITXOR For symmetry with the operator, which is named BITXOR. No functional change. To generate a

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

2021-03-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 21 09:22:35 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: remove redundant '%prec' declarations from the grammar No change to the generated binary. To generate a diff of this commit: cvs r

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

2021-03-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 21 09:49:34 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: rename grammar rule 'data_def' to 'top_level_declaration' No functional change. To generate a diff of this commit: cvs rdiff -u -r

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

2021-03-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 21 09:54:02 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: rename declspecs to declaration_specifiers, just as in C99 No functional change. To generate a diff of this commit: cvs rdiff -u -

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

2021-03-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 21 10:08:02 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: func.c lint1.h Log Message: lint: rename clst to case_labels No functional change. To generate a diff of this commit: cvs rdiff -u -r1.78 -r1.79 src/usr.bin/

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

2021-03-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 21 10:16:12 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: inline local variable in declarator_1_struct_union No functional change. To generate a diff of this commit: cvs rdiff -u -r1.152 -r

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

2021-03-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 21 10:21:07 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c func.c lint1.h Log Message: lint: rename d_rdcsym to d_redeclared_symbol No functional change. To generate a diff of this commit: cvs rdiff -u -r1.153

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

2021-03-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 21 10:25:40 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y decl.c lint1.h Log Message: lint: rename d_nedecl to d_nonempty_decl No functional change. To generate a diff of this commit: cvs rdiff -u -r1.194 -r

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

2021-03-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 21 10:30:28 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c func.c lint1.h Log Message: lint: rename d_fargs, d_fdpos and d_fpsyms to be less abbreviated No functional change. To generate a diff of this commit:

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

2021-03-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 21 11:38:24 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: func.c Log Message: lint: remove redundant braces in doreturn No functional change. To generate a diff of this commit: cvs rdiff -u -r1.81 -r1.82 src/usr.bin

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

2021-03-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 21 12:03:56 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: func.c lint1.h Log Message: lint: rename i_infinite to i_maybe_endless Not every loop that has 'while (1)' is an endless loop. It may still contain a 'return'

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

2021-03-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 21 12:06:10 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: lint1.h Log Message: lint: document the precise meaning of control_statement.c_break No functional change. To generate a diff of this commit: cvs rdiff -u -r

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

2021-03-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 21 12:08:34 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: func.c lint1.h Log Message: lint: rename c_cont to c_continue No functional change. To generate a diff of this commit: cvs rdiff -u -r1.84 -r1.85 src/usr.bin

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

2021-03-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 21 12:10:27 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: func.c Log Message: lint: document why an unreachable statement is set to reachable No functional change. To generate a diff of this commit: cvs rdiff -u -r1

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

2021-03-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 21 13:03:42 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: func.c lint1.h Log Message: lint: rename c_rchif to c_reached_end_of_then No functional change. To generate a diff of this commit: cvs rdiff -u -r1.86 -r1.87

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

2021-03-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 21 13:10:58 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: Makefile Log Message: lint: add missing space when adding a new test case To generate a diff of this commit: cvs rdiff -u -r1.63 -r1.64 src/usr.bin/xlint/lint

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

2021-03-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 21 14:49:21 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y externs1.h func.c lex.c Log Message: lint: rename functions for handling control statements No functional change. To generate a diff of this commit:

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

2021-03-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 21 18:58:34 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: func.c tree.c Log Message: lint: reduce number of places where 'reached' is set When determining the reachability of a statement, the idea was that whenever 'r

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

2021-03-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 21 19:08:10 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: externs1.h func.c tree.c Log Message: lint: invert 'rchflag', call it warn_about_unreachable instead No functional change. To generate a diff of this commit:

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

2021-03-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 21 20:18:45 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: lint: adjust type in documentation of add_array No functional change. To generate a diff of this commit: cvs rdiff -u -r1.156 -r1.157 src

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

2021-03-21 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sun Mar 21 20:30:19 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: err.c Log Message: lint: remove redundant prototypes No functional change. To generate a diff of this commit: cvs rdiff -u -r1.89 -r1.90 src/usr.bin/xlint/li

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

2021-03-22 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Mar 22 19:25:08 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: ckgetopt.c Log Message: lint: reduce visibility of global variable for getopt check No functional change. To generate a diff of this commit: cvs rdiff -u -r1

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

2021-03-22 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Mar 22 19:29:43 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: reduce visibility of variables for initializations No functional change. To generate a diff of this commit: cvs rdiff -u -r1.108 -r

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

2021-03-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Mar 23 17:36:56 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y decl.c externs1.h init.c Log Message: lint: add indirection for accessing the current initialization This indirection will be needed to handle nested i

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

2021-03-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Mar 23 18:51:43 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: fix documentation about optional braces in initializers To generate a diff of this commit: cvs rdiff -u -r1.111 -r1.112 src/usr.bin/

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

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

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

2021-03-23 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Mar 23 20:21:08 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: extract init_using_assign from init_using_expr No functional change. To generate a diff of this commit: cvs rdiff -u -r1.113 -r1.11

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

2021-03-23 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Mar 23 20:57:40 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y lex.c Log Message: Add _Alignas() To generate a diff of this commit: cvs rdiff -u -r1.198 -r1.199 src/usr.bin/xlint/lint1/cgram.y cvs rdiff -u -r1.1

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

2021-03-24 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Mar 25 00:35:16 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: extract check_init_expr from init_using_expr No functional change. To generate a diff of this commit: cvs rdiff -u -r1.115 -r1.116

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

2021-03-24 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Mar 25 00:48:59 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: remove outdated comment from init_using_expr Since C99, an aggregate type can be initialized without braces. No functional change.

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

2021-03-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Mar 25 13:10:19 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: add comments about things left to do, from code review No functional change. To generate a diff of this commit: cvs rdiff -u -r1.11

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

2021-03-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Mar 25 16:30:23 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: condense debug output for initializations This way it does not look more impressive than it really is. No functional change outside

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

2021-03-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Mar 25 16:43:51 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: free memory at the end of an initialization No functional change, just more clarity in the code. To generate a diff of this commit:

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

2021-03-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Mar 25 19:11:18 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: inline macro 'namedmem' for C99 designators No functional change. To generate a diff of this commit: cvs rdiff -u -r1.121 -r1.122 s

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

2021-03-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Mar 25 19:20:15 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: split current_namedmem into lvalue and rvalue form, rename them This is a small step towards using the terminology from C99. No func

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

2021-03-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Mar 25 19:33:44 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: rename the few remaining instances of 'namedmem' No functional change. To generate a diff of this commit: cvs rdiff -u -r1.123 -r1.

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

2021-03-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Mar 25 19:48:25 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: rename i_current_object to i_next_member No functional change outside debug mode. To generate a diff of this commit: cvs rdiff -u -

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

2021-03-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Mar 25 20:11:18 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: rename debug_named_member to debug_designation No functional change outside debug mode. To generate a diff of this commit: cvs rdif

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

2021-03-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Mar 25 20:38:16 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: remove over-engineered doubly-linked circular list The designation only needs to be navigated from head to tail, not the other way ro

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

2021-03-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Mar 25 21:07:52 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: replace namlist with designation and designator This makes it possible to accurately model C99 initializers, including their optional

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

2021-03-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Mar 25 21:36:41 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: distinguish between read and write access to initstk There are far too many places that modify the top element of the initializer sta

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

2021-03-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Mar 25 21:45:10 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: init.c Log Message: lint: free the designator as soon as it is no longer needed One of the latest "refactorings" introduced a small and practically unimportant

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

2021-03-25 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Mar 25 21:51:56 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y externs1.h init.c Log Message: lint: fix names of functions dealing with designations These functions modify the whole designation, not only a single d

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

2021-03-26 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Mar 26 16:05:19 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: remove redundant '%prec' from grammar for compound literals No change to the resulting binary. To generate a diff of this commit:

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

2021-03-26 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Mar 26 16:45:06 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: extract decision for warning about pointer cast This makes the code several lines longer but way more readable. In the previous dens

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

2021-03-26 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Mar 26 16:53:19 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: rename variables in check_pointer_conversion No functional change. To generate a diff of this commit: cvs rdiff -u -r1.247 -r1.248

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

2021-03-26 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Mar 26 17:44:52 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y decl.c externs1.h Log Message: lint: rename pushdecl and popdecl to be more expressive The previous names were highly ambiguous. The 'decl' could have

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

2021-03-26 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Mar 26 18:54:39 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y externs1.h func.c lint1.h Log Message: lint: rename pushctrl and popctrl to be more expressive While here, remove the magic number 0 that in this conte

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

2021-03-26 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Mar 26 19:17:58 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: func.c lint1.h Log Message: lint: rename members of struct control_statement to be more expressive C99 does not define names for the head parts of the 'for' st

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

2021-03-26 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Mar 26 20:51:34 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: decl.c Log Message: use __func__ To generate a diff of this commit: cvs rdiff -u -r1.161 -r1.162 src/usr.bin/xlint/lint1/decl.c Please note that diffs are

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

2021-03-26 Thread Roland Illig
Module Name:src Committed By: rillig Date: Fri Mar 26 21:05:28 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: err.c Log Message: lint: improve output format for internal errors The new format follows the common conventions for file locations and allows quick navigation

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

2021-03-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 27 11:47:59 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: externs1.h mem1.c Log Message: lint: remove unused fnalloc To generate a diff of this commit: cvs rdiff -u -r1.87 -r1.88 src/usr.bin/xlint/lint1/externs1.h cv

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

2021-03-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 27 11:50:34 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: externs1.h main1.c mem1.c Log Message: lint: rename fnaddreplsrcdir to something less cryptic No functional change. To generate a diff of this commit: cvs rd

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

2021-03-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 27 11:54:35 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: mem1.c Log Message: lint: reduce indentation in fnnalloc No functional change. To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/usr.bin/xlin

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

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: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: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: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: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 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

<    1   2   3   4   5   6   7   8   >