Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/dtc/dtc.cc
Show First 20 Lines • Show All 288 Lines • ▼ Show 20 Lines | while ((ch = getopt(argc, argv, options)) != -1) | ||||
case 'P': | case 'P': | ||||
if (!tree.parse_define(optarg)) | if (!tree.parse_define(optarg)) | ||||
{ | { | ||||
fprintf(stderr, "Invalid predefine value %s\n", | fprintf(stderr, "Invalid predefine value %s\n", | ||||
optarg); | optarg); | ||||
} | } | ||||
break; | break; | ||||
default: | default: | ||||
fprintf(stderr, "Unknown option %c\n", ch); | fprintf(stderr, "Unknown option %c\n", optopt); | ||||
return EXIT_FAILURE; | return EXIT_FAILURE; | ||||
} | } | ||||
} | } | ||||
if (optind < argc) | if (optind < argc) | ||||
{ | { | ||||
in_file = argv[optind]; | in_file = argv[optind]; | ||||
} | } | ||||
if (depfile != 0) | if (depfile != 0) | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |