aboutsummaryrefslogtreecommitdiffstats
path: root/extension/rwarray.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-08-17 12:38:04 +0300
committerArnold D. Robbins <arnold@skeeve.com>2012-08-17 12:38:04 +0300
commite6b05afd9971b457c0b46907a91185b66be8ff4e (patch)
treee7d3b6fce47a2ac7b32cdf923ceb6e50db9fe441 /extension/rwarray.awk
parent3b23e177cd166e96c700379491b4a99bddf9aa4d (diff)
parent76cc4d241f328876b18e48639d631823c3d304d6 (diff)
downloadegawk-e6b05afd9971b457c0b46907a91185b66be8ff4e.tar.gz
egawk-e6b05afd9971b457c0b46907a91185b66be8ff4e.tar.bz2
egawk-e6b05afd9971b457c0b46907a91185b66be8ff4e.zip
Merge branch 'extgawk'
Diffstat (limited to 'extension/rwarray.awk')
-rw-r--r--extension/rwarray.awk28
1 files changed, 0 insertions, 28 deletions
diff --git a/extension/rwarray.awk b/extension/rwarray.awk
deleted file mode 100644
index 1057b396..00000000
--- a/extension/rwarray.awk
+++ /dev/null
@@ -1,28 +0,0 @@
-BEGIN {
- extension("./rwarray.so","dlload")
-
- while ((getline word < "/usr/share/dict/words") > 0)
- dict[word] = word word
-
- for (i in dict)
- printf("dict[%s] = %s\n", i, dict[i]) > "orig.out"
- close("orig.out");
-
- writea("orig.bin", dict)
-
- reada("orig.bin", dict)
-
- for (i in dict)
- printf("dict[%s] = %s\n", i, dict[i]) > "new.out"
- close("new.out");
-
- ret = system("cmp orig.out new.out")
-
- if (ret == 0)
- print "old and new are equal - GOOD"
- else
- print "old and new are not equal - BAD"
-
- if (ret == 0 && !("keepit" in ENVIRON))
- system("rm orig.bin orig.out new.out")
-}