summaryrefslogtreecommitdiffstats
path: root/usr.bin/m4
Commit message (Collapse)AuthorAgeFilesLines
* Use NULL instead of 0 for the return value of fopen().kevlo2007-09-211-1/+1
| | | | Approved by: re (kensmith)
* Let bsd.prog.mk set SRCS and MAN to their default values.ru2005-01-281-1/+0
|
* Added the EXIT STATUS section where appropriate.ru2005-01-171-1/+1
|
* Store a pointer to "null" in struct ndblock's defn member instead of atjr2004-08-163-6/+6
| | | | | | | | 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
|
* Document missing multibyte character support in utilities specifiedtjr2004-07-031-1/+5
| | | | by POSIX.
* Mechanically kill hard sentence breaks.ru2004-07-021-1/+1
|
* Don't depend on NULL's expansion being a pointer, cast it before it is passedstefanf2004-05-181-1/+1
| | | | | | to variadic functions. Approved by: das (mentor)
* Fix m4 to properly handle bitwise operators &, ^, and |. Fix operatorsmkelly2004-05-011-154/+173
| | | | | | | | precedence. Add short-circuit evaluation. PR: bin/60914 Reviewed by: petef Discussed with: jeff, petef
* m4 script to test the functionality of math operators in eval().smkelly2004-05-011-0/+181
| | | | Submitted by: K S Braunsdorf <sed@ksb.npcguild.org>
* Use .St -susv2 rather than "The Single UNIX specification".maxim2003-12-101-2/+3
| | | | Submitted by: osa
* The .Nm utilitycharnier2003-06-081-3/+5
|
* Flush streams before calling system() so that the output appears in thetjr2003-05-011-1/+3
| | | | | right place in the output stream when redirected to a file (when full buffering is enabled). Noticed by schweikh on freebsd-standards.
* Correct typo in COMPATIBILITY section: s/esycmd/esyscmdschweikh2003-04-231-1/+1
|
* english(4) police.schweikh2002-12-271-1/+1
|
* When we appear to want a signed value from sizeof(), use ssize_t in the cast,jmallett2002-10-301-1/+1
| | | | rather than int.
* 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-1510-90/+90
|
* 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-145-27/+27
| | | | <type> <identifier>(<void-type>) in ANSI C.
* Remove prototype for main().jmallett2002-07-141-2/+0
|
* Whitespace fixes to line-up EOL escapes whose right-most extraints changed injmallett2002-06-201-15/+15
| | | | the previous revision due to the biggest line changing.
* Cast sp to uintptr_t when doing a compare of it to STACKMAX which is a size_t.jmallett2002-06-202-5/+5
| | | | This messes up some indentation in mdef.h for some macros.
* Note that this appeared at least as early as PWB UNIX.jmallett2002-06-101-2/+1
| | | | Use the literal string 'PWB UNIX', as we still have no .At macro for it.
* Make the manpage consistent with the code on the subject of comments, as tojmallett2002-06-031-1/+4
| | | | | | | | not change the code to always do the "GNU" thing, as it's possible people rely on BSD m4(1) traditionally resetting comment characters in case of no arguments to the changecom function. PR: bin/17480 (I think this satisfies the problem report)
* mdoc(7) police: tidy up the markup.ru2002-05-301-84/+101
|
* Add Standards, Diagnostics and History sections.tjr2002-05-261-0/+17
|
* If a file operand cannot be processed, go on to process any remaining filestjr2002-05-261-3/+8
| | | | but exit non-zero.
* 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
| |
OpenPOWER on IntegriCloud