1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-12-23 04:43:57 +01:00

safer struct

This commit is contained in:
Anthony Scemama 2022-01-07 11:58:24 +01:00
parent 64081e46ad
commit acff2de611

View File

@ -649,11 +649,11 @@ typedef struct trexio_s trexio_t;
#+begin_src c :tangle prefix_s_front.h
struct trexio_s {
char file_name[TREXIO_MAX_FILENAME_LENGTH];
char version[16];
pthread_mutex_t thread_lock;
back_end_t back_end;
char mode;
bool one_based;
char version[16];
char padding[6]; /* Ensures the proper alignment of back ends */
};
#+end_src