summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/buf.c
Commit message (Collapse)AuthorAgeFilesLines
* Spelling fixes for usr.bin/uqs2011-12-301-1/+1
|
* Remove inlining of functions that are used mostly in different object files.rdivacky2009-01-201-3/+3
| | | | | | | | This gets rid of gnu89 style inlining. Also silence gcc by assigning two variables NULL. This lets use to remove NO_WERROR. Approved by: kib (mentor) Approved by: harti
* Move the Boolean and ReturnStatus stuff from sprite.h to util.h andharti2005-05-131-1/+0
| | | | | | get rid of sprite.h. Obtained from: DragonFlyBSD
* Move the MAX macro to a util.h so it becomes usable in other modules.harti2005-03-311-4/+0
| | | | Suggested by: Max Okumoto <okumoto@ucsd.edu>
* Two new functions: Buf_Data() returns a reference to the data inharti2005-03-221-0/+23
| | | | | | | | | the buffer and Buf_AppendBuf() appends a copy of one buffer to another buffer. Patch: 7.146,7.147 Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Create a new function Buf_Peel that returns the string from insideharti2005-03-081-0/+19
| | | | a Buffer and frees the Buffer.
* Introduce Buf_StripNewLines() and use it where appropriate.harti2005-02-071-0/+30
| | | | Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Invent a Buf_AppendRange function that appends a non-NUL-terminated stringharti2005-02-071-0/+9
| | | | | | | given by a pointer to the start of the string and a pointer one behind the end. Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Invent a Buf_Append function to append a NUL-terminated stringharti2005-02-071-0/+10
| | | | | | and use it thoughout the code. Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Rewrite of the buf code:harti2005-02-041-156/+88
| | | | | | | | | | - convert Buf_AddByte from a macro to a function - move #define's into the header file - remove unused field in struct Buffer - remove size fields - they can be easily computed - inline Buf_OvAddByte Submitted by: Max Okumoto <okumoto@ucsd.edu>
* None of the users of Buf_Discard used it to get rid of only a part ofharti2005-02-041-25/+10
| | | | | | | the buffer. So replace Buf_Discard by Buf_Clear which just gets rid of the entire contents. Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Remove a couple of unused buffer functions.harti2005-02-021-154/+0
| | | | Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Convert several typedefs from beeing pointers to structs to be the structsharti2005-02-021-13/+13
| | | | | | | itself. This will ease constification (think of what 'const Ptr foo' means if Ptr is a pointer to a struct). Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Clean up include files and file including. Split nonints.h into piecesharti2005-02-011-3/+6
| | | | | | | | | | | | | that get included just where they are needed. All headers include the headers that they need to compile (just with an empty .c file). Sort includes alphabetically where apropriate and fix some duplicate commenting for struct Job, struct GNode and struct Shell by removing one version and inlining the comments into the structure declaration (the comments have been somewhat outdated). This patch does not contain functional changes (checked with md5). Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Remove an extra space.harti2004-12-031-1/+1
| | | | Submitted by: ru
* Put macro arguments in paranthesis.harti2004-12-031-1/+1
| | | | Submitted by: johan
* Make sizes to be of type size_t and correct function arguments thatharti2004-12-031-16/+16
| | | | should be Byte (as the numerous casts to Byte in the function calls show).
* Style: fix indentation, protect macro with do { } while (0).harti2004-12-031-129/+128
| | | | Checked with: diff on object file.
* Style: remove a lot of unnecessary casts, add some and spell the nullharti2004-12-011-14/+15
| | | | | | pointer constant as NULL. Checked by: diff -r on the object files before and after
* Stylification: missing spaces, extra space after function names, castsharti2004-11-301-39/+40
| | | | | | | | and the sizeof operator, missing empty lines, void casts, extra empty lines. Checked by: diff on make *.o lst.lib/*.o Submitted by: Max Okumoto <okumoto@soe.ucsd.edu> (partly)
* Convert make(1) to use ANSI style function declarations. Variablejmallett2002-10-091-37/+13
| | | | | | | | | | | documentation already adequatedly existed in the description in most cases. Where it did not, it was added. If no documentation existed beforehand, then none was added. Some unused dummies for use in the traversal functions were marked as __unused during the conversion. Occasionally, local style fixes were applied to lines already being modified or influenced. Now make(1) should always build with WARNS=3.
* #define<space> -> #define<tab>jmallett2002-09-171-5/+5
|
* Avoid classy use of a variable one time with a constant value.jmallett2002-06-131-2/+1
|
* Fix copyrights, and undo SCS ID damage.obrien2002-04-131-1/+2
|
* Update SCM ID method.obrien2002-04-131-3/+1
|
* De'register.obrien2002-04-131-9/+9
|
* Use __RCSID()wsanchez2000-07-091-6/+4
|
* Unduplicate IDs from comments, do $Id -> $FreeBSD$ (submitted-by: bde)hoek1999-09-111-3/+1
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Merge style- and trivial- only changes from OpenBSD (dated 1999/07/29-19:55+1).hoek1999-08-171-3/+8
| | | | Obtained from: OpenBSD, sometimes indirected from NetBSD; myself
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* O' to be bitten by CVS. Cleanup after importsteve1996-10-081-0/+2
| | | | | | of Christos' version of make(1) and add Id's. Set straight by: Bruce Evans and Peter Wemm :)
* Merge in NetBSD's changes to make(1). Changes include:steve1996-10-061-1/+1
| | | | | | | | | | | | | | | | - Add the .PHONY, .PARALLEL, and .WAIT directives - Added the -B and -m commandline flags - misc. man page cleanups - numerous job-related enhancements - removed unused header file (bit.h) - add util.c for functions not found in other envs. - and a few coordinated whitespace changes Special thanks to Christos Zoulas <christos@netbsd.org> for help in the merge. A 'diff -ur' between Net and FreeBSD now only contains sccsid-related diffs. :) Obtained from: NetBSD, christos@netbsd.org, and me
* Fix for PR# 1095, make's continuation line handling buggysteve1996-09-221-0/+25
| | | | | | | when used with .elif. Additional fixes include: - fix continuation line handling when using .for - plug up a memory leak
* Remove trailing whitespace.rgrimes1995-05-301-4/+4
|
* Bring in a number of changes from NetBSD's make, fixing quite a fewjkh1995-01-231-4/+4
| | | | | | | | | | | | problems in the process: 1. Quoting should work properly now. In particular, Chet's reported bash make problem has gone away. 2. A lot of memory that just wasn't being free'd after use is now freed. This should cause make to take up a LOT less memory when dealing with archive targets. 3. Give proper credit to Adam de Boor in a number of files. Obtained from: NetBSD (and Adam de Boor)
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+436
OpenPOWER on IntegriCloud