X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/8cedc168fa4256b60b730749c5ef9ab36ef9c0cb..c4e3dae3ace44790c838ff39808756a81464bb8f:/src/files.c diff --git a/src/files.c b/src/files.c index 6bf301f9..35cd872d 100644 --- a/src/files.c +++ b/src/files.c @@ -260,20 +260,10 @@ get_extension_index (const char *filename) static void compute_exts_from_gf (const char *ext) { - /* Checks if SRC_EXTENSION is NULL. In the other case, %source_extension - was specified in the grammar file. */ - if (src_extension == NULL) - { - src_extension = tr (ext, 'y', 'c'); - src_extension = tr (src_extension, 'Y', 'C'); - } - /* Checks if HEADER_EXTENSION is NULL. In the other case, - %header_extension was specified in the grammar file. */ - if (header_extension == NULL) - { - header_extension = tr (ext, 'y', 'h'); - header_extension = tr (header_extension, 'Y', 'H'); - } + src_extension = tr (ext, 'y', 'c'); + src_extension = tr (src_extension, 'Y', 'C'); + header_extension = tr (ext, 'y', 'h'); + header_extension = tr (header_extension, 'Y', 'H'); } /* Computes extensions from the given c source file extension. */ @@ -428,11 +418,13 @@ output_files (void) compute_base_names (); +#if 0 /* Set default extensions */ if (!src_extension) src_extension = ".c"; if (!header_extension) header_extension = ".h"; +#endif attrsfile = stringappend (short_base_name, EXT_STYPE_H); #ifndef MSDOS