15 #ifndef CONFIG_MODULE_PARSE_NO_FLOAT
20 struct token_num_data {
26 struct token_num_data num_data;
28 typedef struct token_num parse_token_num_t;
29 struct token_num_pgm {
31 struct token_num_data num_data;
33 typedef struct token_num_pgm parse_pgm_token_num_t;
35 extern struct token_ops token_num_ops;
37 int8_t parse_num(parse_pgm_token_hdr_t * tk,
38 const char * srcbuf, void * res);
39 int8_t get_help_num(parse_pgm_token_hdr_t * tk,
40 char * dstbuf, uint8_t size);
42 #define TOKEN_NUM_INITIALIZER(structure, field, numtype) \
45 .ops = &token_num_ops, \
46 .offset = offsetof(structure, field), \
53 #endif /* _PARSE_NUM_H_ */