[bug #68251] Load-Save support for MAT-file v7.3 (HDF5-based format)

foreverallama <[email protected]> Fri, 24 Apr 2026 07:16:47 -0400 (EDT)
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
Please use the bug tracker to post updates to a bug report.  The mailing list is intended as a read-only notification stream.  Info posted to this mailing list address won't appear in the tracker database where it is most useful.

Follow-up Comment #6, bug #68251 (group octave):

Regarding API compatibility, right now compatibility macros in Octave are
version based. However, HDF5 docs mention that API compatibility behaviour can
be set by the user during build. For example, "H5Gopen()" could be built such
that it maps to "H5Gopen1()", which would break things in Octave as it would
expect "H5Gopen2" instead based on macro "HAVE_HDF5_18".

We could move to a feature-based flag. Something like
"AC_CHECK_FUNCS([H5Gopen2])" in configure, and then we could define wrappers
like:

inline hid_t octave_H5Gopen(hid_t loc, const char *name)
{
#if defined(HAVE_HDF5_H5GOPEN2)
  return H5Gopen2(loc, name, H5P_DEFAULT);
#else
  return H5Gopen(loc, name);
#endif
}




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68251>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaetRHwAKCRCqLAuaBUf3
TuQAAQDUxpSC9QViBRMK36ups0YitnfRgExurIolhjt7nGGfxQEAzp30ei8HmHCj
pTisFiSs1F4looc9/Cda5pgEN9fTeg0=
=Xt8c
-----END PGP SIGNATURE-----