CVS commit: src

2021-07-25 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Sun Jul 25 07:35:55 UTC 2021

Modified Files:
src/distrib/sets/lists/man: mi
src/share/man/man4/man4.x86: Makefile
Added Files:
src/share/man/man4/man4.x86: amdccp.4

Log Message:
Add a man page for amdccp(4)


To generate a diff of this commit:
cvs rdiff -u -r1.1723 -r1.1724 src/distrib/sets/lists/man/mi
cvs rdiff -u -r1.22 -r1.23 src/share/man/man4/man4.x86/Makefile
cvs rdiff -u -r0 -r1.1 src/share/man/man4/man4.x86/amdccp.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 08:42:28 UTC 2021

Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/usr.bin/xlint/lint1: Makefile decl.c decl.exp
Added Files:
src/tests/usr.bin/xlint/lint1: parse_type_name.c parse_type_name.exp

Log Message:
tests/lint: test parsing of type_name


To generate a diff of this commit:
cvs rdiff -u -r1.1091 -r1.1092 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.92 -r1.93 src/tests/usr.bin/xlint/lint1/Makefile
cvs rdiff -u -r1.10 -r1.11 src/tests/usr.bin/xlint/lint1/decl.c
cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/xlint/lint1/decl.exp
cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/xlint/lint1/parse_type_name.c \
src/tests/usr.bin/xlint/lint1/parse_type_name.exp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2021-07-25 Thread Simon Burge
Module Name:src
Committed By:   simonb
Date:   Sun Jul 25 08:52:03 UTC 2021

Modified Files:
src/lib/libc/stdio: mktemp.3
src/usr.bin/mktemp: mktemp.1

Log Message:
Update to reflect current reality for template characters - the process
ID is not longer used and we replace each "X" with one of 64 values not
26 values.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/lib/libc/stdio/mktemp.3
cvs rdiff -u -r1.23 -r1.24 src/usr.bin/mktemp/mktemp.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 09:29:20 UTC 2021

Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/usr.bin/xlint/lint1: Makefile
Added Files:
src/tests/usr.bin/xlint/lint1: parse_stmt_error.c parse_stmt_error.exp
parse_stmt_iter_error.c parse_stmt_iter_error.exp

Log Message:
tests/lint: test parse errors in statements

These errors are really unrealistic.  Most parse errors that occur in
statements are already handled elsewhere and continue with the next
semicolon.

The tests had to be split into two separate files because lint assumes
that after the 5th parse error, it does not make sense to continue this
translation unit.


To generate a diff of this commit:
cvs rdiff -u -r1.1092 -r1.1093 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.93 -r1.94 src/tests/usr.bin/xlint/lint1/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/xlint/lint1/parse_stmt_error.c \
src/tests/usr.bin/xlint/lint1/parse_stmt_error.exp \
src/tests/usr.bin/xlint/lint1/parse_stmt_iter_error.c \
src/tests/usr.bin/xlint/lint1/parse_stmt_iter_error.exp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



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

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 09:47:08 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: parse_type_name.c parse_type_name.exp

Log Message:
tests/lint: document unreachable 'abstract_declarator: T_TYPEOF'


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/parse_type_name.c \
src/tests/usr.bin/xlint/lint1/parse_type_name.exp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



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

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 09:53:01 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: parse_type_name.c parse_type_name.exp

Log Message:
tests/lint: try harder to reduce 'abstract_declarator: T_TYPEOF'

At the top level of a type_name, declaration-specifiers take precedence,
but these cannot look inside the parentheses of a
direct-abstract-declarator.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/parse_type_name.c \
src/tests/usr.bin/xlint/lint1/parse_type_name.exp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/usr.sbin/execsnoop

2021-07-25 Thread Andreas Gustafsson
Module Name:src
Committed By:   gson
Date:   Sun Jul 25 10:11:32 UTC 2021

Modified Files:
src/tests/usr.sbin/execsnoop: t_execsnoop.sh

Log Message:
Increase sleep waiting for execsnoop to start; one second is not sufficient
on a Dell Latitude D400 i386 laptop.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/usr.sbin/execsnoop/t_execsnoop.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/usr.sbin/execsnoop

2021-07-25 Thread Andreas Gustafsson
Module Name:src
Committed By:   gson
Date:   Sun Jul 25 10:21:44 UTC 2021

Modified Files:
src/tests/usr.sbin/execsnoop: t_execsnoop.sh

Log Message:
Remove "pkill -9 execsnoop".  It's wrong on so many levels: first of
all, it does not actually kill anything because the process executing
the execsnoop script is called "sh", not "execsnoop".  And even if it
would somehow kill the shell running the execsnoop script, it still
would not kill the dtrace child process.  On the other hand, if there
happened to be an unrelated process actually called "execsnoop", it
would kill that.

The actual killing of the execsnoop sh and dtrace processes happens in
the ATF cleanup stage (as it always has).


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/usr.sbin/execsnoop/t_execsnoop.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



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

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 10:26:46 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: msg_110.c msg_110.exp msg_147.c
msg_147.exp

Log Message:
tests/lint: test function types and pointer arithmetic


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/msg_110.c \
src/tests/usr.bin/xlint/lint1/msg_110.exp \
src/tests/usr.bin/xlint/lint1/msg_147.c \
src/tests/usr.bin/xlint/lint1/msg_147.exp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 10:39:10 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: msg_147.c msg_147.exp
src/usr.bin/xlint/lint1: err.c tree.c

Log Message:
lint: add type information to message about invalid cast

This probably doesn't matter in practice since the compiler is supposed
to catch this kind of error.  Adding the type information mainly ensures
that parsing abstract type names works as specified.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/msg_147.c \
src/tests/usr.bin/xlint/lint1/msg_147.exp
cvs rdiff -u -r1.130 -r1.131 src/usr.bin/xlint/lint1/err.c
cvs rdiff -u -r1.318 -r1.319 src/usr.bin/xlint/lint1/tree.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 10:57:38 UTC 2021

Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/usr.bin/xlint/lint1: Makefile
Added Files:
src/tests/usr.bin/xlint/lint1: gcc_typeof.c gcc_typeof.exp

Log Message:
tests/lint: demonstrate missing support for GCC typeof


To generate a diff of this commit:
cvs rdiff -u -r1.1093 -r1.1094 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.94 -r1.95 src/tests/usr.bin/xlint/lint1/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/xlint/lint1/gcc_typeof.c \
src/tests/usr.bin/xlint/lint1/gcc_typeof.exp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/arm/rockchip

2021-07-25 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Jul 25 11:14:16 UTC 2021

Modified Files:
src/sys/arch/arm/rockchip: rk_anxdp.c

Log Message:
rockchip: edp: Force VOPB as CRTC for eDP.

Fixes display init on Pinebook Pro w/ U-Boot 2021.07.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/arm/rockchip/rk_anxdp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



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

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 11:19:51 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: gcc_typeof.c gcc_typeof.exp

Log Message:
tests/lint: document parse error for GCC typeof


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/gcc_typeof.c \
src/tests/usr.bin/xlint/lint1/gcc_typeof.exp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 15:48:58 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: parse_type_name.c parse_type_name.exp
src/usr.bin/xlint/lint1: cgram.y

Log Message:
lint: fix parsing of 'typeof(double(typeof(0.0)))'

By removing the misplaced grammar rule 'abstract_declarator: T_TYPEOF',
the type expression 'typeof(double(typeof(0.0)))' is no longer
interpreted as a declarator, but rather as a type specifier, just as in
the GCC parser.

This resolves 7 shift/reduce conflicts.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/parse_type_name.c \
src/tests/usr.bin/xlint/lint1/parse_type_name.exp
cvs rdiff -u -r1.335 -r1.336 src/usr.bin/xlint/lint1/cgram.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/usr.sbin/execsnoop

2021-07-25 Thread Andreas Gustafsson
Module Name:src
Committed By:   gson
Date:   Sun Jul 25 15:51:32 UTC 2021

Modified Files:
src/tests/usr.sbin/execsnoop: t_execsnoop.sh

Log Message:
Only expect failure on ARM


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/tests/usr.sbin/execsnoop/t_execsnoop.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 15:58:24 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: gcc_typeof.c gcc_typeof.exp
src/usr.bin/xlint/lint1: cgram.y

Log Message:
lint: do not parse 'typeof(0)(void)' as function call

Previously, lint tried to parse 'typeof(0)(void)' as 'typeof'
'(0)(void)', which tries to call 0 as a function.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/gcc_typeof.c \
src/tests/usr.bin/xlint/lint1/gcc_typeof.exp
cvs rdiff -u -r1.336 -r1.337 src/usr.bin/xlint/lint1/cgram.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



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

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 16:57:23 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: cgram.y

Log Message:
lint: wrap overly long lines

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.337 -r1.338 src/usr.bin/xlint/lint1/cgram.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 17:27:07 UTC 2021

Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/usr.bin/xlint/lint1: Makefile
Added Files:
src/tests/usr.bin/xlint/lint1: parse_init_declarator.c
parse_init_declarator.exp

Log Message:
tests/lint: test declarators with attributes


To generate a diff of this commit:
cvs rdiff -u -r1.1094 -r1.1095 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.95 -r1.96 src/tests/usr.bin/xlint/lint1/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/xlint/lint1/parse_init_declarator.c \
src/tests/usr.bin/xlint/lint1/parse_init_declarator.exp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 17:40:04 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: parse_init_declarator.c
parse_init_declarator.exp
src/usr.bin/xlint/lint1: cgram.y

Log Message:
lint: fix parsing of GNU __attribute__ after __asm

GCC only accepts them in the order __asm __attribute__, not the other
way round.  So should lint.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/tests/usr.bin/xlint/lint1/parse_init_declarator.c \
src/tests/usr.bin/xlint/lint1/parse_init_declarator.exp
cvs rdiff -u -r1.338 -r1.339 src/usr.bin/xlint/lint1/cgram.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



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

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 18:01:03 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: cgram.y

Log Message:
lint: add citations for a few grammar rules

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.339 -r1.340 src/usr.bin/xlint/lint1/cgram.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



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

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 18:34:44 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: gcc_attribute_enum.c
gcc_attribute_enum.exp

Log Message:
tests/lint: test __attribute__ with enum


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/gcc_attribute_enum.c \
src/tests/usr.bin/xlint/lint1/gcc_attribute_enum.exp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 18:44:21 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: gcc_attribute_enum.c
gcc_attribute_enum.exp
src/usr.bin/xlint/lint1: cgram.y

Log Message:
lint: fix parsing of __attribute__ before enum tag

The __attribute__ after the enumerators will be fixed in a follow-up
commit since lint exits after the 5th syntax error in a translation
unit, which up to now shadowed the error messages about the enumerators.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/gcc_attribute_enum.c \
src/tests/usr.bin/xlint/lint1/gcc_attribute_enum.exp
cvs rdiff -u -r1.340 -r1.341 src/usr.bin/xlint/lint1/cgram.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 18:48:47 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: gcc_attribute_enum.c
gcc_attribute_enum.exp
src/usr.bin/xlint/lint1: cgram.y

Log Message:
lint: fix parsing of enumerators with __attribute__


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/gcc_attribute_enum.c \
src/tests/usr.bin/xlint/lint1/gcc_attribute_enum.exp
cvs rdiff -u -r1.341 -r1.342 src/usr.bin/xlint/lint1/cgram.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 19:05:27 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: gcc_attribute_type.c
gcc_attribute_type.exp
src/usr.bin/xlint/lint1: cgram.y

Log Message:
lint: reorder grammar rules

First the base cases, then the extensions, like in most other rules in
this file.

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/gcc_attribute_type.c \
src/tests/usr.bin/xlint/lint1/gcc_attribute_type.exp
cvs rdiff -u -r1.342 -r1.343 src/usr.bin/xlint/lint1/cgram.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



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

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 19:22:08 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: parse_type_name.c parse_type_name.exp

Log Message:
tests/lint: fix unintended line breaks


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/usr.bin/xlint/lint1/parse_type_name.c \
src/tests/usr.bin/xlint/lint1/parse_type_name.exp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



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

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 19:27:26 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: cgram.y

Log Message:
lint: resolve conflicts in begin_type_specifier_qualifier_list

The 9 shift/reduce conflicts were all internal to the grammar rule
begin_type_specifier_qualifier_list.  Previously, there were two
possible ways to parse '__attribute__(()) const int':

1. '__attribute__(())' 'const int'
2. '__attribute__(()) const' 'int'

Both ways would produce the same result since __attribute__ has almost
no observable effects on the resulting type.

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.343 -r1.344 src/usr.bin/xlint/lint1/cgram.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



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

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 19:41:33 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: parse_type_name.c parse_type_name.exp

Log Message:
tests/lint: explain where the second __attribute__ comes from


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/usr.bin/xlint/lint1/parse_type_name.c \
src/tests/usr.bin/xlint/lint1/parse_type_name.exp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



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

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 19:57:22 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: cgram.y

Log Message:
lint: merge duplicate code for abstract_declaration

No functional change; same code coverage outside of cgram.y.


To generate a diff of this commit:
cvs rdiff -u -r1.344 -r1.345 src/usr.bin/xlint/lint1/cgram.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



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

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 21:31:01 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: cgram.y

Log Message:
lint: revert previous commit; it didn't improve readability

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.345 -r1.346 src/usr.bin/xlint/lint1/cgram.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 22:03:43 UTC 2021

Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/usr.bin/xlint/lint1: Makefile decl.c decl.exp
parse_init_declarator.c parse_type_name.c
Added Files:
src/tests/usr.bin/xlint/lint1: c90.c c90.exp

Log Message:
tests/lint: cover every code line in the grammar


To generate a diff of this commit:
cvs rdiff -u -r1.1095 -r1.1096 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.96 -r1.97 src/tests/usr.bin/xlint/lint1/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/xlint/lint1/c90.c \
src/tests/usr.bin/xlint/lint1/c90.exp
cvs rdiff -u -r1.11 -r1.12 src/tests/usr.bin/xlint/lint1/decl.c
cvs rdiff -u -r1.7 -r1.8 src/tests/usr.bin/xlint/lint1/decl.exp
cvs rdiff -u -r1.2 -r1.3 \
src/tests/usr.bin/xlint/lint1/parse_init_declarator.c
cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/xlint/lint1/parse_type_name.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



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

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 22:14:37 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: Makefile decl.c externs1.h
Removed Files:
src/usr.bin/xlint/lint1: print.c

Log Message:
lint: move scl_name from print.c to decl.c

It is only needed there.


To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 src/usr.bin/xlint/lint1/Makefile
cvs rdiff -u -r1.209 -r1.210 src/usr.bin/xlint/lint1/decl.c
cvs rdiff -u -r1.120 -r1.121 src/usr.bin/xlint/lint1/externs1.h
cvs rdiff -u -r1.15 -r0 src/usr.bin/xlint/lint1/print.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



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

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 22:31:22 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: msg_342.c msg_342.exp

Log Message:
tests/lint: cover code in ckctype.c


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/msg_342.c \
src/tests/usr.bin/xlint/lint1/msg_342.exp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2021-07-25 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jul 25 22:43:08 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: msg_342.c msg_342.exp
src/usr.bin/xlint/lint1: ckctype.c

Log Message:
lint: split is_ctype_function into separate parts

This reduces the number of string comparisons for function names that
start with 'is' or 'to'.

The tests now cover function names that start with 'is' or 'to' but are
not one of the well-known functions from ctype.h.  This removes the '*'
in the output from gcov.

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/msg_342.c \
src/tests/usr.bin/xlint/lint1/msg_342.exp
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/xlint/lint1/ckctype.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.