"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/functab4.awk" between
gawk-5.0.1.tar.xz and gawk-5.1.0.tar.xz

About: GNU awk - pattern scanning and processing language.

functab4.awk  (gawk-5.0.1.tar.xz):functab4.awk  (gawk-5.1.0.tar.xz)
skipping to change at line 12 skipping to change at line 12
function foo() function foo()
{ {
print "foo!" print "foo!"
} }
BEGIN { BEGIN {
f = FUNCTAB["foo"] f = FUNCTAB["foo"]
@f() @f()
ret1 = stat(".", data1) # Do the two stats one after the other, and use ".." instead
print "ret1 =", ret1 # of "." to avoid race conditions seen using ".".
ret1 = stat("..", data1)
f = "stat" f = "stat"
ret2 = @f(".", data2) ret2 = @f("..", data2)
print "ret1 =", ret1
print "ret2 =", ret2 print "ret2 =", ret2
problem = 0 problem = 0
for (i in data1) { for (i in data1) {
if (! isarray(data1[i])) { if (! isarray(data1[i])) {
# print i, data1[i] # print i, data1[i]
if (! (i in data2) || data1[i] != data2[i]) { if (! (i in data2) || data1[i] != data2[i]) {
printf("mismatch element \"%s\"\n", i) printf("mismatch element \"%s\"\n", i)
problems++ problems++
} }
 End of changes. 2 change blocks. 
3 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)