History log of /src/usr.bin/m4/expr.c |
Revision | | Date | Author | Comments |
1.21 |
| 26-Mar-2019 |
kre | Use correct printf format for (struct input_file *)->lineno SHould unbreak 32 bit host builds.
|
1.20 |
| 26-Mar-2019 |
christos | print the source line and file where the error happened.
|
1.19 |
| 26-Oct-2009 |
christos | branches: 1.19.46; resolve conflicts.
|
1.18 |
| 11-May-2006 |
mrg | exp() -> m4_exp().
|
1.17 |
| 06-Oct-2005 |
drochner | merge in FreeBSD's rev.1.14: Fix m4 to properly handle bitwise operators &, ^, and |. Fix operator precedence. Add short-circuit evaluation.
|
1.16 |
| 20-Jun-2004 |
jmc | Completely rework how tools/compat is done. Purge all uses/references to _NETBSD_SOURCE as this makes cross building from older/newer versions of NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to only use POSIX code in all places (or when reasonable test w. configure and provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86 NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
|
1.15 |
| 07-Aug-2003 |
agc | branches: 1.15.2; Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
|
1.14 |
| 31-Jan-2002 |
tv | Protect __RCSID and __COPYRIGHT from being invoked if not defined.
|
1.13 |
| 21-Jan-2002 |
tv | Make compilable from src/tools/m4 on non-NetBSD hosts.
|
1.12 |
| 14-Nov-2001 |
tv | Pull in various changes from OpenBSD, most from Marc Espie, including: * Provide some GNUisms as extensions. * Provide dynamically growable string space. * Make define(defn(foo)) work correctly for builtins. (The current version is supposed to be capable of satisfying autoconf.)
All still relevant NetBSD changes have been preserved in this version, and formatting and style fixes have been applied in various places.
Thanks to Masao Uebayashi <uebayasi@soum.co.jp> for pointing this out.
|
1.11 |
| 05-Mar-2001 |
wiz | Sprinkle some const, and rename a shadow-variable.
|
1.10 |
| 17-Oct-2000 |
jdolecek | Fix unconsistent spacing/tabs. Adresses bin/11158 by Nathan Ahlstrom.
|
1.9 |
| 14-Apr-1999 |
matthias | make eval() recognize hexadecimal constant as specified in the man page.
|
1.8 |
| 19-Oct-1997 |
lukem | branches: 1.8.4; WARNSify, fix .Nm usage, getopt returns -1 not EOF, deprecate register
|
1.7 |
| 28-Sep-1995 |
tls | Sync with 4.4BSD-Lite2
|
1.6 |
| 14-Apr-1995 |
mycroft | There were several places where m4 did not conform to the specification in `The M4 Macro Processor', by Kernighan and Ritchie.
* `|' and `||' are both logical or. There is no binary or. * `&' and `&&' are both logical and. There is no binary and. * `!' has a much higher precedence. * The equal and relation operators have the same precedence. * `**' is implemented, and `^' is for exponentation (not xor). * Unary `+' in implemented.
I've coded exponentiation to return what appears to be the same results that other versions of m4 return.
|
1.5 |
| 19-Jun-1994 |
glass | upgrade to 4.4-lite m4. no local changes of note
|
1.4 |
| 30-Oct-1993 |
glass | latest m4 from ozan. now does the right thing w/respect to sendmail
|
1.3 |
| 02-Aug-1993 |
mycroft | Add RCS identifiers, remove some completely useless RCS logs and patchkit headers, and a few other insignificant changes.
|
1.2 |
| 18-Jun-1993 |
glass | baseline of new version of m4 supplied by Ozan Yigit, original author of the broken m4 we had. This is his stuff virgin + our Makefile.
|
1.1 |
| 21-Mar-1993 |
cgd | branches: 1.1.1; Initial revision
|
1.1.1.3 |
| 26-Oct-2009 |
christos | Import new m4 from OpenBSD.
|
1.1.1.2 |
| 28-Sep-1995 |
tls | imported from 44lite2
|
1.1.1.1 |
| 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|
1.8.4.1 |
| 14-Apr-1999 |
matthias | Pull up revision 1.9 from trunk (recognize hexadecimal constants in eval()).
|
1.15.2.1 |
| 22-Jun-2004 |
tron | Pull up revision 1.16 (requested by jmc in ticket #527): Completely rework how tools/compat is done. Purge all uses/references to _NETBSD_SOURCE as this makes cross building from older/newer versions of NetBSD harder, not easier (and also makes the resulting tools 'different') Wrap all required code with the inclusion of nbtool_config.h, attempt to only use POSIX code in all places (or when reasonable test w. configure and provide definitions: ala u_int, etc). Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86 NetBSD current (x86 and amd64) and Solaris 9. Fixes PR's: PR#17762 PR#25944
|
1.19.46.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|