aboutsummaryrefslogtreecommitdiffstats
path: root/demos/Win32-MinGW/chcore.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-07-18 11:50:53 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-07-18 11:50:53 +0000
commit6d390a7c46baaea0ca99efb09fb872ceea37623e (patch)
tree37ff3db871a0092d9ddabce64216ccccbab30b8e /demos/Win32-MinGW/chcore.c
parent6ce958c41e1e980182c6648537e334c587cb2a27 (diff)
downloadChibiOS-6d390a7c46baaea0ca99efb09fb872ceea37623e.tar.gz
ChibiOS-6d390a7c46baaea0ca99efb09fb872ceea37623e.tar.bz2
ChibiOS-6d390a7c46baaea0ca99efb09fb872ceea37623e.zip
Removed obsolete ST library files.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1062 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/Win32-MinGW/chcore.c')
0 files changed, 0 insertions, 0 deletions
14'>114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
/*
 * QEMU keylayout reader: read rdesktop style keylaouts
 *
 * Copyright (c) 2004,2005 Johannes E. Schindelin
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

#include <ctype.h>

#ifdef KEYBOARD_IGNORE_CASE
#define STRCMP strcasecmp
#else
#define STRCMP strcmp
#endif

/* binary search through nameToKeysym */
static int get_keysym(const char* name)
{
	int i1=-1,i2=sizeof(name2keysym)/sizeof(name2keysym_t),i3=i2/2,r;