Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.bin/make



Module Name:    src
Committed By:   rillig
Date:           Sun Dec 13 20:14:48 UTC 2020

Modified Files:
        src/usr.bin/make: arch.c dir.c job.c main.c meta.c nonints.h parse.c
            suff.c var.c

Log Message:
make(1): add str_basename to reduce duplicate code

The function basename from POSIX has a few unfortunate properties, it is
allowed to return a pointer to static memory.  This is too unreliable,
therefore this trivial own implementation.


To generate a diff of this commit:
cvs rdiff -u -r1.187 -r1.188 src/usr.bin/make/arch.c
cvs rdiff -u -r1.251 -r1.252 src/usr.bin/make/dir.c
cvs rdiff -u -r1.386 -r1.387 src/usr.bin/make/job.c
cvs rdiff -u -r1.497 -r1.498 src/usr.bin/make/main.c
cvs rdiff -u -r1.158 -r1.159 src/usr.bin/make/meta.c
cvs rdiff -u -r1.170 -r1.171 src/usr.bin/make/nonints.h
cvs rdiff -u -r1.479 -r1.480 src/usr.bin/make/parse.c
cvs rdiff -u -r1.329 -r1.330 src/usr.bin/make/suff.c
cvs rdiff -u -r1.732 -r1.733 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.




Home | Main Index | Thread Index | Old Index