summaryrefslogtreecommitdiffstats
path: root/hl/src
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2005-11-08 21:58:31 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2005-11-08 21:58:31 (GMT)
commite5e17162c0b3808ad7c1628f6cece36421b7f0c2 (patch)
tree618f423545448531097ca288dc4c1b9128dcaa09 /hl/src
parent1baf9cf104de441199f3dfd517ba4f00aaf504cc (diff)
downloadhdf5-e5e17162c0b3808ad7c1628f6cece36421b7f0c2.zip
hdf5-e5e17162c0b3808ad7c1628f6cece36421b7f0c2.tar.gz
hdf5-e5e17162c0b3808ad7c1628f6cece36421b7f0c2.tar.bz2
[svn-r11693] Purpose: Added copyright
Description: Put copyright in the new files for H5LTtext_to_dtype(). Platforms tested: fuss - simple change.
Diffstat (limited to 'hl/src')
-rw-r--r--hl/src/H5LTanalyze.l20
-rw-r--r--hl/src/H5LTparse.y14
-rw-r--r--hl/src/lex.yy.c144
-rw-r--r--hl/src/y.tab.c14
-rw-r--r--hl/src/y.tab.h14
5 files changed, 135 insertions, 71 deletions
diff --git a/hl/src/H5LTanalyze.l b/hl/src/H5LTanalyze.l
index 51d8bb5..ea654c4 100644
--- a/hl/src/H5LTanalyze.l
+++ b/hl/src/H5LTanalyze.l
@@ -1,3 +1,17 @@
+/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * 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 <string.h>
#include<hdf5.h>
@@ -44,6 +58,10 @@ extern hbool_t is_opq_tag;
hbool_t first_quote = 1;
+/* For Lex and Yacc */
+/*int input_len;
+char *myinput;*/
+
%}
%s TAG_STRING
@@ -154,7 +172,7 @@ int my_yyinput(char *buf, int max_size)
int yyerror(char *msg)
{
- printf("ERROR: %s before \"%s\".\n", msg, yytext);
+ printf("ERROR: %s before \"%s\".\n", msg, yytext);
}
int yywrap()
diff --git a/hl/src/H5LTparse.y b/hl/src/H5LTparse.y
index 26b7c8b..66e6b07 100644
--- a/hl/src/H5LTparse.y
+++ b/hl/src/H5LTparse.y
@@ -1,3 +1,17 @@
+/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * 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<stdio.h>
#include<string.h>
diff --git a/hl/src/lex.yy.c b/hl/src/lex.yy.c
index 06b288b..1aefca7 100644
--- a/hl/src/lex.yy.c
+++ b/hl/src/lex.yy.c
@@ -778,9 +778,13 @@ extern hbool_t is_opq_tag;
hbool_t first_quote = 1;
+/* For Lex and Yacc */
+/*int input_len;
+char *myinput;*/
+
#define TAG_STRING 1
-#line 784 "lex.yy.c"
+#line 788 "lex.yy.c"
/* Macros after this point can all be overridden by user definitions in
* section 1.
@@ -931,10 +935,10 @@ YY_DECL
register char *yy_cp = NULL, *yy_bp = NULL;
register int yy_act;
-#line 51 "H5LTanalyze.l"
+#line 55 "H5LTanalyze.l"
-#line 938 "lex.yy.c"
+#line 942 "lex.yy.c"
if ( yy_init )
{
@@ -1020,272 +1024,272 @@ do_action: /* This label is used only to access EOF actions. */
{ /* beginning of action switch */
case 1:
YY_RULE_SETUP
-#line 53 "H5LTanalyze.l"
+#line 57 "H5LTanalyze.l"
{return token(H5T_STD_I8BE_TOKEN);}
YY_BREAK
case 2:
YY_RULE_SETUP
-#line 54 "H5LTanalyze.l"
+#line 58 "H5LTanalyze.l"
{return token(H5T_STD_I8LE_TOKEN);}
YY_BREAK
case 3:
YY_RULE_SETUP
-#line 55 "H5LTanalyze.l"
+#line 59 "H5LTanalyze.l"
{return token(H5T_STD_I16BE_TOKEN);}
YY_BREAK
case 4:
YY_RULE_SETUP
-#line 56 "H5LTanalyze.l"
+#line 60 "H5LTanalyze.l"
{return token(H5T_STD_I16LE_TOKEN);}
YY_BREAK
case 5:
YY_RULE_SETUP
-#line 57 "H5LTanalyze.l"
+#line 61 "H5LTanalyze.l"
{return token(H5T_STD_I32BE_TOKEN);}
YY_BREAK
case 6:
YY_RULE_SETUP
-#line 58 "H5LTanalyze.l"
+#line 62 "H5LTanalyze.l"
{return token(H5T_STD_I32LE_TOKEN);}
YY_BREAK
case 7:
YY_RULE_SETUP
-#line 59 "H5LTanalyze.l"
+#line 63 "H5LTanalyze.l"
{return token(H5T_STD_I64BE_TOKEN);}
YY_BREAK
case 8:
YY_RULE_SETUP
-#line 60 "H5LTanalyze.l"
+#line 64 "H5LTanalyze.l"
{return token(H5T_STD_I64LE_TOKEN);}
YY_BREAK
case 9:
YY_RULE_SETUP
-#line 62 "H5LTanalyze.l"
+#line 66 "H5LTanalyze.l"
{return token(H5T_STD_U8BE_TOKEN);}
YY_BREAK
case 10:
YY_RULE_SETUP
-#line 63 "H5LTanalyze.l"
+#line 67 "H5LTanalyze.l"
{return token(H5T_STD_U8LE_TOKEN);}
YY_BREAK
case 11:
YY_RULE_SETUP
-#line 64 "H5LTanalyze.l"
+#line 68 "H5LTanalyze.l"
{return token(H5T_STD_U16BE_TOKEN);}
YY_BREAK
case 12:
YY_RULE_SETUP
-#line 65 "H5LTanalyze.l"
+#line 69 "H5LTanalyze.l"
{return token(H5T_STD_U16LE_TOKEN);}
YY_BREAK
case 13:
YY_RULE_SETUP
-#line 66 "H5LTanalyze.l"
+#line 70 "H5LTanalyze.l"
{return token(H5T_STD_U32BE_TOKEN);}
YY_BREAK
case 14:
YY_RULE_SETUP
-#line 67 "H5LTanalyze.l"
+#line 71 "H5LTanalyze.l"
{return token(H5T_STD_U32LE_TOKEN);}
YY_BREAK
case 15:
YY_RULE_SETUP
-#line 68 "H5LTanalyze.l"
+#line 72 "H5LTanalyze.l"
{return token(H5T_STD_U64BE_TOKEN);}
YY_BREAK
case 16:
YY_RULE_SETUP
-#line 69 "H5LTanalyze.l"
+#line 73 "H5LTanalyze.l"
{return token(H5T_STD_U64LE_TOKEN);}
YY_BREAK
case 17:
YY_RULE_SETUP
-#line 71 "H5LTanalyze.l"
+#line 75 "H5LTanalyze.l"
{return token(H5T_NATIVE_CHAR_TOKEN);}
YY_BREAK
case 18:
YY_RULE_SETUP
-#line 72 "H5LTanalyze.l"
+#line 76 "H5LTanalyze.l"
{return token(H5T_NATIVE_SCHAR_TOKEN);}
YY_BREAK
case 19:
YY_RULE_SETUP
-#line 73 "H5LTanalyze.l"
+#line 77 "H5LTanalyze.l"
{return token(H5T_NATIVE_UCHAR_TOKEN);}
YY_BREAK
case 20:
YY_RULE_SETUP
-#line 74 "H5LTanalyze.l"
+#line 78 "H5LTanalyze.l"
{return token(H5T_NATIVE_SHORT_TOKEN);}
YY_BREAK
case 21:
YY_RULE_SETUP
-#line 75 "H5LTanalyze.l"
+#line 79 "H5LTanalyze.l"
{return token(H5T_NATIVE_USHORT_TOKEN);}
YY_BREAK
case 22:
YY_RULE_SETUP
-#line 76 "H5LTanalyze.l"
+#line 80 "H5LTanalyze.l"
{return token(H5T_NATIVE_INT_TOKEN);}
YY_BREAK
case 23:
YY_RULE_SETUP
-#line 77 "H5LTanalyze.l"
+#line 81 "H5LTanalyze.l"
{return token(H5T_NATIVE_UINT_TOKEN);}
YY_BREAK
case 24:
YY_RULE_SETUP
-#line 78 "H5LTanalyze.l"
+#line 82 "H5LTanalyze.l"
{return token(H5T_NATIVE_LONG_TOKEN);}
YY_BREAK
case 25:
YY_RULE_SETUP
-#line 79 "H5LTanalyze.l"
+#line 83 "H5LTanalyze.l"
{return token(H5T_NATIVE_ULONG_TOKEN);}
YY_BREAK
case 26:
YY_RULE_SETUP
-#line 80 "H5LTanalyze.l"
+#line 84 "H5LTanalyze.l"
{return token(H5T_NATIVE_LLONG_TOKEN);}
YY_BREAK
case 27:
YY_RULE_SETUP
-#line 81 "H5LTanalyze.l"
+#line 85 "H5LTanalyze.l"
{return token(H5T_NATIVE_ULLONG_TOKEN);}
YY_BREAK
case 28:
YY_RULE_SETUP
-#line 83 "H5LTanalyze.l"
+#line 87 "H5LTanalyze.l"
{return token(H5T_IEEE_F32BE_TOKEN);}
YY_BREAK
case 29:
YY_RULE_SETUP
-#line 84 "H5LTanalyze.l"
+#line 88 "H5LTanalyze.l"
{return token(H5T_IEEE_F32LE_TOKEN);}
YY_BREAK
case 30:
YY_RULE_SETUP
-#line 85 "H5LTanalyze.l"
+#line 89 "H5LTanalyze.l"
{return token(H5T_IEEE_F64BE_TOKEN);}
YY_BREAK
case 31:
YY_RULE_SETUP
-#line 86 "H5LTanalyze.l"
+#line 90 "H5LTanalyze.l"
{return token(H5T_IEEE_F64LE_TOKEN);}
YY_BREAK
case 32:
YY_RULE_SETUP
-#line 87 "H5LTanalyze.l"
+#line 91 "H5LTanalyze.l"
{return token(H5T_NATIVE_FLOAT_TOKEN);}
YY_BREAK
case 33:
YY_RULE_SETUP
-#line 88 "H5LTanalyze.l"
+#line 92 "H5LTanalyze.l"
{return token(H5T_NATIVE_DOUBLE_TOKEN);}
YY_BREAK
case 34:
YY_RULE_SETUP
-#line 89 "H5LTanalyze.l"
+#line 93 "H5LTanalyze.l"
{return token(H5T_NATIVE_LDOUBLE_TOKEN);}
YY_BREAK
case 35:
YY_RULE_SETUP
-#line 91 "H5LTanalyze.l"
+#line 95 "H5LTanalyze.l"
{return token(H5T_STRING_TOKEN);}
YY_BREAK
case 36:
YY_RULE_SETUP
-#line 92 "H5LTanalyze.l"
+#line 96 "H5LTanalyze.l"
{return token(STRSIZE_TOKEN);}
YY_BREAK
case 37:
YY_RULE_SETUP
-#line 93 "H5LTanalyze.l"
+#line 97 "H5LTanalyze.l"
{return token(STRPAD_TOKEN);}
YY_BREAK
case 38:
YY_RULE_SETUP
-#line 94 "H5LTanalyze.l"
+#line 98 "H5LTanalyze.l"
{return token(CSET_TOKEN);}
YY_BREAK
case 39:
YY_RULE_SETUP
-#line 95 "H5LTanalyze.l"
+#line 99 "H5LTanalyze.l"
{return token(CTYPE_TOKEN);}
YY_BREAK
case 40:
YY_RULE_SETUP
-#line 96 "H5LTanalyze.l"
+#line 100 "H5LTanalyze.l"
{return token(H5T_STR_NULLTERM_TOKEN);}
YY_BREAK
case 41:
YY_RULE_SETUP
-#line 97 "H5LTanalyze.l"
+#line 101 "H5LTanalyze.l"
{return token(H5T_STR_NULLPAD_TOKEN);}
YY_BREAK
case 42:
YY_RULE_SETUP
-#line 98 "H5LTanalyze.l"
+#line 102 "H5LTanalyze.l"
{return token(H5T_STR_SPACEPAD_TOKEN);}
YY_BREAK
case 43:
YY_RULE_SETUP
-#line 99 "H5LTanalyze.l"
+#line 103 "H5LTanalyze.l"
{return token(H5T_CSET_ASCII_TOKEN);}
YY_BREAK
case 44:
YY_RULE_SETUP
-#line 100 "H5LTanalyze.l"
+#line 104 "H5LTanalyze.l"
{return token(H5T_C_S1_TOKEN);}
YY_BREAK
case 45:
YY_RULE_SETUP
-#line 101 "H5LTanalyze.l"
+#line 105 "H5LTanalyze.l"
{return token(H5T_FORTRAN_S1_TOKEN);}
YY_BREAK
case 46:
YY_RULE_SETUP
-#line 102 "H5LTanalyze.l"
+#line 106 "H5LTanalyze.l"
{return token(H5T_VARIABLE_TOKEN);}
YY_BREAK
case 47:
YY_RULE_SETUP
-#line 104 "H5LTanalyze.l"
+#line 108 "H5LTanalyze.l"
{return token(H5T_COMPOUND_TOKEN);}
YY_BREAK
case 48:
YY_RULE_SETUP
-#line 105 "H5LTanalyze.l"
+#line 109 "H5LTanalyze.l"
{return token(H5T_ENUM_TOKEN);}
YY_BREAK
case 49:
YY_RULE_SETUP
-#line 106 "H5LTanalyze.l"
+#line 110 "H5LTanalyze.l"
{return token(H5T_ARRAY_TOKEN);}
YY_BREAK
case 50:
YY_RULE_SETUP
-#line 107 "H5LTanalyze.l"
+#line 111 "H5LTanalyze.l"
{return token(H5T_VLEN_TOKEN);}
YY_BREAK
case 51:
YY_RULE_SETUP
-#line 109 "H5LTanalyze.l"
+#line 113 "H5LTanalyze.l"
{return token(H5T_OPAQUE_TOKEN);}
YY_BREAK
case 52:
YY_RULE_SETUP
-#line 110 "H5LTanalyze.l"
+#line 114 "H5LTanalyze.l"
{return token(OPQ_SIZE_TOKEN);}
YY_BREAK
case 53:
YY_RULE_SETUP
-#line 111 "H5LTanalyze.l"
+#line 115 "H5LTanalyze.l"
{return token(OPQ_TAG_TOKEN);}
YY_BREAK
case 54:
YY_RULE_SETUP
-#line 113 "H5LTanalyze.l"
+#line 117 "H5LTanalyze.l"
{
if(is_str_size || (is_enum && is_enum_memb) ||
is_opq_size || (asindex>-1 && arr_stack[asindex].is_dim)) {
@@ -1297,7 +1301,7 @@ YY_RULE_SETUP
YY_BREAK
case 55:
YY_RULE_SETUP
-#line 122 "H5LTanalyze.l"
+#line 126 "H5LTanalyze.l"
{
/*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) {
@@ -1310,7 +1314,7 @@ YY_RULE_SETUP
YY_BREAK
case 56:
YY_RULE_SETUP
-#line 131 "H5LTanalyze.l"
+#line 135 "H5LTanalyze.l"
{
yylval.sval = strdup(yytext);
BEGIN INITIAL;
@@ -1319,45 +1323,45 @@ YY_RULE_SETUP
YY_BREAK
case 57:
YY_RULE_SETUP
-#line 137 "H5LTanalyze.l"
+#line 141 "H5LTanalyze.l"
{return token('{');}
YY_BREAK
case 58:
YY_RULE_SETUP
-#line 138 "H5LTanalyze.l"
+#line 142 "H5LTanalyze.l"
{return token('}');}
YY_BREAK
case 59:
YY_RULE_SETUP
-#line 139 "H5LTanalyze.l"
+#line 143 "H5LTanalyze.l"
{return token('[');}
YY_BREAK
case 60:
YY_RULE_SETUP
-#line 140 "H5LTanalyze.l"
+#line 144 "H5LTanalyze.l"
{return token(']');}
YY_BREAK
case 61:
YY_RULE_SETUP
-#line 141 "H5LTanalyze.l"
+#line 145 "H5LTanalyze.l"
{return token(';');}
YY_BREAK
case 62:
YY_RULE_SETUP
-#line 142 "H5LTanalyze.l"
+#line 146 "H5LTanalyze.l"
;
YY_BREAK
case 63:
YY_RULE_SETUP
-#line 143 "H5LTanalyze.l"
+#line 147 "H5LTanalyze.l"
{ return 0; }
YY_BREAK
case 64:
YY_RULE_SETUP
-#line 145 "H5LTanalyze.l"
+#line 149 "H5LTanalyze.l"
ECHO;
YY_BREAK
-#line 1361 "lex.yy.c"
+#line 1365 "lex.yy.c"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(TAG_STRING):
yyterminate();
@@ -2233,7 +2237,7 @@ int main()
return 0;
}
#endif
-#line 145 "H5LTanalyze.l"
+#line 149 "H5LTanalyze.l"
int my_yyinput(char *buf, int max_size)
{
@@ -2246,7 +2250,7 @@ int my_yyinput(char *buf, int max_size)
int yyerror(char *msg)
{
- printf("ERROR: %s before \"%s\".\n", msg, yytext);
+ printf("ERROR: %s before \"%s\".\n", msg, yytext);
}
int yywrap()
diff --git a/hl/src/y.tab.c b/hl/src/y.tab.c
index dc4e1c7..f284523 100644
--- a/hl/src/y.tab.c
+++ b/hl/src/y.tab.c
@@ -1,3 +1,17 @@
+/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * 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. *
+ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
+
#ifndef lint
static char const
yyrcsid[] = "$FreeBSD: src/usr.bin/yacc/skeleton.c,v 1.28 2000/01/17 02:04:06 bde Exp $";
diff --git a/hl/src/y.tab.h b/hl/src/y.tab.h
index 027828c..a741d97 100644
--- a/hl/src/y.tab.h
+++ b/hl/src/y.tab.h
@@ -1,3 +1,17 @@
+/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * 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. *
+ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
+
#ifndef YYERRCODE
#define YYERRCODE 256
#endif