403 |
|
|
404 |
/* Computes the extensions from the grammar file name. */ |
/* Computes the extensions from the grammar file name. */ |
405 |
filename_split (infile, &base, &tab, &ext); |
filename_split (infile, &base, &tab, &ext); |
406 |
if (ext) |
if (ext && !yacc_flag) |
407 |
compute_exts_from_gf (ext); |
compute_exts_from_gf (ext); |
408 |
} |
} |
409 |
} |
} |
425 |
src_extension = ".c"; |
src_extension = ".c"; |
426 |
if (!header_extension) |
if (!header_extension) |
427 |
header_extension = ".h"; |
header_extension = ".h"; |
428 |
|
|
429 |
/* It the defines filename if not given, we create it. */ |
/* It the defines filename if not given, we create it. */ |
430 |
if (!spec_defines_file) |
if (!spec_defines_file) |
431 |
spec_defines_file = stringappend (full_base_name, header_extension); |
spec_defines_file = stringappend (full_base_name, header_extension); |