diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-05-16 09:37:22 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-05-16 09:37:22 +0000 |
commit | b15a6af3d29ad844bdd44eb6181d069958afab5b (patch) | |
tree | 7c59b84724c59a3f8df76902841f19c36837f5d6 /riscos/wimp_event.c | |
parent | baca6796eb96fac3cf79400f9cdb588b49f78930 (diff) | |
download | netsurf-b15a6af3d29ad844bdd44eb6181d069958afab5b.tar.gz netsurf-b15a6af3d29ad844bdd44eb6181d069958afab5b.tar.bz2 |
s/wchar_t/uint32_t/g
We always assumed that the keycode type was 32bits wide, anyway. wchar_t isn't guaranteed to be that big, so isn't remotely portable.
svn path=/trunk/netsurf/; revision=4165
Diffstat (limited to 'riscos/wimp_event.c')
-rw-r--r-- | riscos/wimp_event.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/riscos/wimp_event.c b/riscos/wimp_event.c index 243df6829..951c8e96b 100644 --- a/riscos/wimp_event.c +++ b/riscos/wimp_event.c @@ -21,6 +21,7 @@ */
#include <assert.h>
+#include <inttypes.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
@@ -653,13 +654,13 @@ void ro_gui_wimp_event_ok_click(struct event_window *window, wimp_mouse_state st bool ro_gui_wimp_event_keypress(wimp_key *key) {
static int *ucstable = NULL;
static int alphabet = 0;
- static wchar_t wc = 0; /* buffer for UTF8 alphabet */
+ static uint32_t wc = 0; /* buffer for UTF8 alphabet */
static int shift = 0;
struct event_window *window;
struct icon_event *event;
wimp_pointer pointer;
wimp_key k;
- wchar_t c = (wchar_t)key->c;
+ uint32_t c = (uint32_t) key->c;
int t_alphabet;
os_error *error;
|