projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test: adjust for auto-naming anonymous sections
[project/uci.git]
/
ucimap.h
diff --git
a/ucimap.h
b/ucimap.h
index
8386fff
..
5804791
100644
(file)
--- a/
ucimap.h
+++ b/
ucimap.h
@@
-13,7
+13,7
@@
*/
/*
*/
/*
- * This file contains ucimap, an API for mapping UCI to C data structures
+ * This file contains ucimap, an API for mapping UCI to C data structures
*/
#ifndef __UCIMAP_H
*/
#ifndef __UCIMAP_H
@@
-93,7
+93,6
@@
#endif /* __GNUC__ */
#define UCIMAP_OPTION(_type, _field) \
#endif /* __GNUC__ */
#define UCIMAP_OPTION(_type, _field) \
- .type = UCIMAP_CUSTOM, \
.name = #_field, \
.offset = offsetof(_type, _field), \
.detected_type = __optmap_gen_type(_type, _field), \
.name = #_field, \
.offset = offsetof(_type, _field), \
.detected_type = __optmap_gen_type(_type, _field), \
@@
-135,11
+134,11
@@
enum ucimap_type {
UCIMAP_TYPE = 0xf0, /* type mask */
/* subtypes */
UCIMAP_TYPE = 0xf0, /* type mask */
/* subtypes */
- UCIMAP_
STRING
= 0x0,
- UCIMAP_
BOOL
= 0x1,
- UCIMAP_
INT
= 0x2,
- UCIMAP_
SECTION
= 0x3,
- UCIMAP_
CUSTOM
= 0x4,
+ UCIMAP_
CUSTOM
= 0x0,
+ UCIMAP_
STRING
= 0x1,
+ UCIMAP_
BOOL
= 0x2,
+ UCIMAP_
INT
= 0x3,
+ UCIMAP_
SECTION
= 0x4,
UCIMAP_SUBTYPE = 0xf, /* subtype mask */
/* automatically create lists from
UCIMAP_SUBTYPE = 0xf, /* subtype mask */
/* automatically create lists from