filename | src/drivers/genkeymap.pl |
changeset | 917:2146dd5529fd |
prev | 681:1755a126b109 |
next | 1183:425d9de21c78 |
author | nkeynes |
date | Fri Jul 31 13:45:32 2009 +1000 (14 years ago) |
permissions | -rw-r--r-- |
last change | Remove or change the level of a bunch of INFO messages that shouldn't really be INFO level |
file | annotate | diff | log | raw |
1.1 --- a/src/drivers/genkeymap.pl Sun Jun 01 00:47:45 2008 +00001.2 +++ b/src/drivers/genkeymap.pl Fri Jul 31 13:45:32 2009 +10001.3 @@ -27,7 +27,7 @@1.4 print "const gchar *${name}_keysyms_by_keycode[128] = { ";1.5 for( $i=0; $i < 128; $i++ ) {1.6 if( $i != 0 ) { print ", "; }1.7 - if( $hash{$i} ) {1.8 + if( defined($hash{$i}) ) {1.9 print "\"$hash{$i}\"";1.10 } else {1.11 print "NULL";1.12 @@ -38,7 +38,7 @@1.13 print "const uint16_t ${name}_keycode_to_dckeysym[128] = { ";1.14 for( $i=0; $i<128; $i++ ) {1.15 if( $i != 0 ) { print ", "; }1.16 - if( $hash{$i} && $dcsyms{$hash{$i}} ) {1.17 + if( defined($hash{$i}) && $dcsyms{$hash{$i}} ) {1.18 print $dcsyms{$hash{$i}};1.19 } else {1.20 print "DCKB_NONE";
.