aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2024-08-11 23:16:36 +0300
committerthegeorg <thegeorg@yandex-team.com>2024-08-11 23:26:29 +0300
commit607926f2ff676273639ca567fa5f3c46f0842a03 (patch)
tree7fc814245b822766dafa13e771ed7ccab8bc6dcc /contrib
parent8200558e92c3932632f72b9c59edb2e877bcf334 (diff)
downloadydb-607926f2ff676273639ca567fa5f3c46f0842a03.tar.gz
Revert unnecessary patch from contrib/tools/bison
We explicitly pass output files via `-o` cmdline option. ae36f5a2f4605acef0795821ad5e1a81edfe8c2f
Diffstat (limited to 'contrib')
-rw-r--r--contrib/tools/bison/src/files.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/contrib/tools/bison/src/files.c b/contrib/tools/bison/src/files.c
index b4f57e656e..3c4017efce 100644
--- a/contrib/tools/bison/src/files.c
+++ b/contrib/tools/bison/src/files.c
@@ -114,10 +114,6 @@ static gl_list_t prefix_maps = NULL;
| STR1, and STR2. |
`-----------------------------------------------------------------*/
-#if defined _win_ || defined _WIN64 || defined _WIN32 || defined __WIN32__
-char *stpcpy(char *dst, const char *src);
-#endif
-
static char *
concat2 (char const *str1, char const *str2)
{
@@ -250,19 +246,16 @@ compute_exts_from_gf (const char *ext)
if (STREQ (ext, ".y"))
{
src_extension = xstrdup (language->src_extension);
- header_extension = xstrdup(".h");
+ header_extension = xstrdup (language->header_extension);
}
else
{
src_extension = xstrdup (ext);
- /*
header_extension = xstrdup (ext);
tr (src_extension, 'y', 'c');
tr (src_extension, 'Y', 'C');
tr (header_extension, 'y', 'h');
tr (header_extension, 'Y', 'H');
- */
- header_extension = xstrdup(".h");
}
}
@@ -274,12 +267,9 @@ compute_exts_from_src (const char *ext)
so the extensions must be computed unconditionally from the file name
given by this option. */
src_extension = xstrdup (ext);
- /*
header_extension = xstrdup (ext);
tr (header_extension, 'c', 'h');
tr (header_extension, 'C', 'H');
- */
- header_extension = xstrdup(".h");
}