From f45fee6cbf1e98d3e6c5e1fa2489a5096ab20df6 Mon Sep 17 00:00:00 2001 From: q-posev Date: Tue, 1 Jun 2021 10:41:00 +0200 Subject: [PATCH] explicit types for strings [HDF5] --- src/templates_hdf5/templator_hdf5.org | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/templates_hdf5/templator_hdf5.org b/src/templates_hdf5/templator_hdf5.org index cff65aa..85c7537 100644 --- a/src/templates_hdf5/templator_hdf5.org +++ b/src/templates_hdf5/templator_hdf5.org @@ -413,13 +413,13 @@ trexio_hdf5_has_$group_dset$ (trexio_t* const file) #+begin_src c :tangle hrw_dset_str_hdf5.h :exports none trexio_exit_code trexio_hdf5_has_$group_dset$(trexio_t* const file); -trexio_exit_code trexio_hdf5_read_$group_dset$(trexio_t* const file, $group_dset_dtype$* const $group_dset$, const uint32_t rank, const uint64_t* dims); -trexio_exit_code trexio_hdf5_write_$group_dset$(trexio_t* const file, const $group_dset_dtype$* $group_dset$, const uint32_t rank, const uint64_t* dims); +trexio_exit_code trexio_hdf5_read_$group_dset$(trexio_t* const file, char** const $group_dset$, const uint32_t rank, const uint64_t* dims); +trexio_exit_code trexio_hdf5_write_$group_dset$(trexio_t* const file, const char** $group_dset$, const uint32_t rank, const uint64_t* dims); #+end_src #+begin_src c :tangle read_dset_str_hdf5.c trexio_exit_code -trexio_hdf5_read_$group_dset$ (trexio_t* const file, $group_dset_dtype$* const $group_dset$, const uint32_t rank, const uint64_t* dims) +trexio_hdf5_read_$group_dset$ (trexio_t* const file, char** const $group_dset$, const uint32_t rank, const uint64_t* dims) { if (file == NULL) return TREXIO_INVALID_ARG_1; @@ -486,7 +486,7 @@ trexio_hdf5_read_$group_dset$ (trexio_t* const file, $group_dset_dtype$* const $ #+begin_src c :tangle write_dset_str_hdf5.c trexio_exit_code -trexio_hdf5_write_$group_dset$ (trexio_t* const file, const $group_dset_dtype$* $group_dset$, const uint32_t rank, const uint64_t* dims) +trexio_hdf5_write_$group_dset$ (trexio_t* const file, const char** $group_dset$, const uint32_t rank, const uint64_t* dims) { if (file == NULL) return TREXIO_INVALID_ARG_1;