mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-16 10:39:49 +00:00
Remove union mg_val
This commit is contained in:
1 parent
7e26bba8a9
commit
609a0bd905
2 files changed
+1
-17
No files matched your search
+1
-9
@@ -3157,15 +3157,7 @@ enum mg_val_type {
|
||||
MG_VAL_BOOL,
|
||||
MG_VAL_DBL,
|
||||
MG_VAL_STR,
|
||||
MG_VAL_RAW
|
||||
};
|
||||
|
||||
union mg_val {
|
||||
int i;
|
||||
bool b;
|
||||
double d;
|
||||
char *s;
|
||||
void (*fn)(void);
|
||||
MG_VAL_RAW,
|
||||
};
|
||||
|
||||
struct mg_field {
|
||||
|
||||
@@ -15,14 +15,6 @@ enum mg_val_type {
|
||||
MG_VAL_RAW,
|
||||
};
|
||||
|
||||
union mg_val {
|
||||
int i;
|
||||
bool b;
|
||||
double d;
|
||||
char *s;
|
||||
void (*fn)(void);
|
||||
};
|
||||
|
||||
struct mg_field {
|
||||
const char *name;
|
||||
enum mg_val_type type;
|
||||
|
||||
Reference in new issue
Block a user