summaryrefslogtreecommitdiffstats
path: root/kjs/create_hash_table
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-07 03:45:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-07 03:45:53 +0000
commit10308be19ef7fa44699562cc75946e7ea1fdf6b9 (patch)
tree4bc444c00a79e88105f2cfce5b6209994c413ca0 /kjs/create_hash_table
parent307136d8eef0ba133b78ceee8e901138d4c996a1 (diff)
downloadtdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.tar.gz
tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.zip
Revert automated changes
Sorry guys, they are just not ready for prime time Work will continue as always git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1212479 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kjs/create_hash_table')
-rwxr-xr-xkjs/create_hash_table8
1 files changed, 4 insertions, 4 deletions
diff --git a/kjs/create_hash_table b/kjs/create_hash_table
index c8c4d1ff9..a7df5eddf 100755
--- a/kjs/create_hash_table
+++ b/kjs/create_hash_table
@@ -7,10 +7,10 @@
$file = $ARGV[0];
shift;
-my $tqfindSize = 0;
+my $findSize = 0;
my $includelookup = 0;
# Use -s as second argument to make it try many hash sizes
-$tqfindSize = 1 if (defined($ARGV[0]) && $ARGV[0] eq "-s");
+$findSize = 1 if (defined($ARGV[0]) && $ARGV[0] eq "-s");
# Use -i as second argument to make it include "lookup.h"
$includelookup = 1 if (defined($ARGV[0]) && $ARGV[0] eq "-i");
print STDERR "Creating hashtable for $file\n";
@@ -49,7 +49,7 @@ while (<IN>) {
}
} elsif (/^\@end\s*$/ && $inside) {
- if($tqfindSize) {
+ if($findSize) {
my $entriesnum=@keys;
print STDERR "Table: $name $entriesnum entries\n";
for( $i=3 ; $i<79 ; ++$i) { $hashsize=$i ; calcTable(); }
@@ -114,7 +114,7 @@ sub calcTable() {
}
#print STDERR "After loop: size=$size table=".($#table+1)."\n";
- if ($tqfindSize) {
+ if ($findSize) {
my $emptycount = 0;
foreach $entry (@table) {
$emptycount++ if (!defined($entry));