reactor-c
C Runtime for Lingua Franca
|
Type information for tokens. Specifically, this struct contains the fields needed to support token types, which carry dynamically allocated data. More...
#include <lf_token.h>
Data Fields | |
size_t | element_size |
void(* | destructor )(void *value) |
void *(* | copy_constructor )(void *value) |
Type information for tokens. Specifically, this struct contains the fields needed to support token types, which carry dynamically allocated data.
void *(* token_type_t::copy_constructor) (void *value) |
The copy constructor or NULL to use memcpy.
void(* token_type_t::destructor) (void *value) |
The destructor or NULL to use the default free().
size_t token_type_t::element_size |
Size of the struct or array element.