Commit Graph

35 Commits

Author SHA1 Message Date
Scott Wegner
21134e48e1 [svn-r13916] Purpose: Fix MinGW inconsistency
Description:
Windows does not accept the buffer size parameter of setvbuf to be less than 2.  Previously, we had our fix split between two files, H5private.h and the Windows H5pubconf.h.  This was a problem for MinGW, because it generates its own H5private.h.  This moves the fix out of H5pubconf.h and into H5private.h.

This shouldn't affect other platforms.

Tested:
MinGW on WinXP
2007-06-26 11:23:59 -05:00
Scott Wegner
5e7acfed72 [svn-r13873] Purpose: Code cleanup
Description:
Changed a macro in H5FDwindows.c from IO_BUF_SIZE to a more specific WINDOWS_MAX_BUF, and moved it to our H5pubconf.h, where users can customize it to their own preference.  

This value is needed because of a bug in the Windows _write function, it is unsafe to write buffers larger than 2GB-1 bytes in one write.

Tested:
VS2005 on WinXP.
2007-06-18 13:19:56 -05:00
Scott Wegner
71c91c6e85 [svn-r13868] Updated the Windows static h5pubconf.h to use our new Windows file driver by default. After thorough testing, we think the windows driver is ready to be included.
I've also updated our Windows documentation file to include 64-bit instructions.  The process is fairly tedious right now, but we hope to make it more straight-forward when we depreciate 6.0 and re-work our project files.

Tested:
32-bit WinXP: VS6, VS.NET, and VS 2005
64-bit WinXP: VS.NET and VS 2005
2007-06-15 11:19:16 -05:00
Scott Wegner
d05df8434b [svn-r13863] Added H5FDwindows.c to Windows project files, although sec2 is still the default.
Also added a Windows-specific macro, WINDOWS_USE_STDIO, which users can define if they'd like the Windows VFD to use the buffered low-level I/O functions.  This is instead of splitting our Windows driver into two separate drivers.  By default, this macro is undefined.

Tested:
VS6 on WinXP
2007-06-14 08:23:59 -05:00
Scott Wegner
3045853b76 [svn-r13852] Added includes in various places to make it possible to set windows as the default vfd. Although sec2 is still default on Windows, it should now be possible to switch by simply changing H5pubconf.h .
Tested:
.NET 2003 on WinXP
2007-06-11 17:27:07 -05:00
Scott Wegner
e2cf0e5f62 [svn-r13851] Further updates to our Windows file driver to make it compatible with both .NET and VS2005.
Still needs extensive testing before it's ready.
2007-06-11 14:16:55 -05:00
Scott Wegner
012fc7d83b [svn-r13834] Addition work on the Windows file driver for 64-bit compatibility, as well as making it compatible for .NET 2003 and VS 6.0. Defined additional macros in H5pubconf.h.
Note that these changes are still not built by default, so shouldn't affect anyone else.

Tested:
VS2005 on WinXP
2007-06-05 10:24:10 -05:00
Scott Wegner
3e1d49f1ec [svn-r13830] Updating our locally-maintained H5pubconf.h for Windows to define the H5_CLEAR_MEMORY macro introduced in rev. 13815.
Tested:
VS2005 on WinXP
2007-06-04 10:51:39 -05:00
Scott Wegner
5aacf74f24 [svn-r13824] Added new Windows low-level file driver. Eventually, this will replace sec2 as the default driver on Windows. However, it still needs some work right now, and is currently not set to build by default.
Tested:
Visual Studio 2005 (still fails a few tests)
2007-05-31 14:01:44 -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
Fang Guo
9aa8b4aa67 [svn-r12187] Purpose:
Maintenance on Windows
Description:
Update H5Tinit.c
Solution:

Platforms tested:
Windows XP
Misc. update:
2006-03-31 17:06:17 -05:00
MuQun Yang
36dda5514c [svn-r12141] Purpose:
portable issue on windows

Description:
setvbuf on visual studio 2005 needs the size to be greater or equal to 2.
<description of setvbuf from msdn library>
Buffer size in bytes. Allowable range: 2 <= size <=
INT_MAX (2147483647). Internally, the value supplied
for size is rounded down to the nearest multiple of 2.

h5import used linebuffer option of setvbuf for stderr and stdout and the size is
0 by default. This causes core dump with visual 2005 on windows 64-bit.

Solution:
1. Use HDsetvbuf inside h5import.c,
2. Define HDsetvbuf inside windows H5pubconf.h for windows to work around
   the core dump of h5import test. This is probably a bug inside visual studio 2005.


Platforms tested:
h5commit(shanti is down)
VS 6.0 on windows XP
VS 8.0 on windows XP-64bit
Misc. update:
2006-03-22 21:32:21 -05:00
Fang Guo
0d008c805c [svn-r11752] Purpose: Maintenance on Windows
Files updates due to the difference of copyright information
Description:

Solution:

Platforms tested:

Misc. update:
2005-12-02 10:50:05 -05:00
Fang Guo
e2f0e6a176 [svn-r11727] Purpose:
Maintenance on Windows
Description:
Comment out H5_HAVE_ATTRIBUTE on windows
Solution:

Platforms tested:

Misc. update:
2005-11-15 16:14:04 -05:00
Fang Guo
42a87cc9a9 [svn-r11666] Purpose:
Add in copyright notice
Description:

Solution:

Platforms tested:

Misc. update:
2005-11-01 14:15:15 -05:00
Fang Guo
54662429c3 [svn-r11663] Purpose:
Add copyright notice
Description:

Solution:

Platforms tested:

Misc. update:
2005-11-01 14:09:05 -05:00
Pedro Vicente Nunes
d09ca66a26 [svn-r11448] Purpose:
new features

Description:

add support for compiling the library and testphdf5 in Windows


Solution:

Platforms tested:
Linux
AIX
Solaris
Windows VC6

Misc. update:
2005-09-21 08:41:09 -05:00
Fang Guo
c8da2c7fdc [svn-r11407] Purpose:
Maintenance on Windows
Description:
Changes made for windows due to the change of h5detect.c
Solution:

Platforms tested:
MSVS 6.0, VS .Net, Intel 8.0 on Windows XP
Misc. update:
2005-09-13 14:13:42 -05:00
Fang Guo
ae138025bb [svn-r11368] Purpose:
Maintenance on Windows
Description:
Add definition for int <-> float conversion exception
Solution:

Platforms tested:
MSVS 6.0 on Windows XP
Misc. update:
2005-09-07 17:17:04 -05:00
Fang Guo
7cd3b94df2 [svn-r11287] Purpose:
Maintenance on Windows
Description:
Fix typoes
H5_HAVE__SNPRINTF should be H5_HAVE_SNPRINTF
Solution:

Platforms tested:

Misc. update:
2005-08-22 13:57:50 -05:00
Fang Guo
a1e557eae3 [svn-r11271] Purpose:
Maintenance
Description:
Add some comments for future thread safe use on windows
Solution:

Platforms tested:

Misc. update:
2005-08-19 15:12:22 -05:00
Fang Guo
3bf0e04aa3 [svn-r11250] Purpose:
Maintenance on Windows
Description:
Add #define H5_HAVE_TMPFILE
Solution:

Platforms tested:

Misc. update:
2005-08-15 17:55:29 -05:00
Fang Guo
234b1830c5 [svn-r10990] Purpose:
Add new macro to remove data conversion errors on visual c++ .Net on windows XP
Description:

Solution:

Platforms tested:
Visual C++ .Net 2003 on windows XP
Misc. update:
2005-06-24 17:06:32 -05:00
Fang Guo
d732cb46bd [svn-r10799] Purpose:
Update H5pubconf.h
Description:

Solution:

Platforms tested:

Misc. update:
2005-05-25 16:04:08 -05:00
Quincey Koziol
55f8e19fc7 [svn-r10699] Purpose:
Code cleanup

Description:
    Switch name & logic from H5_LLONG_TO_FP_CAST_BROKEN to
H5_LLONG_TO_FP_CAST_WORKS, to better match the rest of the library.

Platforms tested:
    FreeBSD 4.11 (sleipnir)
    Too minor to require h5committest
2005-04-29 15:31:29 -05:00
MuQun Yang
c1e2a4b00f [svn-r10665] Purpose:
One dtransform test failed with Intel 8.1 C++ compiler.
Turned off the test with assertion of a macro.

Description:

Solution:

Platforms tested:
Intel C++ 8.1 on .Net 2003.

Misc. update:
2005-04-26 10:53:33 -05:00
MuQun Yang
7946059021 [svn-r10655] Purpose:
Supper 12-byte long double for intel compiler.

Description:
Long double is 12-byte at intel compiler, currently we always set long double to 8-byte.
Change this for intel compiler. This is not the compelete change. H5Tinit.c needs also to be changed to support this.

Solution:

Platforms tested:
Not test yet, since it won't affect other compilers except intel, will test soon.

Misc. update:
2005-04-25 11:47:52 -05:00
MuQun Yang
4260605b14 [svn-r10654] Purpose:
long_long to long_long data transform doesn't work with intel compiler on windows.

Description:
Turned off this test.


Solution:
Need corresponding source code changes, will talk with Leon.

Platforms tested:
VS. Net 2003 + Intel 8.1


Misc. update:
2005-04-25 11:39:39 -05:00
Fang Guo
a2c0a9bde9 [svn-r10650] Purpose:
Update header file for windows.
Description:

Solution:

Platforms tested:

Misc. update:
2005-04-22 17:08:06 -05:00
MuQun Yang
c645c5ce0d [svn-r10566] Purpose:
FOrtran is using macro FC_FUNC or H5_FC_FUNC
Has to update windows H5pubconf.h to be consistent with the
change.

Description:

Solution:

Platforms tested:

VS 6.0 on windows
Misc. update:
2005-04-06 18:47:30 -05:00
Fang Guo
60ad9bc65c [svn-r10521] Purpose:
Update windows misc file.
Description:

Solution:

Platforms tested:

Misc. update:
2005-03-31 13:53:02 -05:00
Fang Guo
4cb01f36d0 [svn-r10283] Purpose:
For windows support, Remove all.zip from HDF5.
Description:
Add H5pubconf.h
Solution:

Platforms tested:
MSVS 6.0 on windows xp.
Misc. update:
2005-03-22 13:38:59 -05:00
Fang Guo
fcbaf2665f [svn-r10282] Purpose:
remove the wrong src code just checked-in

Description:
H5.c is not a windows specific source code; it should be removed.
Solution:

Platforms tested:

Misc. update:
2005-03-22 13:34:24 -05:00
Fang Guo
08714c2d55 [svn-r10280] Purpose:
For windows support, Remove all.zip from HDF5.
Description:
Add H5Tinit source code
Solution:

Platforms tested:
MSVS 6.0 on windows xp.
Misc. update:
2005-03-22 13:23:15 -05:00
Fang Guo
768437d1e0 [svn-r10279] Purpose:
For windows support, Remove all.zip from HDF5.
Description:
Add H5 source code
Solution:

Platforms tested:
MSVS 6.0 on windows xp.
Misc. update:
2005-03-22 13:21:39 -05:00