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:
parent
64081e46ad
commit
acff2de611
@ -649,11 +649,11 @@ typedef struct trexio_s trexio_t;
|
|||||||
#+begin_src c :tangle prefix_s_front.h
|
#+begin_src c :tangle prefix_s_front.h
|
||||||
struct trexio_s {
|
struct trexio_s {
|
||||||
char file_name[TREXIO_MAX_FILENAME_LENGTH];
|
char file_name[TREXIO_MAX_FILENAME_LENGTH];
|
||||||
char version[16];
|
|
||||||
pthread_mutex_t thread_lock;
|
pthread_mutex_t thread_lock;
|
||||||
back_end_t back_end;
|
back_end_t back_end;
|
||||||
char mode;
|
char mode;
|
||||||
bool one_based;
|
bool one_based;
|
||||||
|
char version[16];
|
||||||
char padding[6]; /* Ensures the proper alignment of back ends */
|
char padding[6]; /* Ensures the proper alignment of back ends */
|
||||||
};
|
};
|
||||||
#+end_src
|
#+end_src
|
||||||
|
Loading…
Reference in New Issue
Block a user