diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
commit | 560378aaca1784ba19806a0414a32b20c744de39 (patch) | |
tree | ce0dfd7c3febf2a1adc7603d1019a8be2083c415 /kjs/create_hash_table | |
parent | d4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff) | |
download | tdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip |
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kjs/create_hash_table')
-rwxr-xr-x | kjs/create_hash_table | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kjs/create_hash_table b/kjs/create_hash_table index a7df5eddf..c8c4d1ff9 100755 --- a/kjs/create_hash_table +++ b/kjs/create_hash_table @@ -7,10 +7,10 @@ $file = $ARGV[0]; shift; -my $findSize = 0; +my $tqfindSize = 0; my $includelookup = 0; # Use -s as second argument to make it try many hash sizes -$findSize = 1 if (defined($ARGV[0]) && $ARGV[0] eq "-s"); +$tqfindSize = 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($findSize) { + if($tqfindSize) { 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 ($findSize) { + if ($tqfindSize) { my $emptycount = 0; foreach $entry (@table) { $emptycount++ if (!defined($entry)); |