X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=init.c;h=da7227dc2f52c83182157114a2f48538e42dd78b;hp=8f6070cda2470575589b1748608b8ea3a0103e32;hb=627215940cb13e74999ab56375dbb615e22f23bd;hpb=e00a897e094ccd0c1ecf8567240d16695dcdb7e5 diff --git a/init.c b/init.c index 8f6070c..da7227d 100644 --- a/init.c +++ b/init.c @@ -2304,9 +2304,6 @@ static int mutt_execute_commands (string_list_t * p) return 0; } -#include "parse.h" -#include "rcparser.h" - void mutt_init (int skip_sys_rc, string_list_t * commands) { struct passwd *pw; @@ -2519,36 +2516,6 @@ void mutt_init (int skip_sys_rc, string_list_t * commands) } } -#if 0 - { - void *parser = rcparseAlloc(malloc); - struct rcstate state; - segment s1 = {" ", 1}; - segment s2 = {"toto", 4 }; - segment s3 = {"titi", 4 }; - segment s4 = {"\"", 1 }; - - mutt_endwin(NULL); - - p_clear(&state, 1); - - rcparseTrace(stderr, "> "); - rcparse(parser, RCTK_ALTERNATIVE_ORDER, s1, &state); - rcparse(parser, RCTK_SPACE, s1, &state); - rcparse(parser, RCTK_ATOM, s2, &state); - rcparse(parser, RCTK_SPACE, s1, &state); - rcparse(parser, RCTK_DQUOTE, s4, &state); - rcparse(parser, RCTK_ATOM, s3, &state); - rcparse(parser, RCTK_SPACE, s1, &state); - rcparse(parser, RCTK_ATOM, s3, &state); - rcparse(parser, RCTK_DQUOTE, s4, &state); - rcparse(parser, RCTK_NL, s1, &state); - rcparse(parser, 0, s1, &state); - - exit(0); - } -#endif - /* Read the user's initialization file. */ if (access (Muttrc, F_OK) != -1) { if (!option (OPTNOCURSES))