return 0;
}
-static int parse_list (BUFFER * buf, BUFFER * s,
- unsigned long data __attribute__ ((unused)),
- BUFFER * err __attribute__ ((unused)))
+static int parse_list(BUFFER * buf, BUFFER * s, unsigned long data,
+ BUFFER * err __attribute__ ((unused)))
{
do {
mutt_extract_token (buf, s, 0);
set_option (OPTFORCEREDRAWINDEX);
}
- mutt_extract_token(buf, s,
- M_TOKEN_QUOTE | M_TOKEN_SPACE | M_TOKEN_SEMICOLON);
+ mutt_extract_token(buf, s, M_TOKEN_QUOTE | M_TOKEN_SPACE);
(*last)->addr = mutt_parse_adrlist((*last)->addr, buf->data);
if (mutt_addrlist_to_idna((*last)->addr, &estr)) {
snprintf (err->data, err->dsize,
every call to this function.
err where to write error messages */
-int mutt_parse_rc_line ( /* const */ char *line, BUFFER * token, BUFFER * err)
+int mutt_parse_rc_line (const char *line, BUFFER * token, BUFFER * err)
{
int i, r = -1;
BUFFER expn;
return 0;
}
+#include "parse.h"
+#include "rcparser.h"
+
void mutt_init (int skip_sys_rc, string_list_t * commands)
{
struct passwd *pw;
}
}
+#if 0
+ {
+ void *parser = ParseAlloc(malloc);
+ segment s1 = {" ", 1};
+ segment s2 = {"toto", 4 };
+ segment s3 = {"titi", 4 };
+ segment s4 = {"\"", 1 };
+
+ mutt_endwin(NULL);
+
+ ParseTrace(stderr, "> ");
+ Parse(parser, RCTK_ALT_ORDER, s1);
+ Parse(parser, RCTK_SPACE, s1);
+ Parse(parser, RCTK_ATOM, s2);
+ Parse(parser, RCTK_SPACE, s1);
+ Parse(parser, RCTK_DQUOTE, s4);
+ Parse(parser, RCTK_ATOM, s3);
+ Parse(parser, RCTK_SPACE, s1);
+ Parse(parser, RCTK_ATOM, s3);
+ Parse(parser, RCTK_DQUOTE, s4);
+ Parse(parser, RCTK_NL, s1);
+ Parse(parser, 0, s1);
+
+ exit(0);
+ }
+#endif
+
/* Read the user's initialization file. */
if (access (Muttrc, F_OK) != -1) {
if (!option (OPTNOCURSES))