diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2006-05-17 18:09:12 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2006-05-17 18:09:12 (GMT) |
commit | 0f98d2009b6c3a190d7303170468a1f711e1b00a (patch) | |
tree | 6e885e6424b33ab8184ab6681889bdb254e606ab /hl/src/H5LTanalyze.l | |
parent | b562825fc5b7555ec39c55dbcd002dde8cdfafec (diff) | |
download | hdf5-0f98d2009b6c3a190d7303170468a1f711e1b00a.zip hdf5-0f98d2009b6c3a190d7303170468a1f711e1b00a.tar.gz hdf5-0f98d2009b6c3a190d7303170468a1f711e1b00a.tar.bz2 |
[svn-r12351] Purpose: Follow-up what's committed yesterday.
Description: Yesterday, a definition of the macro YY_BUF_SIZE of 256KB
was committed in, but copper complained it can't be redefined.
Solution: Added #ifdef and #undef to make sure the macro is undefined
first. Also integrated a complicated compound type test. It reads
input from a text file. The datatype is unusually large, of 101 member
fields.
Platforms tested: h5committest and fuss.
Diffstat (limited to 'hl/src/H5LTanalyze.l')
-rw-r--r-- | hl/src/H5LTanalyze.l | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hl/src/H5LTanalyze.l b/hl/src/H5LTanalyze.l index 97cde91..15e316e 100644 --- a/hl/src/H5LTanalyze.l +++ b/hl/src/H5LTanalyze.l @@ -22,7 +22,12 @@ int my_yyinput(char *, int); #undef YY_INPUT #define YY_INPUT(b, r, ms) (r=my_yyinput(b, ms)) #define token(x) (int)x + +#ifdef YY_BUF_SIZE +#undef YY_BUF_SIZE +#endif #define YY_BUF_SIZE 262144 /*Define read buffer to be 256K*/ + extern char *myinput; extern int input_len; |