From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KlSsy-00065e-Np for qemu-devel@nongnu.org; Thu, 02 Oct 2008 14:26:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KlSsx-00064i-ON for qemu-devel@nongnu.org; Thu, 02 Oct 2008 14:26:48 -0400 Received: from [199.232.76.173] (port=40856 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KlSsx-00064X-H9 for qemu-devel@nongnu.org; Thu, 02 Oct 2008 14:26:47 -0400 Received: from savannah.gnu.org ([199.232.41.3]:32943 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KlSsw-0000uW-TL for qemu-devel@nongnu.org; Thu, 02 Oct 2008 14:26:47 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KlSsv-0006L8-1z for qemu-devel@nongnu.org; Thu, 02 Oct 2008 18:26:45 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KlSst-0006Kd-SW for qemu-devel@nongnu.org; Thu, 02 Oct 2008 18:26:44 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Thu, 02 Oct 2008 18:26:43 +0000 Subject: [Qemu-devel] [5396] Make keysym tables const Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5396 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5396 Author: blueswir1 Date: 2008-10-02 18:26:42 +0000 (Thu, 02 Oct 2008) Log Message: ----------- Make keysym tables const Modified Paths: -------------- trunk/curses_keys.h trunk/keymaps.c trunk/sdl_keysym.h trunk/vnc_keysym.h Modified: trunk/curses_keys.h =================================================================== --- trunk/curses_keys.h 2008-10-02 18:24:21 UTC (rev 5395) +++ trunk/curses_keys.h 2008-10-02 18:26:42 UTC (rev 5396) @@ -37,7 +37,7 @@ #define CURSES_KEYS KEY_MAX /* KEY_MAX defined in */ -static int curses2keycode[CURSES_KEYS] = { +static const int curses2keycode[CURSES_KEYS] = { [0 ... (CURSES_KEYS - 1)] = -1, [0x01b] = 1, /* Escape */ @@ -216,7 +216,7 @@ }; -static int curses2keysym[CURSES_KEYS] = { +static const int curses2keysym[CURSES_KEYS] = { [0 ... (CURSES_KEYS - 1)] = -1, ['\n'] = '\n', @@ -244,7 +244,7 @@ int keysym; } name2keysym_t; -static name2keysym_t name2keysym[] = { +static const name2keysym_t name2keysym[] = { /* Plain ASCII */ { "space", 0x020 }, { "exclam", 0x021 }, Modified: trunk/keymaps.c =================================================================== --- trunk/keymaps.c 2008-10-02 18:24:21 UTC (rev 5395) +++ trunk/keymaps.c 2008-10-02 18:26:42 UTC (rev 5396) @@ -24,7 +24,7 @@ static int get_keysym(const char *name) { - name2keysym_t *p; + const name2keysym_t *p; for(p = name2keysym; p->name != NULL; p++) { if (!strcmp(p->name, name)) return p->keysym; Modified: trunk/sdl_keysym.h =================================================================== --- trunk/sdl_keysym.h 2008-10-02 18:24:21 UTC (rev 5395) +++ trunk/sdl_keysym.h 2008-10-02 18:26:42 UTC (rev 5396) @@ -2,7 +2,7 @@ const char* name; int keysym; } name2keysym_t; -static name2keysym_t name2keysym[]={ +static const name2keysym_t name2keysym[]={ /* ascii */ { "space", 0x020}, { "exclam", 0x021}, Modified: trunk/vnc_keysym.h =================================================================== --- trunk/vnc_keysym.h 2008-10-02 18:24:21 UTC (rev 5395) +++ trunk/vnc_keysym.h 2008-10-02 18:26:42 UTC (rev 5396) @@ -2,7 +2,7 @@ const char* name; int keysym; } name2keysym_t; -static name2keysym_t name2keysym[]={ +static const name2keysym_t name2keysym[]={ /* ascii */ { "space", 0x020}, { "exclam", 0x021},