summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/lst.lib/lstRemove.c
Commit message (Collapse)AuthorAgeFilesLines
* Move all the remaining list functions into one C-file and removeharti2005-02-011-101/+0
| | | | | | | double documentation comments. Remove the 3rd clause (from 4) of the BSD license because these files have only the UCB copyright. Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Clean up include files and file including. Split nonints.h into piecesharti2005-02-011-0/+4
| | | | | | | | | | | | | 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>
* No caller checks the return code from Lst_Remove, so don't return one.harti2004-12-081-29/+11
| | | | Simplify the algorithm now that circular lists are gone.
* Get rid of the sequential access feature of the lists. This was usedharti2004-12-081-13/+0
| | | | | | | | only in a couple of places and all of them except for one were easily converted to use Lst_First/Lst_Succ. The one place is compatibility mode in job.c where the it was used to advance to the next command on each invocation of JobStart. For this case add a pointer to the node to hold the currently executed command.
* Typedefs of pointers to structs are evil. Make Lst and LstNode typedef ofharti2004-12-071-1/+1
| | | | | | the structs itself not of pointers to them. This will simplify constification. Checked by: diff on the object files
* Make needs no circular lists so remove them from the list code.harti2004-12-071-2/+1
|
* Stylification: missing spaces, extra space after function names, castsharti2004-11-301-1/+1
| | | | | | | | 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)
* Merge the contents of lstInt.h into the public lst.h. This let's us getharti2004-11-291-22/+19
| | | | | | | rid of a lot of uneccesary casts and temporary variables that have just obfuscated the code. This also let's us implement a couple of the one- liner list functions as macros (the first one is Lst_IsEmpty) and simplify life once we start to throw consts on the code.
* Style: prototypes, un-register and remove some empty lines.harti2004-11-261-5/+3
|
* Use __FBSDID in the lst.lib files, to match to main make(1) files. It isjmallett2002-10-091-1/+1
| | | | | defined to __RCSID when bootstrapping, by the Makefile, but this change is for consistency
* There's also no point in #typedef'ing void/char pointers. Accordingly,will2000-12-021-1/+1
| | | | | | rip out ClientData/Address pointers and use standard types. Obtained from: OpenBSD
* There's no reason to use fancy forms of NULL. Replace all instanceswill2000-12-021-6/+6
| | | | | | of NIL, NILLST, NILLGNODE, etc. with NULL. Obtained from: OpenBSD
* Use __RCSID()wsanchez2000-07-091-2/+3
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* 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 :)
* Remove trailing whitespace.rgrimes1995-05-301-4/+4
|
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+131
OpenPOWER on IntegriCloud