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:   dsl
Date:           Sat Jan 17 13:29:37 UTC 2009

Modified Files:
        src/usr.bin/make: buf.c buf.h cond.c for.c main.c nonints.h str.c var.c

Log Message:
Change 'Buffer' so that it is the actual struct, not a pointer to it.
Saves having to malloc/free a fixed size structure.
Buf_Init() now takes ptr to Buffer to initialiase.
Change Buf_Destroy() to return ptr to string when not freed.
Remove large number of casts to (Byte) and (Byte *) - 'Byte' is 'char' here.
Buf_AddByte[s] guarantees that the data is 0 termininated, so never add '\0'.
Keep 'count' not 'left' and 'inPtr', code is simplier with only one update.
Fix fallou, no functional change.

To generate a diff of this commit:
cvs rdiff -r1.23 -r1.24 src/usr.bin/make/buf.c
cvs rdiff -r1.14 -r1.15 src/usr.bin/make/buf.h
cvs rdiff -r1.49 -r1.50 src/usr.bin/make/cond.c
cvs rdiff -r1.45 -r1.46 src/usr.bin/make/for.c
cvs rdiff -r1.162 -r1.163 src/usr.bin/make/main.c
cvs rdiff -r1.52 -r1.53 src/usr.bin/make/nonints.h
cvs rdiff -r1.31 -r1.32 src/usr.bin/make/str.c
cvs rdiff -r1.145 -r1.146 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