mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-19 19:40:56 +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_BOOL,
|
||||||
MG_VAL_DBL,
|
MG_VAL_DBL,
|
||||||
MG_VAL_STR,
|
MG_VAL_STR,
|
||||||
MG_VAL_RAW
|
MG_VAL_RAW,
|
||||||
};
|
|
||||||
|
|
||||||
union mg_val {
|
|
||||||
int i;
|
|
||||||
bool b;
|
|
||||||
double d;
|
|
||||||
char *s;
|
|
||||||
void (*fn)(void);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct mg_field {
|
struct mg_field {
|
||||||
|
|||||||
@@ -15,14 +15,6 @@ enum mg_val_type {
|
|||||||
MG_VAL_RAW,
|
MG_VAL_RAW,
|
||||||
};
|
};
|
||||||
|
|
||||||
union mg_val {
|
|
||||||
int i;
|
|
||||||
bool b;
|
|
||||||
double d;
|
|
||||||
char *s;
|
|
||||||
void (*fn)(void);
|
|
||||||
};
|
|
||||||
|
|
||||||
struct mg_field {
|
struct mg_field {
|
||||||
const char *name;
|
const char *name;
|
||||||
enum mg_val_type type;
|
enum mg_val_type type;
|
||||||
|
|||||||
Reference in new issue
Block a user