summaryrefslogtreecommitdiffstats
path: root/hl/src/H5LTanalyze.l
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/H5LTanalyze.l
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/H5LTanalyze.l')
-rw-r--r--hl/src/H5LTanalyze.l6
1 files changed, 3 insertions, 3 deletions
diff --git a/hl/src/H5LTanalyze.l b/hl/src/H5LTanalyze.l
index 8054807..dbba15a 100644
--- a/hl/src/H5LTanalyze.l
+++ b/hl/src/H5LTanalyze.l
@@ -140,7 +140,7 @@ OPQ_TAG {return token(OPQ_TAG_TOKEN);}
if( is_str_size || (is_enum && is_enum_memb) ||
is_opq_size || (asindex>-1 && arr_stack[asindex].is_dim) ||
(csindex>-1 && cmpd_stack[csindex].is_field) ) {
- yylval.ival = atoi(yytext);
+ H5LTyylval.ival = atoi(yytext);
return NUMBER;
} else
REJECT;
@@ -157,7 +157,7 @@ OPQ_TAG {return token(OPQ_TAG_TOKEN);}
return token('"');
}
<TAG_STRING>[^\"]+ {
- yylval.sval = strdup(yytext);
+ H5LTyylval.sval = strdup(yytext);
BEGIN INITIAL;
return STRING;
}
@@ -181,7 +181,7 @@ int my_yyinput(char *buf, int max_size)
return ret;
}
-int yyerror(char *msg)
+int H5LTyyerror(char *msg)
{
printf("ERROR: %s before \"%s\".\n", msg, yytext);
}