summaryrefslogtreecommitdiffstats
path: root/hl/src/H5LT.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2005-11-07 22:14:02 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2005-11-07 22:14:02 (GMT)
commit370d940cd0ad4cb7eb49314fd955c16b5dcfbe87 (patch)
treed7094f88f920fbd7cfd48a9d355672e5a453af18 /hl/src/H5LT.c
parent08910385629d5cbfde5aa43cef0bcba17f7995b1 (diff)
downloadhdf5-370d940cd0ad4cb7eb49314fd955c16b5dcfbe87.zip
hdf5-370d940cd0ad4cb7eb49314fd955c16b5dcfbe87.tar.gz
hdf5-370d940cd0ad4cb7eb49314fd955c16b5dcfbe87.tar.bz2
[svn-r11689] Purpose: Bug fix
Description: The g++ on sleipnir had troubles to compile the H5LTtext_to_dtype() code. Solution: Fixed problems at different places. Platforms tested: h5committest and g++ on sleipnir.
Diffstat (limited to 'hl/src/H5LT.c')
-rw-r--r--hl/src/H5LT.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/hl/src/H5LT.c b/hl/src/H5LT.c
index 0a694d9..08ac5b8 100644
--- a/hl/src/H5LT.c
+++ b/hl/src/H5LT.c
@@ -16,6 +16,10 @@
#include <string.h>
#include <stdlib.h>
+/* For Lex and Yacc */
+int input_len;
+char *myinput;
+
/*-------------------------------------------------------------------------
*
* internal functions
@@ -1997,14 +2001,15 @@ out:
*/
hid_t H5LTtext_to_dtype(const char *text)
{
-
+ extern int yyparse(void);
hid_t type_id;
hsize_t i;
input_len = strlen(text);
myinput = strdup(text);
- type_id = yyparse();
+ if((type_id = yyparse())<0)
+ goto out;
free(myinput);
input_len = 0;