diff options
author | James Laird <jlaird@hdfgroup.org> | 2006-10-18 17:56:33 (GMT) |
---|---|---|
committer | James Laird <jlaird@hdfgroup.org> | 2006-10-18 17:56:33 (GMT) |
commit | d4daafbc853cbc85c6594d540e6d3a192e95f78f (patch) | |
tree | 43381aae6789e06de2dc9bf803b2f7deb861bb17 | |
parent | 2d6bb5932951242d23ccef420a328a033f3b4efa (diff) | |
download | hdf5-d4daafbc853cbc85c6594d540e6d3a192e95f78f.zip hdf5-d4daafbc853cbc85c6594d540e6d3a192e95f78f.tar.gz hdf5-d4daafbc853cbc85c6594d540e6d3a192e95f78f.tar.bz2 |
[svn-r12775] Fixed HL C++ errors from removing VL packet table. Silly me for
omitting the C++ test in the first place!
Tested on heping (with --enable-cxx!).
-rw-r--r-- | hl/c++/src/H5PacketTable.cpp | 6 | ||||
-rw-r--r-- | hl/c++/src/H5PacketTable.h | 2 | ||||
-rw-r--r-- | hl/c++/test/ptableTest.cpp | 2 |
3 files changed, 10 insertions, 0 deletions
diff --git a/hl/c++/src/H5PacketTable.cpp b/hl/c++/src/H5PacketTable.cpp index abe9519..d05183c 100644 --- a/hl/c++/src/H5PacketTable.cpp +++ b/hl/c++/src/H5PacketTable.cpp @@ -59,6 +59,7 @@ return false; } +#ifdef VLPT_REMOVED /* IsVariableLength * Return 1 if this packet table is a Variable Length packet table, * return 0 if it is Fixed Length. Returns -1 if the table is @@ -68,6 +69,7 @@ { return H5PTis_varlen(table_id); } +#endif /* VLPT_REMOVED */ /* ResetIndex * Sets the index to point to the first packet in the packet table @@ -135,11 +137,13 @@ */ FL_PacketTable::FL_PacketTable(hid_t fileID, char* name) : PacketTable(fileID, name) { +#ifdef VLPT_REMOVED if( H5PTis_varlen(table_id) != 0 ) // If this is not a fixed-length table { H5PTclose(table_id); table_id = -1; } +#endif /* VLPT_REMOVED */ } /* AppendPacket @@ -211,6 +215,7 @@ } +#ifdef VLPT_REMOVED /********************************/ /* Variable-Length Packet Table */ /********************************/ @@ -324,3 +329,4 @@ { return H5PTfree_vlen_readbuff( table_id, numStructs, buffer); } +#endif /* VLPT_REMOVED */ diff --git a/hl/c++/src/H5PacketTable.h b/hl/c++/src/H5PacketTable.h index ee45143..adba716 100644 --- a/hl/c++/src/H5PacketTable.h +++ b/hl/c++/src/H5PacketTable.h @@ -55,12 +55,14 @@ public: */ bool IsValid(); +#ifdef VLPT_REMOVED /* IsVariableLength * Return 1 if this packet table is a Variable Length packet table, * return 0 if it is Fixed Length. Returns -1 if the table is * invalid (not open). */ int IsVariableLength(); +#endif /* VLPT_REMOVED */ /* ResetIndex * Sets the "current packet" index to point to the first packet in the diff --git a/hl/c++/test/ptableTest.cpp b/hl/c++/test/ptableTest.cpp index 41f647d..615ec9d 100644 --- a/hl/c++/test/ptableTest.cpp +++ b/hl/c++/test/ptableTest.cpp @@ -518,6 +518,7 @@ out: return 1; } +#ifdef VLPT_REMOVED int VariableLengthTest(void) { long test_long; @@ -586,3 +587,4 @@ out: H5_FAILED(); return 1; } +#endif /* VLPT_REMOVED */ |