| 257 | } |
| 258 | |
| 259 | void AddPairToHash(const char* cstr, int id) { |
| 260 | hash_to_command.resize(hash_to_command.size() + 1); |
| 261 | HashInt& new_pair = hash_to_command.back(); |
| 262 | new_pair.first = djb2_string_hash(cstr); |
| 263 | new_pair.second = id; |
| 264 | } |
| 265 | |
| 266 | int CommandLengthCompare(const void* a, const void* b) { |
| 267 | return (*((Command**)b))->num_key_events - (*((Command**)a))->num_key_events; |
no test coverage detected