summaryrefslogtreecommitdiffstats
path: root/usr.bin/m4/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-111-4/+0
| | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson
* Store a pointer to "null" in struct ndblock's defn member instead of atjr2004-08-161-2/+2
| | | | | | | | duplicate allocated on the heap; the address defn points to is significant, and is checked against the address of "null" in certain conditionals. PR: 59883 MFC after: 1 week
* Respect locale settings from the environment.tjr2004-07-121-0/+3
|
* Die on -D=foo, when parsing options - we can't let someone define (nil).jmallett2002-09-041-0/+2
| | | | MFC after: 3 days
* Kill extraneous whitespace.jmallett2002-07-151-16/+16
|
* Add a default case to the getopt(3) switch, remove a blank line nearby.jmallett2002-07-141-1/+1
|
* Functions declared as <type> <identifier>(<nil>) should be declared asjmallett2002-07-141-3/+3
| | | | <type> <identifier>(<void-type>) in ANSI C.
* Remove prototype for main().jmallett2002-07-141-2/+0
|
* Cast sp to uintptr_t when doing a compare of it to STACKMAX which is a size_t.jmallett2002-06-201-2/+2
| | | | This messes up some indentation in mdef.h for some macros.
* If a file operand cannot be processed, go on to process any remaining filestjr2002-05-261-3/+8
| | | | but exit non-zero.
* Revert vendor identifiers, and #if 0 what is #if 0/#else for OpenBSD.jmallett2002-05-031-4/+16
| | | | | | Add __FBSDID() properly. Requested by: bde, mike
* Remove redundant declarations of getopt(3) externals (since <unistd.h> doesjmallett2002-05-021-3/+0
| | | | | take care of them), and add __FreeBSD__ to the defined() checks for the _PATH_DIVNAME.
* Merge local changes again, against ANSIfied m4(1).jmallett2002-05-011-24/+11
|
* Crank WARNS.jmallett2002-04-201-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | | Cast sizeof() to (int), as it's being compared against an int, not a size_t. If i is changed to a size_t, it means the logic must be slightly changed later in the flow, where --i is checked to be >= 0. I am not sure I want to make a logic change to account for clearing up a warning, when an aesthetic one will keep from modifying the logic. Other harmless casts, that I think I've made in the right directions. Make gpbc() an inline function, rather than an obfuscated macro, make its scratch space local, rather than global. The previous macro used a dirty hack (logical AND in place of a conditional) which would lead GCC to throw a fit (rightly so) as the logical check, as well as the incrementation of a variable, were not used for anything. const'ify a few places where gcc3 yells. xstrdup() some global consts in places where we xstrdup() when not using consts, but tried to assign them to non-consts before. Don't use execv(2) if we don't have the kind of arguments it wants. Reviewed by: asmodai obrien tjr Submitted by: tjr (a gcc3 build log)
* Bring OpenBSD m4(1) off of the OPENBSD vendor branch, and add the -s option,jmallett2002-04-191-186/+398
| | | | | | | $FreeBSD$ identifiers, and fix initialisation to stderr to happen in a function as stderr is not the same in CURRENT as in OpenBSD. Reviewed by: obrien
* This adds support for -s to the m4(1) utility, which causes #line directivesjmallett2002-04-171-2/+27
| | | | | | | | | | to be emitted as per the C preprocessor. It updates the manual page in regards to standards accordingly. PR: standards/36075 Submitted by: tjr Reviewed by: mike MFC after: 1 week
* Remove the local basename in favor of the libc version.obrien2001-07-241-2/+7
| | | | Remove xmalloc and xstrdup and do the error checking at the place of use.
* Clean up temporary file(s) and directory when m4 exits without fallinggshapiro2001-04-161-7/+2
| | | | | | through main() (e.g., signals or calls to errx()). PR: conf/25715
* The secure temporary directory is always created, so always remove it.jhay2001-02-281-5/+1
|
* Create temporary files in a secure directory, instead of using multiplekris2000-11-221-1/+4
| | | | | | | filenames based on a single invocation of mktemp() in /tmp, which is easily predictable after the first one. Audited by: markm
* getopt and friends are declared in <unistd.h>imp2000-09-041-4/+0
| | | | getopt returns -1 not EOF.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Use err(3) instead of local redefinition. Remove progname.charnier1997-07-231-12/+13
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Remove trailing whitespace.rgrimes1995-05-301-4/+4
|
* Make m4 more 8bit clean.ache1994-12-181-10/+10
| | | | | | Don't use is*(EOF) This fix core dump when LANG setted to 8bit wide charset and ENABLE_STARTUP_LOCALE
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+425
OpenPOWER on IntegriCloud