43 lines
529 B
C
43 lines
529 B
C
#ifndef FZL_VALUE_H
|
|
#define FZL_VALUE_H
|
|
|
|
#include <common/fzl_types.h>
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
// Value container descriptor
|
|
typedef struct
|
|
{
|
|
fzl_type_t type;
|
|
|
|
union
|
|
{
|
|
struct
|
|
{
|
|
const char *value;
|
|
size_t length;
|
|
} s;
|
|
|
|
char c;
|
|
bool b;
|
|
|
|
int8_t i8;
|
|
uint8_t u8;
|
|
|
|
int16_t i16;
|
|
uint16_t u16;
|
|
|
|
int32_t i32;
|
|
uint32_t u32;
|
|
|
|
int64_t i64;
|
|
uint64_t u64;
|
|
|
|
intptr_t i;
|
|
uintptr_t u;
|
|
} as;
|
|
} fzl_value_t;
|
|
|
|
#endif // FZL_VALUE_H
|