summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2009-05-08 18:57:49 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2009-05-08 18:57:49 (GMT)
commit06657c60178485bdc0c74a64dc7725cdcdef8579 (patch)
tree1e33094144212d061c22187c80cb75af6bebd4b3
parentfdb566e45d0564094c176076ef2171e7ab28411f (diff)
downloadhdf5-06657c60178485bdc0c74a64dc7725cdcdef8579.zip
hdf5-06657c60178485bdc0c74a64dc7725cdcdef8579.tar.gz
hdf5-06657c60178485bdc0c74a64dc7725cdcdef8579.tar.bz2
[svn-r16931] Corrected misspelling of length.
-rw-r--r--tools/h5dump/h5dump.c24
-rw-r--r--tools/h5dump/h5dump.h2
-rw-r--r--tools/testfiles/tpackedbits.ddl2
-rw-r--r--tools/testfiles/tpackedbits2.ddl4
4 files changed, 16 insertions, 16 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c
index 4c04f53..31b231b 100644
--- a/tools/h5dump/h5dump.c
+++ b/tools/h5dump/h5dump.c
@@ -102,7 +102,7 @@ static H5_iter_order_t sort_order = H5_ITER_INC; /*sort_order [ascending | d
/* packed bits display parameters */
static int packed_offset[8];
-static int packed_lenght[8];
+static int packed_length[8];
#define PACKED_BITS_LOOP_MAX 8
/**
@@ -2617,7 +2617,7 @@ dump_oid(hid_t oid)
/*-------------------------------------------------------------------------
* Function: dump_packed_bits
*
- * Purpose: Prints the packed bits offset and lenght
+ * Purpose: Prints the packed bits offset and length
*
* Return: void
*
@@ -2627,7 +2627,7 @@ static void
dump_packed_bits(unsigned int packed_index)
{
indentation(indent + COL);
- printf("%s %s=%d %s=%d\n", PACKED_BITS, PACKED_OFFSET, packed_offset[packed_index], PACKED_LENGHT, packed_lenght[packed_index]);
+ printf("%s %s=%d %s=%d\n", PACKED_BITS, PACKED_OFFSET, packed_offset[packed_index], PACKED_LENGTH, packed_length[packed_index]);
}
/*-------------------------------------------------------------------------
@@ -3531,12 +3531,12 @@ parse_mask_list(const char *h_list)
hsize_t *p_list;
const char *ptr;
unsigned int size_count = 0, i = 0, last_digit = 0;
- int offset_value = 0, lenght_value = 0;
+ int offset_value = 0, length_value = 0;
packed_counter = 0;
memset(packed_mask,0,8);
memset(packed_offset,0,8);
- memset(packed_lenght,0,8);
+ memset(packed_length,0,8);
if (!h_list || !*h_list || *h_list == ';')
return;
@@ -3560,7 +3560,7 @@ parse_mask_list(const char *h_list)
return;
offset_value = -1;
- lenght_value = -1;
+ length_value = -1;
packed_output = 0;
for (ptr = h_list; i < size_count && ptr && *ptr && *ptr != ';' && *ptr != ']'; ptr++) {
if(isdigit(*ptr)) {
@@ -3569,25 +3569,25 @@ parse_mask_list(const char *h_list)
if(offset_value==-1)
offset_value = atoi(ptr);
else
- lenght_value = atoi(ptr);
+ length_value = atoi(ptr);
while (isdigit(*ptr))
/* scroll to end of integer */
ptr++;
}
- if(lenght_value>=0) {
+ if(length_value>=0) {
packed_offset[packed_output] = offset_value;
- packed_lenght[packed_output] = lenght_value;
+ packed_length[packed_output] = length_value;
packed_mask[packed_output] = 1 << offset_value;
- while(lenght_value>1) {
+ while(length_value>1) {
packed_mask[packed_output] = packed_mask[packed_output] << 1;
packed_mask[packed_output] |= 1 << offset_value;
- lenght_value--;
+ length_value--;
}
packed_output++;
offset_value = -1;
- lenght_value = -1;
+ length_value = -1;
}
}
if(packed_output > PACKED_BITS_LOOP_MAX)
diff --git a/tools/h5dump/h5dump.h b/tools/h5dump/h5dump.h
index 132f8a2..be77002 100644
--- a/tools/h5dump/h5dump.h
+++ b/tools/h5dump/h5dump.h
@@ -71,7 +71,7 @@
#define FILE_CONTENTS "FILE_CONTENTS"
#define PACKED_BITS "PACKED_BITS"
#define PACKED_OFFSET "OFFSET"
-#define PACKED_LENGHT "LENGHT"
+#define PACKED_LENGTH "LENGTH"
#define BEGIN "{"
#define END "}"
diff --git a/tools/testfiles/tpackedbits.ddl b/tools/testfiles/tpackedbits.ddl
index 8340cfc..2f1e9a1 100644
--- a/tools/testfiles/tpackedbits.ddl
+++ b/tools/testfiles/tpackedbits.ddl
@@ -5,7 +5,7 @@ HDF5 "tdset.h5" {
DATASET "/dset1" {
DATATYPE H5T_STD_I32BE
DATASPACE SIMPLE { ( 10, 20 ) / ( 10, 20 ) }
- PACKED_BITS OFFSET=0 LENGHT=2
+ PACKED_BITS OFFSET=0 LENGTH=2
DATA {
(0,0): 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3,
(1,0): 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0,
diff --git a/tools/testfiles/tpackedbits2.ddl b/tools/testfiles/tpackedbits2.ddl
index 0bd9ea1..4f11bbe 100644
--- a/tools/testfiles/tpackedbits2.ddl
+++ b/tools/testfiles/tpackedbits2.ddl
@@ -5,7 +5,7 @@ HDF5 "tdset.h5" {
DATASET "/dset1" {
DATATYPE H5T_STD_I32BE
DATASPACE SIMPLE { ( 10, 20 ) / ( 10, 20 ) }
- PACKED_BITS OFFSET=0 LENGHT=2
+ PACKED_BITS OFFSET=0 LENGTH=2
DATA {
(0,0): 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3,
(1,0): 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0,
@@ -18,7 +18,7 @@ DATASET "/dset1" {
(8,0): 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3,
(9,0): 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0
}
- PACKED_BITS OFFSET=2 LENGHT=1
+ PACKED_BITS OFFSET=2 LENGTH=1
DATA {
(0,0): 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0,
(1,0): 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1,