/**
Value union to store primitive value types
值联合用于存储基本值类型
*/
typedef struct WebsValue {
union {
char flag;
char byteint;
short shortint;
char percent;
long integer;
long hex;
long octal;
long big[2];
#if ME_FLOAT
double floating;
#endif
char* string;
char* bytes;
char* errmsg;
void* symbol;
} value;
WebsType type;
uint valid : 8;
uint allocated : 8; /* String was allocated */
} WebsValue;
goahead中WebsValue结构体
最新推荐文章于 2024-07-19 15:45:46 发布
这篇文章详细描述了WebsValue结构,它是一个用union来存储不同类型的基本值(如char、short、integer、double、字符串等)的类型,适用于需要灵活处理不同值类型的场景。
摘要由CSDN通过智能技术生成