src/main/windows/SDL_windows_main.c
changeset 7450 29654d59c439
parent 7356 d1a0bbe64f15
child 7828 1451063c8ecd
equal deleted inserted replaced
7449:5148cfb37948 7450:29654d59c439
    52     int argc, last_argc;
    52     int argc, last_argc;
    53 
    53 
    54     argc = last_argc = 0;
    54     argc = last_argc = 0;
    55     for (bufp = cmdline; *bufp;) {
    55     for (bufp = cmdline; *bufp;) {
    56         /* Skip leading whitespace */
    56         /* Skip leading whitespace */
    57         while (isspace(*bufp)) {
    57         while (SDL_isspace(*bufp)) {
    58             ++bufp;
    58             ++bufp;
    59         }
    59         }
    60         /* Skip over argument */
    60         /* Skip over argument */
    61         if (*bufp == '"') {
    61         if (*bufp == '"') {
    62             ++bufp;
    62             ++bufp;
    78                     argv[argc] = bufp;
    78                     argv[argc] = bufp;
    79                 }
    79                 }
    80                 ++argc;
    80                 ++argc;
    81             }
    81             }
    82             /* Skip over word */
    82             /* Skip over word */
    83             while (*bufp && !isspace(*bufp)) {
    83             while (*bufp && !SDL_isspace(*bufp)) {
    84                 ++bufp;
    84                 ++bufp;
    85             }
    85             }
    86         }
    86         }
    87         if (*bufp) {
    87         if (*bufp) {
    88             if (argv) {
    88             if (argv) {