christos
77b64f0a5c
PR/52516: Guy Incognito: Fix memory leak; setsymtab already calls tostring()
...
for the buffer, don't do it twice.
XXX: pullup-8
2017-09-01 07:01:06 +00:00
abhinav
f703bc6a87
Use literal for formatting the examples
...
Based on OpenBSD awk(1) man page.
Ok wiz@
2017-05-23 14:11:08 +00:00
shm
52ccb86d6c
PR/50199 - fix for strftime called with empty string.
...
Patch written by Juho Salminen
2015-11-03 14:15:08 +00:00
wiz
04c27f1642
Fix important typo, from Joachim Henke on netbsd-docs.
...
Bump date.
2015-04-06 14:36:41 +00:00
dholland
f6f4f5e81c
Change the argument names in the prototypes and discussion for
...
sub/gsub to match those in gensub. Noted by Kai-Uwe Eckhardt in
PR 48667.
2014-03-23 01:29:12 +00:00
roy
5d74ba14e6
Fix build with clang
2014-01-17 16:31:45 +00:00
christos
a2e4e15f91
PR/48448: David A. Holland: Avoid coredump by checking return code of
...
localtime(3)
2013-12-15 06:41:18 +00:00
mlelstv
9562031f49
Fix memory leak in gensub()
2013-10-27 10:06:01 +00:00
christos
49a7e4835b
remove unused variable
2013-10-20 21:35:46 +00:00
christos
5090c2e613
PR/47553: Aleksev Cheusov: awk segfault: NULL dereference.
2013-02-11 00:32:07 +00:00
christos
eeca57e31f
we define HAS_ISBLANK in the Makefile
2013-01-02 13:46:17 +00:00
christos
b30e7aec1f
remove useless cast.
2012-12-29 14:51:41 +00:00
christos
db7d489b44
merge 2012-12-20
2012-12-29 02:44:26 +00:00
christos
2616448878
from http://www.cs.princeton.edu/~bwk/btl.mirror/
2012-12-29 02:14:50 +00:00
christos
03f2d45a25
PR/47306: Aleksey Cheusov: Don't free strings of symbols where we maintain
...
pointers to.
2012-12-10 19:49:05 +00:00
joerg
c14f2d4ef8
Deal with optional HAVE_GCC.
2012-08-10 16:05:26 +00:00
christos
a08c0283e2
don't switch back LC_NUMERIC after parsing the command line, we always want
...
to format numbers in the C locale.
2012-03-12 18:17:12 +00:00
christos
7fffb381da
PR/46155: Miguel Piñeiro Jr: Fix RS processing. Apply the gawk-like patch
...
from the excellent PR. Many thanks for all the work you put on this,
explanation, tests, and patch!
2012-03-10 19:18:48 +00:00
christos
070df59c8a
- make decimal conversions use the maximum width integers available on the
...
architecture.
- make signed and unsigned code consistent.
2011-11-22 22:30:22 +00:00
joerg
ce5205bcbb
Use __dead
2011-09-16 16:09:03 +00:00
christos
4036596c74
document non-literal format strings
2011-08-16 10:45:37 +00:00
joerg
d745f33bcc
No longer needs -Wno-array-bounds with clang.
2011-08-09 13:06:31 +00:00
mrg
75e42fa7da
remove most of the remaining HAVE_GCC tests that are always true in
...
the modern world.
2011-06-20 07:43:56 +00:00
christos
abe8ec29d9
Handle string concatenation in terms:
...
'{ print "foo" > "file" ".txt"; }',
2011-05-28 15:13:04 +00:00
joerg
a216da57a6
Default to -Wno-sign-compare -Wno-pointer-sign for clang.
...
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
2011-05-26 12:56:24 +00:00
drochner
eefdc5052a
fix V->version flag
2011-04-20 10:10:32 +00:00
christos
305cf7b18b
PR/44876: Aleksey Cheusov: awk: incorrect return value of function srand()
...
Make it return the value of the previous random seed as the standard mandates.
2011-04-18 15:23:28 +00:00
drochner
5a190aa53b
fix bug introduced in rev. 1.3: need to set the string before
...
converting it into a numerical value, otherwise we might get junk or crash
2011-01-20 21:26:20 +00:00
drochner
7264233c30
avoid crash if certain operations are done before an input record is
...
read, ie in a BEGIN rule
2011-01-20 21:23:11 +00:00
mrg
d541f2b66d
reinstall awk.texi.
2010-12-13 06:30:44 +00:00
christos
bc03f5ba09
Don't build awk.info because matt removed it.
2010-12-12 19:01:03 +00:00
christos
b080945e93
PR/44063: Aleksey Cheusov: awk: setting NF doesn't change $i
...
http://www.opengroup.org/onlinepubs/009695399/utilities/awk.html
...
References to nonexistent fields (that is, fields after $NF),
shall evaluate to the uninitialized value.
2010-11-07 22:55:26 +00:00
christos
897c4f3091
remove the unused MAX_PFILE define from Aleksey Cheusov.
2010-10-18 15:58:05 +00:00
christos
7aa51b5177
PR/43981: Aleksey Cheusov: awk too small limit on number -f options
...
remove the limit
should we pullup to 5.x?
2010-10-17 22:12:22 +00:00
christos
39562c1e23
fix botched merge.
2010-08-27 16:49:47 +00:00
christos
76c7995b12
Install in /usr/bin
2010-08-26 16:21:25 +00:00
christos
8317f6d887
awk glue
2010-08-26 14:57:15 +00:00
christos
5642d0040b
Apply all our changes including newer fixes to WARNS?=4
2010-08-26 14:55:19 +00:00
christos
35f471cb95
imprort latest nawk
2010-08-26 14:53:14 +00:00