summaryrefslogtreecommitdiffstats
path: root/fortran/src/H5match_types.c
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r26547] Merged changes from the trunk into the branch:Scot Breitenfeld2015-03-231-99/+103
| | | | | | svn merge -r26029:26536 https://svn.hdfgroup.uiuc.edu/hdf5/trunk/fortran Tested: h5committest
* [svn-r24728] Description:Quincey Koziol2014-02-211-14/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bring r24726 & r24727 from trunk to 1.8 branch: Description: Revert some earlier usage of strncpy, which was incorrect. Bring Coverity changes from branch back to trunk: r20821: Use HDstrncpy. --gh (Fixed already, with strdup) r20822: (Not merged, incorrect use of HDstrncpy()) r20823: (Not merged, incorrect use of HDstrncpy()) r20824: Maintenance: Bug fix: addressed CID 666. Value stored at *expression_len should be used in the call to HD5packFstring to avoid overflow (and unnecessary arithmetic calculation and casting) r20825: Issue 642: Added check for error and handler with print to stderr and exit. r20826: Undo revision 20818, as that issue has already been fixed in the 1.8 branch and trunk (but not coverity branch) r20827: (Not merged, incorrect use of HDstrncpy()) r20828: Use HDstrncpy. --gh (Corrected use of strncpy()) r20829: Check return of H5Lget_val(print_udata->fid, path, targbuf, linfo->u.val_size + 1, H5P_DEFAULT) and if error set trgbuf[0] to 0. Check if H5Lunpack_elink_val(targbuf, linfo->u.val_size, NULL, &filename, &objname) was successful and allow print. Otherwise filename and objname are not created. (init those to NULL) r20830: resolved coverity issues 939, 940, 941, 944, and 947. all were complaints about use of sprintf, and in all cases, the buffers used were large enough for all eventualities. Resolved issue by replacing calls to sprintf with calls to snprintf. r20831: Maintenance: Addressed CID 852 Replaced sprintf with snprintf r20832: Purpose: Fix valgrind issues with hl/examples/ex_image2 Description: Modified hl/examples/ex_image2 to free global "gbuf" before exit. Tested on: Mac OSX/64 10.9.1 (amaon) w/C++, FORTRAN & Threadsafety (too minor to require h5committest)
* [svn-r23330] Merged r23325 from the trunk into the branch.Scot Breitenfeld2013-03-061-0/+13
| | | | Tested: jam (intel)
* [svn-r22840] Merged changes from the trunk into the branch,Scot Breitenfeld2012-09-281-1/+23
| | | | | | | svn merge -r22479:22826 https://svn.hdfgroup.uiuc.edu/hdf5/trunk/fortran tested: jam (gnu, intel, pgi) koala (gnu, pgi)
* [svn-r21574] Description:Scot Breitenfeld2011-10-141-38/+10
| | | | merged r21434 from trunk,
* [svn-r21421] Merged the Fortran 2003 changes from the trunk into the 1.8 ↵Scot Breitenfeld2011-09-271-113/+143
| | | | | | | | | | | branch, used: svn merge -r 20506:21414 https://svn.hdfgroup.uiuc.edu/hdf5/trunk/fortran Tested: jam (gnu, intel, pgi compilers) Also merged effected non-Fortran files: svn merge -r21247:r21248 https://svn.hdfgroup.uiuc.edu/hdf5/trunk/src/libhdf5.settings.in
* [svn-r18198] Description:Quincey Koziol2010-01-301-6/+6
| | | | | | | | | Trim trailing whitespace from source code files, with following command: find . \( -name "*.[ch]" -or -name "*.cpp" -or -name "*.f90" \) -print |xargs -n 1 sed -i "" 's/[[:blank:]]*$//' Tested on: None - eyeballed only
* [svn-r17051] merge changes from the trunk into the branchScot Breitenfeld2009-06-151-7/+7
| | | | | | | svn merge -r 16797:17050 https://svn.hdfgroup.uiuc.edu/hdf5/trunk/fortran platforms tested: smirom: ifort, icc
* [svn-r16490] Fixed bug #1459 by eliminating the macro long_long and ↵Allen Byrne2009-02-181-8/+8
| | | | | | | | | replacing all instances with long long. Tested: h5comittest fedora 10 x64 XP32, VNET
* [svn-r16197] Maintenance: Merged trunk into the hdf5_1_8 branchScot Breitenfeld2008-12-151-57/+196
| | | | (used svn merge -r 15741:16196 http://svn.hdfgroup.uiuc.edu/hdf5/trunk/fortran).
* [svn-r12440] Purpose:Quincey Koziol2006-06-271-4/+4
| | | | | | | | | | | Code cleanup Description: Trim trailing whitespace in Makefile.am and C/C++ source files to make diffing changes easier. Platforms tested: None necessary, whitespace only change
* [svn-r12270] Purpose: Bug fix (it is quite serious, so I decided to check ↵Elena Pourmal2006-04-171-4/+4
| | | | | | | | | | | | | | | the fix in) Description: H5match_types uses reserved "INT" string and writes it to the H5H5fortran_types.f90 file. If application uses Fortran intrinsic INT and HDF5, compilation fails since it becomes redefined in H5H5fortran_types.f90. Solution: Rename INT to Fortran_INTEGER Platforms tested: copper, shanti, heping with g95 Misc. update:
* [svn-r11543] Purpose:James Laird2005-10-111-1/+18
| | | | | | | | | | | | Copyright fix Description: Added copyright notice to fortran/src/H5match_types.c and fortran/src/H5test_kind.f90 Platforms tested: heping
* [svn-r11372] Purpose: Maintenance/improvementElena Pourmal2005-09-081-1/+134
| | | | | | | | | | | | | | | | Description: Added support for "big" REAL and DOUBLE PRECISION datatypes (i.e. sizes of Fortran real and double precision may be 8 and/or 16 bytes; usually specified by compilers flags like -r8, -r16, -d8, etc.) Solution: Added code to generate all necessary datatypes on a fly. Platforms tested: heping with g95 (-r8, -d8) mir with ifc (-r16, -r8) Note: multi file test failed when REAL is 128 bit. I will address this later. Misc. update:
* [svn-r11370] Purpose: Typo fixElena Pourmal2005-09-071-1/+1
| | | | | | | | | | Description: Fixed a typo introduced by my previous check in Solution: Platforms tested: heping Misc. update:
* [svn-r11359] Purpose: Bug fix/maintenance/new featureElena Pourmal2005-09-071-0/+2
| | | | | | | | | | | | | | | | | | | Description: Currently we are trying to match excatly Fortran and C types. Unfortunately, some systems (SX-6) provide compiler switches (-ew) that make ALL Fortran types to be at least of size 8. As a result, Fortran library cannot be compiled. Solution: Allow INTEGER(HID_T) type to be 8 bytes if necessary. The values of this type are originated in the C library and can be safely passed back and forth. Please note that we cannot do the same for INTEGER(SIZE_T) type. Fortunately there is a switch that allows size_t be 8 bytes for both C and Fortran compilers. Platforms tested: It is a minor change, therefore SX-6 only; daily tests will do the rest :-) Misc. update:
* [svn-r11245] Purpose:Quincey Koziol2005-08-131-4/+4
| | | | | | | | | | | | | | | | | | | | 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
* [svn-r10970] Purpose: New feature/bug #350 fixElena Pourmal2005-06-221-4/+4
| | | | | | | | | | | | | | | | | | | | Description: When compiler flag was used to set the size of Fortran integer to 8 bytes, library would fail. Solution: Cleaned up the code; added detection of Fortran INTEGER type size and appropriately defined int_f type for C-stubs routines. Platforms tested: Solaris 2.8 32 and 64-bit, AIX 5.1 64-bit parallel PGI Fortran with -i8 flag on heping Absoft Fortran with -i8 flag on heping g95 on mir (Fortran integer is 8 bytes by default that cannot be changed - compiler bug ;-) AIX Fortran with -qintsize=8 32 and 64-bit modes on copper Misc. update:
* [svn-r10736] Purpose:Quincey Koziol2005-05-071-144/+48
| | | | | | | | | | | Code cleanup Description: Clean up some compiler warnings Platforms tested: FreeBSD 4.11 (sleipnir) h5committest
* [svn-r10726] Purpose:James Laird2005-05-041-2/+2
| | | | | | | | | | | Bug fix Description: Removed Makefile.am code to install .mod files in fortran/testpar. Fixed warnings in H5match_types.c Platforms tested: heping
* [svn-r10722] Purpose:James Laird2005-05-031-8/+8
| | | | | | | | | | | Bug fix Description: Forgot to check in new version of H5match_types.c that uses long_long instead of long long. Platforms tested: mir, modi4, pommier
* [svn-r10701] James Laird2005-04-291-1/+3
| | | | | | | | | | | | | | | | | Purpose: Bug fix Description: Some platforms (Windows) don't have the long long type, which causes automatic Fortran type matching to fail. A solution is to use HDF5's long_long type. Solution: Changed H5match_types.c to use long_long type. Moved definition of long_long out of H5private.h and into H5public.h. Platforms tested: mir, copper, pommier
* [svn-r10657] Purpose:James Laird2005-04-251-0/+352
Configuration feature Description: Fortran integer types (not reals) are now automatically detected at build-time. Solution: Two helper programs are used, one to detect what types the Fortran compiler has access to, and one to generate header files for C and Fortran matching up types. Platforms tested: mir, copper, modi4, pommier (last week) Misc. update: MANIFEST updated, H5f90fortran_types.f90 removed from configure.in, since it is not longer generated by configure.