summaryrefslogtreecommitdiffstats
path: root/usr.bin/m4/expr.c
Commit message (Collapse)AuthorAgeFilesLines
* More -Wmissing-variable-declarations fixes.ed2012-10-201-1/+1
| | | | | | | | | | In addition to adding missing `static' keywords: - bin/dd: Pull in `extern.h' to guarantee consistency with source file. - libexec/rpc.rusersd: Move shared globals into an extern.h. - libexec/talkd: Move `debug' and `hostname' into extern.h. - usr.bin/cksum: Put counters in extern.h, as they are used by ckdist/mtree. - usr.bin/m4: Move `end_result' into extern.h. - usr.sbin/services_mkdb: Move shared globals into an extern.h.
* Synchronize with laster version of m4 from OpenBSD and NetBSDbapt2011-11-281-621/+28
| | | | | | | | This bring better compatibility with gnum4 Reviewed by: cognet Approved by: cognet Obtained from: OpenBSD, NetBSD
* Fix build of m4 with WARNS=6.ed2011-10-161-10/+9
| | | | Change the parser; rename `exp' to `exponent' not to collide with exp(3).
* 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
* 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
* When we appear to want a signed value from sizeof(), use ssize_t in the cast,jmallett2002-10-301-1/+1
| | | | rather than int.
* Kill extraneous whitespace.jmallett2002-07-151-5/+5
|
* Functions declared as <type> <identifier>(<nil>) should be declared asjmallett2002-07-141-15/+15
| | | | <type> <identifier>(<void-type>) in ANSI C.
* 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-031-2/+10
| | | | | | Add __FBSDID() properly. Requested by: bde, mike
* 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-011-11/+9
|
* Crank WARNS.jmallett2002-04-201-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | 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-42/+86
| | | | | | | $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
* remove __Pimp2002-03-221-16/+18
|
* Remove trailing whitespace.rgrimes1995-05-301-3/+3
|
* 1) kill temp diver upon exitache1995-04-161-129/+77
| | | | | 2) add logical ops, fix ! precedence, implement unary +, fix exp Obtained from: NetBSD
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+626
OpenPOWER on IntegriCloud