Mercurial > sdl-ios-xcode
comparison src/video/vgl/SDL_vglevents.c @ 1336:3692456e7b0f
Use SDL_ prefixed versions of C library functions.
FIXME:
Change #include <stdlib.h> to #include "SDL_stdlib.h"
Change #include <string.h> to #include "SDL_string.h"
Make sure nothing else broke because of this...
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 07 Feb 2006 06:59:48 +0000 |
parents | c9b51268668f |
children | 19418e4422cb |
comparison
equal
deleted
inserted
replaced
1335:c39265384763 | 1336:3692456e7b0f |
---|---|
52 | 52 |
53 FIXME: Add keyboard LED handling code | 53 FIXME: Add keyboard LED handling code |
54 */ | 54 */ |
55 int VGL_initkeymaps(int fd) | 55 int VGL_initkeymaps(int fd) |
56 { | 56 { |
57 vga_keymap = malloc(sizeof(keymap_t)); | 57 vga_keymap = SDL_malloc(sizeof(keymap_t)); |
58 if ( ! vga_keymap ) { | 58 if ( ! vga_keymap ) { |
59 SDL_OutOfMemory(); | 59 SDL_OutOfMemory(); |
60 return(-1); | 60 return(-1); |
61 } | 61 } |
62 if (ioctl(fd, GIO_KEYMAP, vga_keymap) == -1) { | 62 if (ioctl(fd, GIO_KEYMAP, vga_keymap) == -1) { |
63 free(vga_keymap); | 63 SDL_free(vga_keymap); |
64 vga_keymap = NULL; | 64 vga_keymap = NULL; |
65 SDL_SetError("Unable to get keyboard map"); | 65 SDL_SetError("Unable to get keyboard map"); |
66 return(-1); | 66 return(-1); |
67 } | 67 } |
68 return(0); | 68 return(0); |