comparison src/main/macos/SDL_main.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
comparison
equal deleted inserted replaced
1335:c39265384763 1336:3692456e7b0f
587 memcpy (commandLine + appNameText[0] + 1, prefs.command_line + 1, prefs.command_line[0]); 587 memcpy (commandLine + appNameText[0] + 1, prefs.command_line + 1, prefs.command_line[0]);
588 commandLine[ appNameText[0] + 1 + prefs.command_line[0] ] = '\0'; 588 commandLine[ appNameText[0] + 1 + prefs.command_line[0] ] = '\0';
589 589
590 /* Parse C-string into argv and argc */ 590 /* Parse C-string into argv and argc */
591 nargs = ParseCommandLine (commandLine, NULL); 591 nargs = ParseCommandLine (commandLine, NULL);
592 args = (char **)malloc((nargs+1)*(sizeof *args)); 592 args = (char **)SDL_malloc((nargs+1)*(sizeof *args));
593 if ( args == NULL ) { 593 if ( args == NULL ) {
594 exit(-1); 594 exit(-1);
595 } 595 }
596 ParseCommandLine (commandLine, args); 596 ParseCommandLine (commandLine, args);
597 597