aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/m4/main.c
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tagrelease/6.2.0_cvscvs2svn2007-01-111-1/+1
| | | | | | 'RELENG_6_2_0_RELEASE'. This commit was manufactured to restore the state of the 6.2-RELEASE image.
* Store a pointer to "null" in struct ndblock's defn member instead of aTim J. Robbins2004-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 Notes: svn path=/head/; revision=133858
* Respect locale settings from the environment.Tim J. Robbins2004-07-121-0/+3
| | | | Notes: svn path=/head/; revision=132004
* Die on -D=foo, when parsing options - we can't let someone define (nil).Juli Mallett2002-09-041-0/+2
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=102917
* Kill extraneous whitespace.Juli Mallett2002-07-151-16/+16
| | | | Notes: svn path=/head/; revision=100014
* Add a default case to the getopt(3) switch, remove a blank line nearby.Juli Mallett2002-07-141-1/+1
| | | | Notes: svn path=/head/; revision=99941
* Functions declared as <type> <identifier>(<nil>) should be declared asJuli Mallett2002-07-141-3/+3
| | | | | | | <type> <identifier>(<void-type>) in ANSI C. Notes: svn path=/head/; revision=99939
* Remove prototype for main().Juli Mallett2002-07-141-2/+0
| | | | Notes: svn path=/head/; revision=99938
* Cast sp to uintptr_t when doing a compare of it to STACKMAX which is a size_t.Juli Mallett2002-06-201-2/+2
| | | | | | | This messes up some indentation in mdef.h for some macros. Notes: svn path=/head/; revision=98490
* If a file operand cannot be processed, go on to process any remaining filesTim J. Robbins2002-05-261-3/+8
| | | | | | | but exit non-zero. Notes: svn path=/head/; revision=97296
* Revert vendor identifiers, and #if 0 what is #if 0/#else for OpenBSD.Juli Mallett2002-05-031-4/+16
| | | | | | | | | Add __FBSDID() properly. Requested by: bde, mike Notes: svn path=/head/; revision=95982
* Remove redundant declarations of getopt(3) externals (since <unistd.h> doesJuli Mallett2002-05-021-3/+0
| | | | | | | | take care of them), and add __FreeBSD__ to the defined() checks for the _PATH_DIVNAME. Notes: svn path=/head/; revision=95918
* Merge local changes again, against ANSIfied m4(1).Juli Mallett2002-05-011-24/+11
| | | | Notes: svn path=/head/; revision=95887
* Crank WARNS.Juli Mallett2002-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) Notes: svn path=/head/; revision=95095
* Bring OpenBSD m4(1) off of the OPENBSD vendor branch, and add the -s option,Juli Mallett2002-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 Notes: svn path=/head/; revision=95060
* This adds support for -s to the m4(1) utility, which causes #line directivesJuli Mallett2002-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 Notes: svn path=/head/; revision=94957
* Remove the local basename in favor of the libc version.David E. O'Brien2001-07-241-2/+7
| | | | | | | Remove xmalloc and xstrdup and do the error checking at the place of use. Notes: svn path=/head/; revision=80289
* Clean up temporary file(s) and directory when m4 exits without fallingGregory Neil Shapiro2001-04-161-7/+2
| | | | | | | | | through main() (e.g., signals or calls to errx()). PR: conf/25715 Notes: svn path=/head/; revision=75551
* The secure temporary directory is always created, so always remove it.John Hay2001-02-281-5/+1
| | | | Notes: svn path=/head/; revision=73240
* Create temporary files in a secure directory, instead of using multipleKris Kennaway2000-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 Notes: svn path=/head/; revision=69030
* getopt and friends are declared in <unistd.h>Warner Losh2000-09-041-4/+0
| | | | | | | getopt returns -1 not EOF. Notes: svn path=/head/; revision=65428
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Use err(3) instead of local redefinition. Remove progname.Philippe Charnier1997-07-231-12/+13
| | | | Notes: svn path=/head/; revision=27625
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24360
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-4/+4
| | | | Notes: svn path=/head/; revision=8874
* Make m4 more 8bit clean.Andrey A. Chernov1994-12-181-10/+10
| | | | | | | | | Don't use is*(EOF) This fix core dump when LANG setted to 8bit wide charset and ENABLE_STARTUP_LOCALE Notes: svn path=/head/; revision=5165
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-271-0/+425
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590