christos
dc05b09461
PR/30294: John Darrow: nawk doesn't handle RS as a RE but as a single character
2009-06-20 23:23:12 +00:00
njoly
56695ef522
In is_number(), do not check strtod() result against HUGE_VAL which
...
will result in a SIGFPE on non IEEE hardware. Instead, check the
provided buffer for "nan" string.
This make native build work again on alpha.
2009-03-12 13:04:01 +00:00
christos
e5fb0732fe
Use siginfo to print more details about the sigfpe.
2009-03-01 23:30:52 +00:00
apb
1dc9ff828c
In preparation for building awk as a host tool, add
...
#if HAVE_NBTOOL_CONFIG_H #include "nbtool_config.h"
2008-10-19 19:33:47 +00:00
christos
8c8950af64
PR/39501: David Holland: Don't print the remainder of the line in the error
...
context because it can confuse input parsing in warnings. A full explanation
is in the code.
2008-09-09 21:47:34 +00:00
joerg
f628ddd81d
As dholland pointed out, don't leak memory if FS is resized multiple
...
times.
2008-08-26 20:25:19 +00:00
joerg
479fba4b1b
Don't use strlen to check if the length is at larger than 1, check the
...
first two chars directly.
Don't fail if FS is longer than 9 characters, but allocate a copy
dynamically and fail if that can't be done. Make inputFS static.
OK martin, bjs
2008-08-26 14:43:18 +00:00
christos
e8c53cdebd
sprintf -> snprintf
2008-07-12 19:57:59 +00:00
christos
4459d9696e
update to 20070501
2008-05-25 14:51:49 +00:00
jdolecek
e2ba6dc38f
back-off 'use bounded string op' commit of 2003/08/13 - no real problem
...
has been fixed by it, but it introduced at least one bug
don't do any more of such gratuitous changes here, please
2005-07-03 15:18:11 +00:00
jdolecek
e6b9888ace
resolve conflicts
2005-07-02 20:10:34 +00:00
he
a80853ef7a
Make nawk retain the text from the last line of the input as well as
...
the derived variables (fields & NF) under the END pattern. This
implicitly complies with the SUSv2 specification at
http://www.opengroup.org/onlinepubs/007908799/xcu/awk.html
which explicitly says that NF and NR must retain their values from
the last record seen. Fixes PR#29659.
2005-03-23 17:24:41 +00:00
jdolecek
a45cfadaff
cleanup some (uschar **) to (char **) casts which break
...
strict aliasing rules, so that this builds with gcc 3.3; this was done
by changing variables & function arguments to uschar where appropriate
2003-10-26 11:34:23 +00:00
itojun
e1e0321817
use bounded string op
2003-08-13 02:51:20 +00:00
jdolecek
19de07894e
Merge nawk version 20030729 changes, and resolve conflicts.
2003-08-02 22:41:59 +00:00
jdolecek
e82124d4fa
adapt to NetBSD build environment, constify a little
2001-01-23 22:26:02 +00:00
jdolecek
adb545a48e
Import nawk 2000/11/15, try #2 .
...
This is the original New AWK from AT&T Labs as described in "The
AWK Programming Language", by Al Aho, Brian Kernighan, and Peter
Weinberger.
This would eventually replace gawk in our tree in future.
2001-01-23 22:14:07 +00:00