Mercurial > sdl-ios-xcode
diff src/video/ps2gs/SDL_gsevents.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 | 604d73db6802 |
line wrap: on
line diff
--- a/src/video/ps2gs/SDL_gsevents.c Mon Feb 06 17:28:04 2006 +0000 +++ b/src/video/ps2gs/SDL_gsevents.c Tue Feb 07 06:59:48 2006 +0000 @@ -78,7 +78,7 @@ /* Load all the keysym mappings */ for ( map=0; map<NUM_VGAKEYMAPS; ++map ) { - memset(vga_keymap[map], 0, NR_KEYS*sizeof(Uint16)); + SDL_memset(vga_keymap[map], 0, NR_KEYS*sizeof(Uint16)); for ( i=0; i<NR_KEYS; ++i ) { entry.kb_table = map; entry.kb_index = i; @@ -338,7 +338,7 @@ if ( status ) { name[0] = '\0'; fscanf(status, "Name: %s", name); - if ( strcmp(name, wanted_name) == 0 ) { + if ( SDL_strcmp(name, wanted_name) == 0 ) { pid = atoi(entry->d_name); } fclose(status); @@ -373,10 +373,10 @@ len = read(cmdline, args, sizeof(args)); arg = args; while ( len > 0 ) { - if ( strcmp(arg, "-R") == 0 ) { + if ( SDL_strcmp(arg, "-R") == 0 ) { available = 1; } - arglen = strlen(arg)+1; + arglen = SDL_strlen(arg)+1; len -= arglen; arg += arglen; } @@ -435,7 +435,7 @@ imps2 = 0; - if ( getenv("SDL_MOUSEDEV_IMPS2") ) { + if ( SDL_getenv("SDL_MOUSEDEV_IMPS2") ) { imps2 = 1; } if ( ! imps2 ) { @@ -487,8 +487,8 @@ const char *mousedev; const char *mousedrv; - mousedrv = getenv("SDL_MOUSEDRV"); - mousedev = getenv("SDL_MOUSEDEV"); + mousedrv = SDL_getenv("SDL_MOUSEDRV"); + mousedev = SDL_getenv("SDL_MOUSEDEV"); mouse_fd = -1; /* STD MICE */ @@ -752,7 +752,7 @@ GS_vgamousecallback(button, dx, dy); } if ( i < nread ) { - memcpy(mousebuf, &mousebuf[i], (nread-i)); + SDL_memcpy(mousebuf, &mousebuf[i], (nread-i)); start = (nread-i); } else { start = 0;