int ret;
int x;
- struct EnterState *es = mutt_new_enter_state();
+ struct EnterState *es = mutt_enter_state_new();
do
{
ret = mutt_enter_string_full(buf, buflen, x, complete, multiple, files, numfiles, es);
} while (ret == 1);
mutt_window_clearline(MuttMessageWindow, 0);
- mutt_free_enter_state(&es);
+ mutt_enter_state_free(&es);
return ret;
}
int mutt_enter_string(char *buf, size_t buflen, int col, int flags)
{
int rc;
- struct EnterState *es = mutt_new_enter_state();
+ struct EnterState *es = mutt_enter_state_new();
do
{
if (SigWinch)
}
rc = mutt_enter_string_full(buf, buflen, col, flags, 0, NULL, NULL, es);
} while (rc == 1);
- mutt_free_enter_state(&es);
+ mutt_enter_state_free(&es);
return rc;
}
return rc;
}
-void mutt_free_enter_state(struct EnterState **esp)
+void mutt_enter_state_free(struct EnterState **esp)
{
if (!esp)
return;
int tabs;
};
-static inline struct EnterState *mutt_new_enter_state(void)
+void mutt_enter_state_free(struct EnterState **esp);
+
+static inline struct EnterState *mutt_enter_state_new(void)
{
return mutt_mem_calloc(1, sizeof(struct EnterState));
}
void mutt_forward_intro(struct Context *ctx, struct Header *cur, FILE *fp);
void mutt_forward_trailer(struct Context *ctx, struct Header *cur, FILE *fp);
void mutt_free_color(int fg, int bg);
-void mutt_free_enter_state(struct EnterState **esp);
void mutt_help(int menu);
void mutt_check_lookup_list(struct Body *b, char *type, size_t len);
void mutt_make_attribution(struct Context *ctx, struct Header *cur, FILE *out);