mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-08-25 06:31:43 +02:00
explicit string type in front end templates
This commit is contained in:
parent
42f81b2cc6
commit
c18b75a11d
@ -1408,10 +1408,10 @@ 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 |
|
||||
|-----------------------------+-------------------------------------|
|
||||
| ~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;
|
||||
|
Loading…
Reference in New Issue
Block a user