christos
ac0ec62cd0
PR/40689: Nicolas Joly: awk(1) trashes memory with RE and ^ anchor
...
Another place to special-case HAT.
2009-06-21 20:08:44 +00:00
christos
88bda1cea2
don't use signed chars for no reason.
2008-11-25 18:40:26 +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
agc
7117be69ce
Fix a fairly obvious pasto which has been there since version 1.1 in 2001.
2008-10-08 09:45:47 +00:00
christos
f7e42af424
PR/38737: cheusov at tut dot by: Don't build the character class table
...
starting at 0, because will always be treated as the empty string DuH!
2008-05-25 16:28:25 +00:00
christos
4459d9696e
update to 20070501
2008-05-25 14:51:49 +00:00
christos
cc3156aaa2
Change the meaning of state count to be the number allocated (like c does)
...
instead of the highest number allocated (fortran). Fixes off-by-one errors.
Also change the overallocation of n * 5 / 4 + 10 to just n + 10.
2006-07-25 20:52:57 +00:00
christos
80f0134faf
- widen gototab so NCHARS states fits.
...
- don't allocate more space than we need.
From Aleksey Cheusov
2006-06-26 13:10:47 +00:00
christos
a504bbc8d8
Don't forget to free gototab[i]; pointed out by Aleksey Cheusov
2006-06-25 22:37:45 +00:00
christos
ab7ad9579e
PR/33392: Aleksey Cheusov: Incorrect matching due to hard-coded limit in
...
number of states. Adapted from patch supplied.
2006-06-22 21:25:14 +00:00
christos
6dccf87632
Avoid overflowing static array which c == HAT.
2006-03-19 17:41:55 +00:00
christos
73a77c6016
Coverity CID 1476: Add assertion before index operation.
2006-03-18 22:35:42 +00:00
jdolecek
e6b9888ace
resolve conflicts
2005-07-02 20:10:34 +00:00
jdolecek
eff7cd8291
bump the regular expression cache from 20 expressions to 128
2003-10-26 13:39:38 +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
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