From c18b75a11d1661d369bfbf67529821d95755b190 Mon Sep 17 00:00:00 2001 From: q-posev Date: Fri, 28 May 2021 17:53:26 +0200 Subject: [PATCH] explicit string type in front end templates --- src/templates_front/templator_front.org | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/templates_front/templator_front.org b/src/templates_front/templator_front.org index f6fd7bf..5e070cc 100644 --- a/src/templates_front/templator_front.org +++ b/src/templates_front/templator_front.org @@ -1407,11 +1407,11 @@ end interface This section concerns API calls related to datasets of strings. - | Function name | Description | - |---------------------------------+-------------------------------------| - | ~trexio_has_$group_dset_str$~ | Check if a dataset exists in a file | - | ~trexio_read_$group_dset_str$~ | Read a dataset | - | ~trexio_write_$group_dset_str$~ | Write a dataset | + | Function name | Description | + |-----------------------------+-------------------------------------| + | ~trexio_has_$group_dset$~ | Check if a dataset exists in a file | + | ~trexio_read_$group_dset$~ | Read a dataset | + | ~trexio_write_$group_dset$~ | Write a dataset | *** C templates for front end @@ -1421,13 +1421,13 @@ end interface #+begin_src c :tangle hrw_dset_str_front.h :exports none trexio_exit_code trexio_has_$group_dset$(trexio_t* const file); -trexio_exit_code trexio_read_$group_dset$(trexio_t* const file, $group_dset_dtype$* const dset); -trexio_exit_code trexio_write_$group_dset$(trexio_t* const file, const $group_dset_dtype$* dset); +trexio_exit_code trexio_read_$group_dset$(trexio_t* const file, char** const dset); +trexio_exit_code trexio_write_$group_dset$(trexio_t* const file, const char** dset); #+end_src #+begin_src c :tangle read_dset_str_front.c trexio_exit_code -trexio_read_$group_dset$ (trexio_t* const file, $group_dset_dtype$* const dset) +trexio_read_$group_dset$ (trexio_t* const file, char** const dset) { if (file == NULL) return TREXIO_INVALID_ARG_1; @@ -1467,7 +1467,7 @@ trexio_read_$group_dset$ (trexio_t* const file, $group_dset_dtype$* const dset) #+begin_src c :tangle write_dset_str_front.c trexio_exit_code -trexio_write_$group_dset$ (trexio_t* const file, const $group_dset_dtype$* dset) +trexio_write_$group_dset$ (trexio_t* const file, const char** dset) { if (file == NULL) return TREXIO_INVALID_ARG_1;