aboutsummaryrefslogtreecommitdiffstats
path: root/test/xref.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-01-27 22:24:13 +0200
committerArnold D. Robbins <arnold@skeeve.com>2011-01-27 22:24:13 +0200
commita5f230f0ac5eb4f1d720ba743bc2538057cd8258 (patch)
treebb91507c55992e45097254813ecb0588109ea3d6 /test/xref.awk
parenta5966cb7a8ad989840ec91a9f0bd1725a68d77b7 (diff)
downloadegawk-a5f230f0ac5eb4f1d720ba743bc2538057cd8258.tar.gz
egawk-a5f230f0ac5eb4f1d720ba743bc2538057cd8258.tar.bz2
egawk-a5f230f0ac5eb4f1d720ba743bc2538057cd8258.zip
More fixes.
Diffstat (limited to 'test/xref.awk')
-rw-r--r--test/xref.awk6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/xref.awk b/test/xref.awk
index 5c3f192b..6e562913 100644
--- a/test/xref.awk
+++ b/test/xref.awk
@@ -94,10 +94,10 @@
function asplit(str,arr,fs, n) { n = split(str,temp_asplit,fs)
for ( i = 1; i <= n; i++ ) arr[temp_asplit[i]]++ }
- function inarray(val,arr, j) {
+ function inarray(val,arr, j, tmp) {
for ( j in arr )
- if ( arr[j] == val ) return j
- return "" }
+ tmp[arr[j]]++
+ return (val in tmp) }
function lex() {