case OP_COMPOSE_ATTACH_FILE:
{
- char *prompt, **files;
+ const char *prompt;
+ char **files;
int error, numfiles;
fname[0] = 0;
case OP_COMPOSE_ATTACH_NEWS_MESSAGE:
#endif
{
- char *prompt;
+ const char *prompt;
HEADER *h;
fname[0] = 0;
return (NULL);
}
-void mutt_make_help (char *d, ssize_t dlen, char *txt, int menu, int op)
+void mutt_make_help (char *d, ssize_t dlen, const char *txt, int menu, int op)
{
char buf[STRING];
int mutt_yesorno (const char *msg, int def)
{
event_t ch;
- char *yes = _("yes");
- char *no = _("no");
+ const char *yes = _("yes");
+ const char *no = _("no");
char *answer_string;
ssize_t answer_string_len;
char *expr;
}
#endif
-int mutt_multi_choice (char *prompt, char *letters)
+int mutt_multi_choice (const char *prompt, const char *letters)
{
event_t ch;
int choice;
int oldcount = -1;
int rc = -1;
MUTTMENU *menu;
- char *cp; /* temporary variable. */
+ const char *cp; /* temporary variable. */
int index_hint; /* used to restore cursor position */
int do_buffy_notify = 1;
- int closed = 0; /* did we OP_QUIT or OP_EXIT out of this menu? */
+ int closed = 0; /* did we OP_QUIT or OP_EXIT out of this menu? */
int attach_msg = option (OPTATTACHMSG);
menu = mutt_new_menu ();
int mutt_index_menu (void);
int mutt_is_mail_list (address_t *);
int mutt_is_subscribed_list (address_t *);
-int mutt_multi_choice (char *prompt, char *letters);
+int mutt_multi_choice (const char *prompt, const char *letters);
int mutt_parse_color (BUFFER *, BUFFER *, unsigned long, BUFFER *);
int mutt_parse_uncolor (BUFFER *, BUFFER *, unsigned long, BUFFER *);
int mutt_parse_mono (BUFFER *, BUFFER *, unsigned long, BUFFER *);
#define M_MODEFMT "-- Madmutt: %s"
typedef struct menu_t {
- char *title; /* the title of this menu */
- char *help; /* quickref for the current menu */
+ const char *title; /* the title of this menu */
+ const char *help; /* quickref for the current menu */
void *data; /* extra data for the current menu */
int current; /* current entry */
int max; /* the number of entries in the menu */
* prompt keys override movement keys.
*/
char **dialog; /* dialog lines themselves */
- char *prompt; /* prompt for user, similar to mutt_multi_choice */
- char *keys; /* keys used in the prompt */
+ const char *prompt; /* prompt for user, similar to mutt_multi_choice */
+ const char *keys; /* keys used in the prompt */
/* callback to generate an index line for the requested element */
void (*make_entry) (char *, ssize_t, struct menu_t *, int);
unsigned int last)
{
char buf[HUGE_STRING];
- char *msg = _("Fetching message headers...");
- char *msg2 = _("Fetching headers from cache...");
+ const char *msg = _("Fetching message headers...");
+ const char *msg2 = _("Fetching headers from cache...");
NNTP_DATA *nntp_data = ((NNTP_DATA *) ctx->data);
int ret;
int num;
}
}
-int mutt_pattern_func (int op, char *prompt)
+int mutt_pattern_func (int op, const char *prompt)
{
pattern_t *pat;
char buf[LONG_STRING] = "", *simple, error[STRING];
DO_SLIST(pattern_t, pattern, pattern_delete);
-int mutt_pattern_func (int, char *);
+int mutt_pattern_func (int, const char *);
int mutt_pattern_exec (struct pattern_t *pat, pattern_exec_flag flags,
CONTEXT * ctx, HEADER * h);
pattern_t *mutt_pattern_comp(const char *s, int flags, BUFFER * err);
/* Check capabilities */
if (mode == 2) {
- char *msg = NULL;
+ const char *msg = NULL;
if (!pop_data->expire)
msg = _("Unable to leave messages on server.");
void mutt_draw_tree (CONTEXT *);
void mutt_make_attribution (CONTEXT * ctx, HEADER * cur, FILE * out);
void mutt_make_forward_subject (ENVELOPE * env, CONTEXT * ctx, HEADER * cur);
-void mutt_make_help (char *, ssize_t, char *, int, int);
+void mutt_make_help (char *, ssize_t, const char *, int, int);
char *mutt_compile_help(char *, ssize_t, int, struct mapping_t *);
void mutt_make_misc_reply_headers (ENVELOPE * env, CONTEXT * ctx,
HEADER * cur, ENVELOPE * curenv);
static int mutt_query_save_attachment (FILE * fp, BODY * body, HEADER * hdr,
char **directory)
{
- char *prompt;
+ const char *prompt;
char buf[_POSIX_PATH_MAX], tfile[_POSIX_PATH_MAX];
int is_message;
int append = 0;