summaryrefslogtreecommitdiffstats
path: root/hl/src/H5LT.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2007-08-23 19:28:40 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2007-08-23 19:28:40 (GMT)
commit3183d38231c3d2de3dd9e18abac1e753ca727013 (patch)
treeca614809cf9cd1a5188480ff021a7eb8707e65a9 /hl/src/H5LT.c
parentf7db09fb3d01fec4a8576b80069bee66e3403d2e (diff)
downloadhdf5-3183d38231c3d2de3dd9e18abac1e753ca727013.zip
hdf5-3183d38231c3d2de3dd9e18abac1e753ca727013.tar.gz
hdf5-3183d38231c3d2de3dd9e18abac1e753ca727013.tar.bz2
[svn-r14103] A user reported that the files generated from Lex and Yacc in the library conflict with his application with Lex and Yacc. To solve the problem of multiple definitions of Lex or Yacc functions or variables, use the -P or -p command option to change the prefix of these functions and variables from yy to H5LTyy.
Tested on kagiso, linew, smirom.
Diffstat (limited to 'hl/src/H5LT.c')
-rw-r--r--hl/src/H5LT.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hl/src/H5LT.c b/hl/src/H5LT.c
index e44a4f6..8ee7fd0 100644
--- a/hl/src/H5LT.c
+++ b/hl/src/H5LT.c
@@ -1994,7 +1994,7 @@ out:
*/
hid_t H5LTtext_to_dtype(const char *text, H5LT_lang_t lang_type)
{
- extern int yyparse(void);
+ extern int H5LTyyparse(void);
hid_t type_id;
if(lang_type <= H5LT_LANG_ERR || lang_type >= H5LT_NO_LANG)
@@ -2008,7 +2008,7 @@ hid_t H5LTtext_to_dtype(const char *text, H5LT_lang_t lang_type)
input_len = strlen(text);
myinput = strdup(text);
- if((type_id = yyparse())<0)
+ if((type_id = H5LTyyparse())<0)
goto out;
free(myinput);