summaryrefslogtreecommitdiffstats
path: root/hl/src/H5LTanalyze.l
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/H5LTanalyze.l
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/H5LTanalyze.l')
-rw-r--r--hl/src/H5LTanalyze.l10
1 files changed, 6 insertions, 4 deletions
diff --git a/hl/src/H5LTanalyze.l b/hl/src/H5LTanalyze.l
index 364272f..51d8bb5 100644
--- a/hl/src/H5LTanalyze.l
+++ b/hl/src/H5LTanalyze.l
@@ -2,6 +2,8 @@
#include <string.h>
#include<hdf5.h>
#include "y.tab.h"
+
+int my_yyinput(char *, int);
#undef YY_INPUT
#define YY_INPUT(b, r, ms) (r=my_yyinput(b, ms))
#define token(x) (int)x
@@ -11,7 +13,7 @@ extern int input_len;
#define STACK_SIZE 16
/*variables for compound type*/
-extern struct cmpd_info {
+struct cmpd_info {
hid_t id;
hbool_t is_field;
hbool_t first_memb;
@@ -20,7 +22,7 @@ extern struct cmpd_info cmpd_stack[STACK_SIZE];
extern int csindex;
/*variables for array type*/
-extern struct arr_info {
+struct arr_info {
hsize_t dims[H5S_MAX_RANK];
int ndim;
hbool_t is_dim;
@@ -150,12 +152,12 @@ int my_yyinput(char *buf, int max_size)
return ret;
}
-yyerror(msg)
+int yyerror(char *msg)
{
printf("ERROR: %s before \"%s\".\n", msg, yytext);
}
-yywrap()
+int yywrap()
{
return(1);
}