-#ifdef MSDOS
- strlwr (spec_file_prefix);
-#endif /* MSDOS */
- short_base_name = xstrdup (spec_file_prefix);
- base_name = XMALLOC (char,
- strlen (short_base_name) + strlen (EXT_TAB) + 1);
- stpcpy (stpcpy (base_name, short_base_name), EXT_TAB);
-
- /* Computes the extensions from the garmmar file name. */
- ext_index = get_extension_index (infile);
- /* If the initial segment of extension contains a 'y' or a 'Y', I assume
- that it is a yacc or bison grammar file. */
- if (ext_index)
- ext_index = (strspn (infile + ext_index + 1, "yY")) ? ext_index : 0;
- if (ext_index)
- compute_exts_from_gf (infile + ext_index);
-
- return;
- }
-
- /* If neither -o nor --file-prefix were specified, and the input
- file is foo.y, BASE_NAME is `foo.tab', and SHORT_BASE_NAME is
- `foo'.
-
- If --yacc is used, do as if the input file was `y.y'. */
- {
- const char *name_base = yacc_flag ? "y.y" : infile;
-
- /* BASE_LENGTH gets length of BASE_NAME, sans ".y" suffix if any. */