case 'h':
usage();
exit(0);
- break;
+ /* break; never reached because of exit(0) */
case 'E':
opts_pp_only = true;
else
{
/* it's a QC filename */
- argitem item;
item.filename = argv[0];
item.type = TYPE_QC;
vec_push(items, item);
if (opts_standard == COMPILER_GMQCC) {
operators = c_operators;
operator_count = c_operator_count;
+ } else if (opts_standard == COMPILER_FTEQCC) {
+ operators = fte_operators;
+ operator_count = fte_operator_count;
} else {
operators = qcc_operators;
operator_count = qcc_operator_count;
}
if (opts_pp_only) {
+ const char *out;
if (!ftepp_preprocess_file(items[itr].filename)) {
retval = 1;
goto cleanup;
}
- fprintf(outfile, "%s", ftepp_get());
+ out = ftepp_get();
+ if (out)
+ fprintf(outfile, "%s", out);
ftepp_flush();
}
else {