Commit Graph

21 Commits

Author SHA1 Message Date
Binh-Minh Ribler
a9e40af5b2 Description:
User's sample code used "not" instead of "!" and Windows does
    not like that. Fixed.
Platforms tested:
    Linux/32 2.6 (jam)
2016-10-26 09:27:26 -05:00
Binh-Minh Ribler
bc3a7f013b Description:
- In the test for HDFFV-9758, a pragma pack(1) caused failure on Emu
    because Sparc cannot access misaligned data.  Changed it to pack() to
    do the default alignment.
    - Added DOXYGEN_SHOULD_SKIP_THIS blocks to private elements to prevent
    warnings from doxygen.
Platforms tested:
    SunOS 5.11 (emu)
    Linux/32 2.6 (jam)
2016-10-25 22:14:16 -05:00
Binh-Minh Ribler
f653b779eb Purpose: Fixed Packet Table issues
Description:
    - Removed calls to H5Tget_native_type from PT APIs because it is up to the
      application, whether it wants the buffer to be read into memory in the
      machine’s native architecture.  Currently, however, the PT doesn't
      allow an application to specify memory datatype.  Perhaps, a new API can
      be added to provide that capability.
    - Added calls to H5Tcopy to H5PTcreate/H5PTcreate_fl/H5PTopen to save a
      copy of the application's datatype or the dataset's datatype.
    - Added various missing H5Tclose to the packet table tests, and various
      error checkings.
    Note: leave out changes to test_packet_vlen.c for 1.8 to wait on QAK about
          merging the commit ec2fbe0883
          [svn-r30158] first.
Platforms tested:
    Linux/32 2.6 (jam)
    Linux/64 (platypus)
    Darwin (osx1010test)
2016-10-24 09:27:37 -05:00
Binh-Minh Ribler
c599e0f6b4 [svn-r29804] Purpose: Code improvement
Description:
    The constructor FL_PacketTable added in 1.10.0 did not have good
    prototype; it didn't allow the property list to be default.  Marked
    it deprecated and added this one:

        FL_PacketTable(hid_t fileID, const char* name, hid_t dtypeID,
                       hsize_t chunkSize = 0, hid_t plistID = H5P_DEFAULT);
    Merged from trunk r29803.
Platforms tested:
    Linux/32 2.6 (jam)
    Linux/64 (platypus)
    Darwin (osx1010test)
2016-04-25 23:39:08 -05:00
Binh-Minh Ribler
210fd5ee70 [svn-r29734] Description:
Merged from trunk:
	r29710: label "error:" vs. "out:" and static_cast
Platforms tested:
    Linux/32 2.6 (jam)
    Linux/64 (platypus)
    Darwin (osx1010test)
2016-04-18 16:03:13 -05:00
Binh-Minh Ribler
d9c4a4c747 [svn-r29690] Purpose: Merge PT improvements from trunk
Description:
    Merged from trunk:
        r29269: Improve Packet Table library
        r29295: Replaced H5Acreate with H5Acreate2 (by Larry)
        r29360: Adding missing tests
        r29364: Improve C++ Packet Table library
        r29554: Removed extra line in Copyright
Platforms tested:
    Linux/32 2.6 (jam)
    Linux/64 (platypus)
    Darwin (osx1010test)
2016-04-13 13:48:16 -05:00
Allen Byrne
528e0d1cac [svn-r23869] HDFFV-8302: replace (v)snprintf with _(v)snprintf for windows. Merge from trunk along with other windows functions and HD prefix corrections.
HDFFV-8394: Add cmake code to package examples

Tested: local linux
2013-07-08 10:52:49 -05:00
Quincey Koziol
b9be045596 [svn-r15629] Description:
Remove trailing whitespace from C/C++ source files, with the following
script:

   foreach f (*.[ch] *.cpp)
       sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f
   end

Tested on:
   Mac OS X/32 10.5.5 (amazon)
   No need for h5committest, just whitespace changes...
2008-09-16 11:22:16 -05:00
Quincey Koziol
367f2125d9 [svn-r15463] Description:
Bring revision 15462 (compiler warnings) back from trunk.

Tested on:
    Mac OS X/32 10.5.4 (amazon) w/FORTRAN & C++
    (Too minor to require h5committest)
2008-08-12 08:33:49 -05:00
MuQun Yang
46226727d1 [svn-r13857] This test will fail without having zlib library and this is the case for windows 64-bit support. So we add a macro to skip this test if there is no zlib library.
Tested at windows and linux. Too minor to use h5committest.
2007-06-12 16:51:19 -05:00
Albert Cheng
ed7d456e51 [svn-r13253] Updated all C and C++ style source code files with the THG copyright notice.
Tested platform:
Kagiso only since it is only a comment block change.  If it works in one
machine, it should work in all, I hope.  Still need to check the parallel
build on copper.
2007-02-07 09:56:24 -05:00
James Laird
d4daafbc85 [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!).
2006-10-18 12:56:33 -05:00
James Laird
ce30ee9b28 [svn-r12773] Removed Variable-length packet tables from the HL libraries.
This is a quick change to make sure nothing breaks; VL functions in
the header files have been #ifdef'd out.

Tested on mir.
2006-10-17 16:19:11 -05:00
James Laird
6aeb73dd44 [svn-r12686] Added compression to Packet Tables. Now both C and C++ packet tables
have an extra parameter that sets the deflate filter.

Added tests, made examples use the new APIs.

Cleaned up include files a little and removed some casts that I hope are
superfluous.  If anybody encounters strange errors in the packet table
tests where the chunk size is set to some extremely large value, please
let me know, but I was unable to reproduce this error on any system.

Tested on mir, heping, sol, juniper, VS 6.0.  Looked for the chunk size
error on several other systems a month or two ago.
2006-09-26 13:25:03 -05:00
James Laird
0f61afce1c [svn-r12576] Added funtions to query the "current position" for Packet Tables in C and C++. 2006-08-14 11:18:28 -05:00
Albert Cheng
5b4b3d574f [svn-r11537] Purpose:
Fixed the copyright notice.

Tested in heping.
2005-10-11 11:55:29 -05:00
Quincey Koziol
6b45f5172c [svn-r11245] Purpose:
Code cleanup

Description:
    Trim trailing whitespace, which is making 'diff'ing the two branches
difficult.

Solution:
    Ran this script in each directory:

foreach f (*.[ch] *.cpp)
    sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f
end


Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2005-08-13 15:53:35 -05:00
James Laird
8570c314ef [svn-r10729] Purpose:
Cray X1 Port

Description:
Porting 1.7 branch to Cray X1.  With these changes, HDF5 builds, but
there are some errors in the tests.  Working on the errors.

Solution:
Added nv1-cray file to config directory.
Cleaned up some code in hl/c++ that was causing compiler to complain.

Platforms tested:
Cray X1, mir, sleipnir

Misc. update:
2005-05-05 11:51:46 -05:00
James Laird
73e5d04993 [svn-r10467]
Purpose:
Made the C++ Packet Table tests look like other HDF5 tests (using PASSED(), etc.).

Platforms tested:
sleipnir, mir, modi4, windows
2005-03-28 14:55:02 -05:00
James Laird
0faa9455fc [svn-r10461]
Purpose:
Bug fix -- ensure that C++ packet table test cleans up its output file.

Platforms tested:
sleipnir (minor change)
2005-03-28 12:07:18 -05:00
James Laird
9452992c09 [svn-r10459]
Purpose:
Added C++ wrapper for Packet Table API.

Description:
Added macro for high-level C++ library (LIBH5CPP_HL), which changes every
Makefile.in.
Added directories for high-level C++ library (though currently only Packet
Table API is supported).
Added both C++ source and tests.

Platforms tested:
sleipnir, mir, modi4

Misc. update:
2005-03-28 11:32:20 -05:00