summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorVailin Choi <vchoi@hdfgroup.org>2014-11-18 17:57:48 (GMT)
committerVailin Choi <vchoi@hdfgroup.org>2014-11-18 17:57:48 (GMT)
commit4ddc3c769e595ded8b70cc843a79e5ab37ba60e7 (patch)
tree4d686637dd3e18b4be0e9b5ea45c993569f3b878 /bin
parent5cf77a2a7bfd44127db4c3b5d2b760666b2887a1 (diff)
downloadhdf5-4ddc3c769e595ded8b70cc843a79e5ab37ba60e7.zip
hdf5-4ddc3c769e595ded8b70cc843a79e5ab37ba60e7.tar.gz
hdf5-4ddc3c769e595ded8b70cc843a79e5ab37ba60e7.tar.bz2
[svn-r25823] Bring revisions #25484 - 25508 from trunk to revise_chunks.
h5committested.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/genltanalyze11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/genltanalyze b/bin/genltanalyze
index 8bb0423..0b1b1e5 100755
--- a/bin/genltanalyze
+++ b/bin/genltanalyze
@@ -49,6 +49,17 @@ echo "Generate hl/src/H5LTparse.c from hl/src/H5LTparse.y"
bison -pH5LTyy -o H5LTparse.c -d H5LTparse.y
echo "Generate hl/src/H5LTanalyze.c from hl/src/H5LTanalyze.l"
flex --nounistd -PH5LTyy -oH5LTanalyze.c H5LTanalyze.l
+
+# fix H5LTparse.c to declare H5LTyyparse return type as an hid_t
+# instead of int. Currently the generated function H5LTyyparse is
+# generated with a return value of type int, which is a mapping to the
+# flex yyparse function. The return value in the HL library should be
+# an hid_t.
+# I propose to not use flex to generate this function, but for now I am
+# adding a perl command to find and replace this function declaration in
+# H5LTparse.c.
+perl -0777 -pi -e 's/int\nyyparse/hid_t\nyyparse/igs' H5LTparse.c
+perl -0777 -pi -e 's/int H5LTyyparse/hid_t H5LTyyparse/igs' H5LTparse.c
cd ../..
exit 0