/* Computes the extensions from the grammar file name. */
filename_split (infile, &base, &tab, &ext);
- if (ext)
+ if (ext && !yacc_flag)
compute_exts_from_gf (ext);
}
}
src_extension = ".c";
if (!header_extension)
header_extension = ".h";
-
+
/* It the defines filename if not given, we create it. */
if (!spec_defines_file)
spec_defines_file = stringappend (full_base_name, header_extension);