aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/make/util.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove old fmake. It wasn't built by default for some time. Users thatWarner Losh2015-06-161-316/+0
| | | | | | | | | | really need it can find it in the devel/fmake port or pkg install fmake. Note: This commit is orthogonal to the question 'can we fmake buildworld'. Differential Revision: https://reviews.freebsd.org/D2840 Notes: svn path=/head/; revision=284464
* Use the print_flags function to print the OP_ flags of a target.Hartmut Brandt2005-05-131-4/+6
| | | | | | | | Give the function one more argument to decide whether it should print the flags like a C-expression or just space-delimited. Notes: svn path=/head/; revision=146184
* Simplify the print routines by using LST_FOREACH instead of Lst_ForEachHartmut Brandt2005-03-111-0/+20
| | | | | | | | | and inlining the small printing utility functions. Create a function that can be used to produce printable representations of flag words. Notes: svn path=/head/; revision=143414
* Add a debugging function that prints a message and appends theHartmut Brandt2005-03-081-0/+18
| | | | | | | current strerror. Notes: svn path=/head/; revision=143278
* Move PrintAddr() from util.c into suff.c - the only file where it isHartmut Brandt2005-02-041-11/+0
| | | | | | | | | actuall used, and make it static. Submitted by: Max Okumoto <okumoto@ucsd.edu> Notes: svn path=/head/; revision=141271
* Make enomem static - it's referenced only in util.c.Hartmut Brandt2005-02-021-1/+3
| | | | | | | Submitted by: Max Okumoto <okumoto@ucsd.edu> Notes: svn path=/head/; revision=141139
* Clean up include files and file including. Split nonints.h into piecesHartmut Brandt2005-02-011-9/+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> Notes: svn path=/head/; revision=141104
* Stylification: missing spaces, extra space after function names, castsHartmut Brandt2004-11-301-19/+22
| | | | | | | | | | | 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
* Move utilitarian routines to util.c, which isn't the same as the oldJuli Mallett2002-10-101-0/+285
| | | | | | | | | compatability-geared util.c. These are things like message printers and the PrintAddr function for traversing lists. Other general-purpose utilities inside make(1) can go here, in time. Notes: svn path=/head/; revision=104818
* o unifdef -D__STDC__Warner Losh2002-03-231-344/+0
| | | | | | | | o remove badly bit-rotted compat file that likely won't work on the systems it purports to support. Notes: svn path=/head/; revision=93056
* Fix style(9) bug; use ISDOT[DOT,]() macro available in util.c by movingWill Andrews2001-01-211-3/+0
| | | | | | | | | | it to make.h so both dir.c and util.c can use it, although bde didn't particularly like this part of the idea, IMO it's cleaner than it was. Submitted by: bde Notes: svn path=/head/; revision=71325
* Format string paranoia. This should avoid potential buffer overflows fromWill Andrews2000-11-301-3/+3
| | | | | | | | | user input (in its ever-broadening definition). Obtained from: NetBSD Notes: svn path=/head/; revision=69390
* Use __RCSID()Wilfredo Sanchez2000-07-091-4/+5
| | | | Notes: svn path=/head/; revision=62833
* Use __RCSID()Wilfredo Sanchez2000-07-091-4/+4
| | | | Notes: svn path=/head/; revision=62831
* #include <errno.h> where needed. Kill extern int errno;.Warner Losh2000-04-141-4/+1
| | | | | | | Minor warnings in tip corrected. Notes: svn path=/head/; revision=59217
* $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-1/+1
| | | | | | | | | of Christos' version of make(1) and add Id's. Set straight by: Bruce Evans and Peter Wemm :) Notes: svn path=/head/; revision=18804
* Merge in NetBSD's changes to make(1). Changes include:Steve Price1996-10-061-0/+349
- 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 Notes: svn path=/head/; revision=18730