summaryrefslogtreecommitdiffstats
path: root/usr.bin/m4/misc.c
Commit message (Collapse)AuthorAgeFilesLines
* Kill extraneous whitespace.jmallett2002-07-151-10/+10
|
* Functions declared as <type> <identifier>(<nil>) should be declared asjmallett2002-07-141-6/+6
| | | | <type> <identifier>(<void-type>) in ANSI C.
* Revert vendor identifiers, and #if 0 what is #if 0/#else for OpenBSD.jmallett2002-05-031-2/+10
| | | | | | Add __FBSDID() properly. Requested by: bde, mike
* Merge local changes again, against ANSIfied m4(1).jmallett2002-05-011-41/+20
|
* Crank WARNS.jmallett2002-04-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | 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-86/+241
| | | | | | | $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-1/+2
| | | | | | | | | | 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-33/+0
| | | | 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-0/+13
| | | | | | through main() (e.g., signals or calls to errx()). PR: conf/25715
* Remove unnecessary extern definition of strrchr. It is defined inimp2000-08-161-1/+0
| | | | string.h, which already was included.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Use err(3) instead of local redefinition. Remove progname.charnier1997-07-231-40/+15
|
* Skip nulls in putback to don't confuse with EOFsache1994-12-191-0/+2
|
* Make m4 more 8bit clean.ache1994-12-181-4/+6
| | | | | | 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/+266
OpenPOWER on IntegriCloud