13 #ifndef CONFIG_MODULE_PARSE_NO_FLOAT
18 struct token_num_data {
24 struct token_num_data num_data;
26 typedef struct token_num parse_token_num_t;
27 struct token_num_pgm {
29 struct token_num_data num_data;
31 typedef struct token_num_pgm parse_pgm_token_num_t;
33 extern struct token_ops token_num_ops;
35 int8_t parse_num(parse_pgm_token_hdr_t * tk,
36 const char * srcbuf, void * res);
37 int8_t get_help_num(parse_pgm_token_hdr_t * tk,
38 char * dstbuf, uint8_t size);
40 #define TOKEN_NUM_INITIALIZER(structure, field, numtype) \
43 .ops = &token_num_ops, \
44 .offset = offsetof(structure, field), \
51 #endif /* _PARSE_NUM_H_ */