summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2014-07-31 21:31:36 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2014-07-31 21:31:36 (GMT)
commita42ea0be91c25d90427678d548bcff17b032d2ca (patch)
treed00896d7f1bf6cc2b9696c30d675461ccf00149e /bin
parent0cff4f0d146e6beafa4c6b6d4047e489719670f6 (diff)
parentbeb6f83cfd696e835970091f730a23db31381455 (diff)
downloadhdf5-a42ea0be91c25d90427678d548bcff17b032d2ca.zip
hdf5-a42ea0be91c25d90427678d548bcff17b032d2ca.tar.gz
hdf5-a42ea0be91c25d90427678d548bcff17b032d2ca.tar.bz2
[svn-r25502] merge from trunk.
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