Browse Source

unix/main: Use builtin unichar_isdigit() in preference if libc's.

Less dependencies.
pull/1577/merge
Paul Sokolovsky 9 years ago
parent
commit
f882d53fcd
  1. 2
      unix/main.c

2
unix/main.c

@ -502,7 +502,7 @@ int main(int argc, char **argv) {
} else if (strcmp(argv[a], "-v") == 0) { } else if (strcmp(argv[a], "-v") == 0) {
mp_verbose_flag++; mp_verbose_flag++;
} else if (strncmp(argv[a], "-O", 2) == 0) { } else if (strncmp(argv[a], "-O", 2) == 0) {
if (isdigit(argv[a][2])) { if (unichar_isdigit(argv[a][2])) {
MP_STATE_VM(mp_optimise_value) = argv[a][2] & 0xf; MP_STATE_VM(mp_optimise_value) = argv[a][2] & 0xf;
} else { } else {
MP_STATE_VM(mp_optimise_value) = 0; MP_STATE_VM(mp_optimise_value) = 0;

Loading…
Cancel
Save