Skip to content

Commit 6af65f2

Browse files
committed
Use classic names for bison generated files (in oc2/ only)
1 parent f8164e3 commit 6af65f2

File tree

7 files changed

+9
-99
lines changed

7 files changed

+9
-99
lines changed

oc2/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# University Corporation for Atmospheric Research/Unidata.
55

66
# See netcdf-c/COPYRIGHT file for more info.
7-
set(oc_SOURCES oc.c daplex.c dapparse.c dapy.c occompile.c occurlfunctions.c ocdata.c ocdebug.c ocdump.c ocinternal.c ocnode.c ochttp.c ocread.c ocutil.c xxdr.c)
7+
set(oc_SOURCES oc.c daplex.c dapparse.c dap.tab.c occompile.c occurlfunctions.c ocdata.c ocdebug.c ocdump.c ocinternal.c ocnode.c ochttp.c ocread.c ocutil.c xxdr.c)
88

99
add_library(oc2 OBJECT ${oc_SOURCES})
1010

oc2/Makefile.am

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ocread.c ocutil.c \
2121
xxdr.c
2222

2323
HDRS=oc.h ocx.h \
24-
dapparselex.h dapy.h \
24+
dapparselex.h dap.tab.h \
2525
occompile.h occonstraints.h occurlfunctions.h \
2626
ocdata.h ocdatatypes.h ocdebug.h ocdump.h \
2727
ocinternal.h ocnode.h \
@@ -40,8 +40,5 @@ liboc_la_CPPFLAGS = $(AM_CPPFLAGS)
4040
# autoconf will forcibly delete files of the name *.tab.*
4141

4242
makeparser::
43-
rm -f dap.tab.c dap.tab.h dapy.c dapy.h
44-
bison --debug -d -p dap dap.y
45-
sed -e 's/dap[.]tab[.]c/dapy.c/g' -e 's/dap[.]tab[.]h/dapy.h/g' <dap.tab.c >dapy.c
46-
mv dap.tab.h dapy.h
47-
rm -f dap.tab.c
43+
rm -f dap.tab.c dap.tab.h
44+
bison --debug --defines -p dap dap.y

oc2/dapy.c renamed to oc2/dap.tab.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272

7373
#include "config.h"
7474
#include "dapparselex.h"
75-
#include "dapy.h"
75+
#include "dap.tab.h"
7676
int dapdebug = 0;
7777

7878
#line 79 "dapy.c" /* yacc.c:339 */
@@ -94,7 +94,7 @@ int dapdebug = 0;
9494
#endif
9595

9696
/* In a future release of Bison, this section will be replaced
97-
by #include "dapy.h". */
97+
by #include "dap.tab.h". */
9898
#ifndef YY_DAP_DAP_TAB_H_INCLUDED
9999
# define YY_DAP_DAP_TAB_H_INCLUDED
100100
/* Debug traces. */

oc2/dap.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
%{
1212
#include "config.h"
1313
#include "dapparselex.h"
14-
#include "dapy.h"
14+
#include "dap.tab.h"
1515
int dapdebug = 0;
1616
%}
1717

oc2/daplex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include "oc.h"
1010
#include "dapparselex.h"
11-
#include "dapy.h"
11+
#include "dap.tab.h"
1212

1313
#undef URLCVT /* NEVER turn this on */
1414

oc2/dapparse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#include "config.h"
66
#include "dapparselex.h"
7-
#include "dapy.h"
7+
#include "dap.tab.h"
88
#include <stddef.h>
99

1010
/* Forward */

oc2/dapy.h

Lines changed: 0 additions & 87 deletions
This file was deleted.

0 commit comments

Comments
 (0)