version 1.121, 2016/10/21 16:12:38 |
version 1.122, 2017/04/20 03:04:11 |
|
|
Lst_AtEnd(&makefiles, optarg); |
Lst_AtEnd(&makefiles, optarg); |
break; |
break; |
case 'j': { |
case 'j': { |
char *endptr; |
const char *errstr; |
|
|
forceJobs = true; |
forceJobs = true; |
maxJobs = strtol(optarg, &endptr, 0); |
maxJobs = strtonum(optarg, 1, INT_MAX, &errstr); |
if (endptr == optarg) { |
if (errstr != NULL) { |
fprintf(stderr, |
fprintf(stderr, |
"make: illegal argument to -j option -- %s -- not a number\n", |
"make: illegal argument to -j option" |
optarg); |
" -- %s -- %s\n", optarg, errstr); |
usage(); |
usage(); |
} |
} |
record_option(c, optarg); |
record_option(c, optarg); |