Module Name: src Committed By: rillig Date: Sun Sep 13 15:15:51 UTC 2020
Modified Files: src/usr.bin/make: arch.c buf.c compat.c cond.c dir.c enum.c for.c hash.c job.c lst.c main.c make.c make.h make_malloc.c metachar.c parse.c str.c strlist.c suff.c targ.c trace.c util.c var.c Log Message: make(1): clean up RCSID blocks These blocks mostly consisted of redundant structure, following the same #ifndef pattern over and over, with only minimal variation. It's easier to maintain if the common structure is only written once and encapsulated in a macro. To avoid "defined but unused" warnings from GCC in the case where MAKE_NATIVE is not defined, I had to add volatile. Adding MAKE_ATTR_UNUSED alone would not preserve the rcsid variable in the resulting binary. To generate a diff of this commit: cvs rdiff -u -r1.113 -r1.114 src/usr.bin/make/arch.c cvs rdiff -u -r1.37 -r1.38 src/usr.bin/make/buf.c cvs rdiff -u -r1.144 -r1.145 src/usr.bin/make/compat.c cvs rdiff -u -r1.143 -r1.144 src/usr.bin/make/cond.c cvs rdiff -u -r1.141 -r1.142 src/usr.bin/make/dir.c src/usr.bin/make/make.h cvs rdiff -u -r1.7 -r1.8 src/usr.bin/make/enum.c src/usr.bin/make/strlist.c cvs rdiff -u -r1.82 -r1.83 src/usr.bin/make/for.c cvs rdiff -u -r1.31 -r1.32 src/usr.bin/make/hash.c cvs rdiff -u -r1.231 -r1.232 src/usr.bin/make/job.c cvs rdiff -u -r1.62 -r1.63 src/usr.bin/make/lst.c cvs rdiff -u -r1.336 -r1.337 src/usr.bin/make/main.c cvs rdiff -u -r1.135 -r1.136 src/usr.bin/make/make.c cvs rdiff -u -r1.18 -r1.19 src/usr.bin/make/make_malloc.c cvs rdiff -u -r1.6 -r1.7 src/usr.bin/make/metachar.c cvs rdiff -u -r1.302 -r1.303 src/usr.bin/make/parse.c cvs rdiff -u -r1.64 -r1.65 src/usr.bin/make/str.c cvs rdiff -u -r1.154 -r1.155 src/usr.bin/make/suff.c cvs rdiff -u -r1.87 -r1.88 src/usr.bin/make/targ.c cvs rdiff -u -r1.15 -r1.16 src/usr.bin/make/trace.c cvs rdiff -u -r1.59 -r1.60 src/usr.bin/make/util.c cvs rdiff -u -r1.511 -r1.512 src/usr.bin/make/var.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.