#define FIXEDSTRING_HELP PSTR("Fixed STRING")
static uint8_t
-get_token_len(const prog_char * s)
+get_token_len(const char * s)
{
- prog_char c;
+ char c;
uint8_t i=0;
c = pgm_read_byte(s+i);
return i;
}
-static const prog_char *
-get_next_token(const prog_char * s)
+static const char *
+get_next_token(PGM_P s)
{
uint8_t i;
i = get_token_len(s);
}
int8_t
-parse_string(parse_pgm_token_hdr_t * tk, const char * buf, void * res)
+parse_string(PGM_P tk, const char * buf, void * res)
{
struct token_string_data sd;
uint8_t token_len;
- const prog_char * str;
+ PGM_P str;
if (! *buf)
return -1;
return token_len;
}
-int8_t complete_get_nb_string(parse_pgm_token_hdr_t * tk)
+int8_t complete_get_nb_string(PGM_P tk)
{
struct token_string_data sd;
int8_t ret=1;
return ret;
}
-int8_t complete_get_elt_string(parse_pgm_token_hdr_t * tk, int8_t idx,
+int8_t complete_get_elt_string(PGM_P tk, int8_t idx,
char * dstbuf, uint8_t size)
{
struct token_string_data sd;
- const prog_char * s;
+ PGM_P s;
uint8_t len;
memcpy_P(&sd, &((struct token_string *)tk)->string_data, sizeof(sd));
}
-int8_t get_help_string(parse_pgm_token_hdr_t * tk, char * dstbuf, uint8_t size)
+int8_t get_help_string(PGM_P tk, char * dstbuf, uint8_t size)
{
struct token_string_data sd;
- const prog_char * s;
+ PGM_P s;
memcpy_P(&sd, &((struct token_string *)tk)->string_data, sizeof(sd));
s = sd.str;