diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-04-29 06:20:50 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-04-29 06:20:50 (GMT) |
commit | cc5b2ff93bc5b81993c104e64f3669a4d8f0c0a5 (patch) | |
tree | 67198d5997628d5a6640a7862ec5c96794e97244 /hl/src/H5LTparse.y | |
parent | 27496ae0c7b8b1be7165d3720711b15c3a2d1288 (diff) | |
download | hdf5-cc5b2ff93bc5b81993c104e64f3669a4d8f0c0a5.zip hdf5-cc5b2ff93bc5b81993c104e64f3669a4d8f0c0a5.tar.gz hdf5-cc5b2ff93bc5b81993c104e64f3669a4d8f0c0a5.tar.bz2 |
[svn-r12314] Purpose:
Code cleanup
Description:
Big clean up on high-level library code, including:
- Removing include of HDF5 private header file(!)
- Reduce number of compiler warnings
- Untangle header files, etc.
Platforms tested:
FreeBSD 4.11 (sleipnir) w/C++
Linux 2.4/64 (mir) w/C++ & FORTRAN
Diffstat (limited to 'hl/src/H5LTparse.y')
-rw-r--r-- | hl/src/H5LTparse.y | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/hl/src/H5LTparse.y b/hl/src/H5LTparse.y index f5da780..50e8f6d 100644 --- a/hl/src/H5LTparse.y +++ b/hl/src/H5LTparse.y @@ -28,11 +28,14 @@ struct cmpd_info { hbool_t is_field; /*flag to lexer for compound member*/ hbool_t first_memb; /*flag for first compound member*/ }; + /*stack for nested compound type*/ -struct cmpd_info cmpd_stack[STACK_SIZE] = { 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, - 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, - 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, - 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1 }; +struct cmpd_info cmpd_stack[STACK_SIZE] = { + {0, 0, 1}, {0, 0, 1}, {0, 0, 1}, {0, 0, 1}, + {0, 0, 1}, {0, 0, 1}, {0, 0, 1}, {0, 0, 1}, + {0, 0, 1}, {0, 0, 1}, {0, 0, 1}, {0, 0, 1}, + {0, 0, 1}, {0, 0, 1}, {0, 0, 1}, {0, 0, 1} }; + int csindex = -1; /*pointer to the top of compound stack*/ /*structure for array type information*/ @@ -161,7 +164,7 @@ memb_list : memb_def : ddl_type { cmpd_stack[csindex].is_field = 1; /*notify lexer a compound member is parsed*/ } '"' field_name '"' field_offset ';' { - int origin_size, new_size; + size_t origin_size, new_size; hid_t dtype_id = cmpd_stack[csindex].id; /*Adjust size and insert member, consider both member size and offset.*/ |