summaryrefslogtreecommitdiffstats
path: root/usr.bin/m4
Commit message (Collapse)AuthorAgeFilesLines
* Rename `eqrelval' which was renamed from `eqrel' to quiet a shadow warningjmallett2002-05-031-3/+3
| | | | | | | to `op' as suggested by Bruce, as this is used to store the operator between vl and vr. Submitted by: bde
* Revert vendor identifiers, and #if 0 what is #if 0/#else for OpenBSD.jmallett2002-05-036-13/+52
| | | | | | Add __FBSDID() properly. Requested by: bde, mike
* Remove redundant declarations of getopt(3) externals (since <unistd.h> doesjmallett2002-05-022-4/+2
| | | | | take care of them), and add __FreeBSD__ to the defined() checks for the _PATH_DIVNAME.
* Add some spurious veritcal whitespace to reduce diffs to OpenBSD.jmallett2002-05-011-0/+2
|
* Merge local changes again, against ANSIfied m4(1).jmallett2002-05-018-245/+109
|
* Use %zu to print a size_t, not %u and definitely not %d.jmallett2002-04-202-2/+1
| | | | | | | Remove WARNS?=2, as GCC will usually throw a fit right now, and I'm not going to mix WARNS and NO_WERROR. Submitted by: fenner
* Print a size_t as %u not %d.jmallett2002-04-201-1/+1
| | | | Pointed out by: mike, des's tinderbox
* Use `The .Nm utility'charnier2002-04-201-2/+3
|
* Prevent sign extension (again)ache2002-04-201-1/+1
|
* Crank WARNS.jmallett2002-04-209-42/+47
| | | | | | | | | | | | | | | | | | | | | | | | | 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)
* Prevent sign extension on characters with 8bit setache2002-04-191-1/+1
|
* Add __FBSDID, this file was unmodified so it was missed in the initial sweep.jmallett2002-04-191-0/+3
|
* Bring OpenBSD m4(1) off of the OPENBSD vendor branch, and add the -s option,jmallett2002-04-1912-643/+1442
| | | | | | | $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
* Merge differences and correct the manual page.jmallett2002-04-191-144/+309
|
* This adds support for -s to the m4(1) utility, which causes #line directivesjmallett2002-04-176-9/+82
| | | | | | | | | | 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 __Pimp2002-03-222-46/+48
|
* This commit was generated by cvs2svn to compensate for changes in r90744,jmallett2002-02-162-0/+835
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import OpenBSD m4 as of today.jmallett2002-02-167-446/+1907
| |
| * Import OpenBSD m4 as of today.jmallett2001-11-161-109/+224
| |
| * Import OpenBSD m4 as of today.jmallett2001-09-271-18/+66
| |
| * Import OpenBSD m4 as of today.jmallett2001-09-181-2/+10
| |
| * Import OpenBSD m4 as of today.jmallett1999-11-091-0/+3
| |
* | Remove the local basename in favor of the libc version.obrien2001-07-245-43/+22
| | | | | | | | Remove xmalloc and xstrdup and do the error checking at the place of use.
* | Remove whitespace at EOL.dd2001-07-151-1/+1
| |
* | Make sure the len() builtin always returns an answer. Previously,gshapiro2001-05-291-2/+1
| | | | | | | | | | | | | | len(`') didn't return an answer. Now it returns 0. PR: bin/12942 MFC after: 5 days
* | String operations could silently truncate long strings, leaving the outputgshapiro2001-05-181-8/+8
| | | | | | | | | | | | | | | | | | | | | | corrupted. Mark's patch fixes this be removing the MAXTOK limitation on substring operations and allowing the putback buffer size to be the limiting factor. If the putback buffer size if reached, m4 gives an error instead of silently truncating the string. PR: bin/26619 Submitted by: Mark Peek <mark-ml@whistle.com> MFC after: 5 days
* | Clean up temporary file(s) and directory when m4 exits without fallinggshapiro2001-04-163-7/+18
| | | | | | | | | | | | 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
| |
* | Fix format string warnings.kris2000-11-271-1/+1
| | | | | | | | | | Submitted by: nra Obtained from: NetBSD
* | Create temporary files in a secure directory, instead of using multiplekris2000-11-222-7/+9
| | | | | | | | | | | | | | filenames based on a single invocation of mktemp() in /tmp, which is easily predictable after the first one. Audited by: markm
* | mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-4/+4
| |
* | getopt and friends are declared in <unistd.h>imp2000-09-041-4/+0
| | | | | | | | getopt returns -1 not EOF.
* | Remove unnecessary extern definition of strrchr. It is defined inimp2000-08-161-1/+0
| | | | | | | | string.h, which already was included.
* | Typokris1999-11-151-1/+1
| | | | | | | | Obtained from: OpenBSD
* | $Id$ -> $FreeBSD$peter1999-08-284-4/+4
| |
* | Various man page cleanup:mpp1999-08-151-2/+2
| | | | | | | | | | | | | | | | | | - Sort xrefs - Be consistent with section names as outlines in mdoc(7). - Other misc mdoc cleanup. PR: doc/13144 Submitted by: Alexey M. Zelkin <phantom@cris.net>
* | Change the wording to reflect that only the first character of the twosteve1998-12-131-2/+2
| | | | | | | | | | | | arguments to changequote are significant. PR: 8282
* | Make the builtin unix macro work as it should (well like Solaris's,steve1998-09-071-1/+5
| | | | | | | | GNU's, and OSF1's).
* | Correct typo: loosing --> losingrnordier1998-06-261-2/+2
| |
* | .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.charnier1998-03-231-3/+5
| |
* | divnum is no longer silently restricted to the range 0..9. (cf: 4098)jlemon1997-08-181-3/+7
| | | | | | | | | | | | | | | | changequote(,) is now a synonym for changequote(). (cf: 803) buffer size for translit() enlarged to handle a full string PR: 803, 4098
* | Use err(3) instead of local redefinition. Remove progname.charnier1997-07-234-65/+43
| |
* | kill the undeadpeter1997-07-131-475/+0
| |
* | The m4 doc sources aren't in Lite* or FreeBSD, and Lite2 removed thisbde1997-07-131-11/+0
| | | | | | | | unused Makefile.
| |
| \
*-. \ This commit was generated by cvs2svn to compensate for changes in r27241,bde1997-07-061-0/+475
|\ \ \ | | |/ | | | | | | which included commits to RCS files with non-trunk default branches.
| | * Finish importing Lite2's src/usr.bin, except for ex, diff, grep, mail,bde1997-07-062-131/+80
| | | | | | | | | | | | | | | pascal and vmstat.sparc. All changed files on the vendor branch should already have been imported.
| * | Finish importing Lite2's src/usr.bin, except for ex, diff, grep, mail,bde1997-07-061-0/+475
| | | | | | | | | | | | | | | pascal and vmstat.sparc. All changed files on the vendor branch should already have been imported.
| * | recording cvs-1.6 file deathpeter1995-12-301-475/+0
| | |
* | | Make the $@ macro behave as described in the man page.joerg1997-04-131-0/+10
| | | | | | | | | | | | | | | | | | This patch has been submitted by Andreas Burmester (i think) on the German Usenet long ago. Andreas told me that our m4 has quite more subtle bugs, so we might consider using NGU m4 instead.
* | | This commit was generated by cvs2svn to compensate for changes in r24628,jmallett1997-04-041-2/+5
|\ \ \ | | |/ | |/| | | | which included commits to RCS files with non-trunk default branches.
OpenPOWER on IntegriCloud