summaryrefslogtreecommitdiff
path: root/usr.bin/make/lst.lib/lstConcat.c
Commit message (Collapse)AuthorAgeFilesLines
* Move all the remaining list functions into one C-file and removeHartmut Brandt2005-02-011-138/+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> Notes: svn path=/head/; revision=141115
* Clean up include files and file including. Split nonints.h into piecesHartmut Brandt2005-02-011-0/+3
| | | | | | | | | | | | | | | | 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> Notes: svn path=/head/; revision=141104
* Instead of dynamically allocating list heads allocated them staticallyHartmut Brandt2004-12-161-0/+1
| | | | | | | | | | | now that their size is only two pointers. This eliminates a lot of calls to Lst_Init and from there to malloc together with many calls to Lst_Destroy (in places where the list is obviously empty). This also reduces the chance to leave a list uninitilized so we can remove more NULL pointer checks and probably eliminates a couple of memory leaks. Notes: svn path=/head/; revision=138916
* Remove return value from Lst_Concat. None of the callers ever checkedHartmut Brandt2004-12-081-35/+19
| | | | | | | it. Remove stuff that was needed for circular lists. Notes: svn path=/head/; revision=138566
* Don't free the second list in Lst_Concat for LST_CONCLINK; free itHartmut Brandt2004-12-081-3/+0
| | | | | | | in the caller instead. Notes: svn path=/head/; revision=138565
* Typedefs of pointers to structs are evil. Make Lst and LstNode typedef ofHartmut Brandt2004-12-071-5/+5
| | | | | | | | | the structs itself not of pointers to them. This will simplify constification. Checked by: diff on the object files Notes: svn path=/head/; revision=138512
* Make needs no circular lists so remove them from the list code.Hartmut Brandt2004-12-071-32/+6
| | | | Notes: svn path=/head/; revision=138510
* Stylification: missing spaces, extra space after function names, castsHartmut Brandt2004-11-301-2/+3
| | | | | | | | | | | 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) Notes: svn path=/head/; revision=138232
* Merge the contents of lstInt.h into the public lst.h. This let's us getHartmut Brandt2004-11-291-17/+15
| | | | | | | | | | 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. Notes: svn path=/head/; revision=138185
* Style: prototypes, un-register and remove some empty lines.Hartmut Brandt2004-11-261-11/+12
| | | | Notes: svn path=/head/; revision=138111
* Use __FBSDID in the lst.lib files, to match to main make(1) files. It isJuli Mallett2002-10-091-1/+1
| | | | | | | | defined to __RCSID when bootstrapping, by the Makefile, but this change is for consistency Notes: svn path=/head/; revision=104694
* There's also no point in #typedef'ing void/char pointers. Accordingly,Will Andrews2000-12-021-1/+1
| | | | | | | | | rip out ClientData/Address pointers and use standard types. Obtained from: OpenBSD Notes: svn path=/head/; revision=69531
* There's no reason to use fancy forms of NULL. Replace all instancesWill Andrews2000-12-021-14/+14
| | | | | | | | | of NIL, NILLST, NILLGNODE, etc. with NULL. Obtained from: OpenBSD Notes: svn path=/head/; revision=69527
* Use __RCSID()Wilfredo Sanchez2000-07-091-2/+3
| | | | Notes: svn path=/head/; revision=62831
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=23006
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-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. Notes: svn path=/head/; revision=21673
* O' to be bitten by CVS. Cleanup after importSteve Price1996-10-081-0/+2
| | | | | | | | | of Christos' version of make(1) and add Id's. Set straight by: Bruce Evans and Peter Wemm :) Notes: svn path=/head/; revision=18804
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-2/+2
| | | | Notes: svn path=/head/; revision=8874
* Bring in a number of changes from NetBSD's make, fixing quite a fewJordan K. Hubbard1995-01-231-0/+2
| | | | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=5814
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-271-0/+174
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590