summaryrefslogtreecommitdiffstats
path: root/hl/src/H5LTanalyze.l
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2005-12-22 22:27:17 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2005-12-22 22:27:17 (GMT)
commit617d2704c4216e520d36dd034eb4d3785be76f8d (patch)
treed7647c04446e8b601e9cd6dbc981213edf940be8 /hl/src/H5LTanalyze.l
parentdf509d202fd69a6cb9ab9da1d7f4b683d2342ab9 (diff)
downloadhdf5-617d2704c4216e520d36dd034eb4d3785be76f8d.zip
hdf5-617d2704c4216e520d36dd034eb4d3785be76f8d.tar.gz
hdf5-617d2704c4216e520d36dd034eb4d3785be76f8d.tar.bz2
[svn-r11832] Purpose: Rename files and change grammar rule.
Description: Renamed lex.yy.c to H5LTanalyze.c, y.tab.c to H5LTparse.c, and y.tab.h to H5LTparse.h in hl/src. Changed definition of opaque type to ommit the tag. Changed the test for opaque type in hl/test, too. Platforms tested: h5committest, fuss, and sleipnir. Misc. update: MANIFEST
Diffstat (limited to 'hl/src/H5LTanalyze.l')
-rw-r--r--hl/src/H5LTanalyze.l22
1 files changed, 3 insertions, 19 deletions
diff --git a/hl/src/H5LTanalyze.l b/hl/src/H5LTanalyze.l
index be40eb8..f7ea61e 100644
--- a/hl/src/H5LTanalyze.l
+++ b/hl/src/H5LTanalyze.l
@@ -1,22 +1,8 @@
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Copyright by the Board of Trustees of the University of Illinois. *
- * All rights reserved. *
- * *
- * This file is part of HDF5. The full HDF5 copyright notice, including *
- * terms governing use, modification, and redistribution, is contained in *
- * the files COPYING and Copyright.html. COPYING can be found at the root *
- * of the source code distribution tree; Copyright.html can be found at the *
- * root level of an installed copy of the electronic HDF5 document set and *
- * is linked from the top-level documents page. It can also be found at *
- * http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have *
- * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
%{
#include <stdlib.h>
#include <string.h>
#include<hdf5.h>
-#include "y.tab.h"
+#include "H5LTparse.h"
int my_yyinput(char *, int);
#undef YY_INPUT
@@ -55,7 +41,6 @@ extern hbool_t is_str_pad;
/*variables for opaque type*/
extern hbool_t is_opq_size;
-extern hbool_t is_opq_tag;
hbool_t first_quote = 1;
@@ -127,7 +112,6 @@ H5T_VLEN {return token(H5T_VLEN_TOKEN);}
H5T_OPAQUE {return token(H5T_OPAQUE_TOKEN);}
OPQ_SIZE {return token(OPQ_SIZE_TOKEN);}
-OPQ_TAG {return token(OPQ_TAG_TOKEN);}
[0-9]+ {
if(is_str_size || (is_enum && is_enum_memb) ||
@@ -139,8 +123,8 @@ OPQ_TAG {return token(OPQ_TAG_TOKEN);}
}
"\"" {
- /*if it's first quote, and is a opaque tag or an enum symbol*/
- if((is_opq_tag || is_enum || (csindex>-1 && cmpd_stack[csindex].is_field)) && first_quote) {
+ /*if it's first quote, and is a compound field name or an enum symbol*/
+ if((is_enum || (csindex>-1 && cmpd_stack[csindex].is_field)) && first_quote) {
first_quote = 0;
BEGIN TAG_STRING;
} else /*if it's second quote*/