summaryrefslogtreecommitdiff
path: root/alpine/reply.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2024-01-30 21:12:06 -0700
committerEduardo Chappa <chappa@washington.edu>2024-01-30 21:12:06 -0700
commiteaa7b17bca60632bc703f97c169ee4af2a519a2a (patch)
tree1c39d658ccf304f7d64fa3ef8ce104a44dcd3c03 /alpine/reply.c
parentf7deb74aa5612d4d49da4ec179e61124e8fa0763 (diff)
downloadalpine-eaa7b17bca60632bc703f97c169ee4af2a519a2a.tar.xz
* Changes in the source code of Alpine to define internal prototypes
of all functions so that they follow modern C standards. This lead to the splitting of the gf_io_t type into two types gf_i_t and gf_o_t with different internal prototypes. More details in the file pith/detach.c. This work was initiated based on a report by Holger Hoffstätte.
Diffstat (limited to 'alpine/reply.c')
-rw-r--r--alpine/reply.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/alpine/reply.c b/alpine/reply.c
index 6ce5b8e6..bb3a72cb 100644
--- a/alpine/reply.c
+++ b/alpine/reply.c
@@ -67,7 +67,7 @@ int reply_poster_followup(ENVELOPE *);
int sigedit_exit_for_pico(struct headerentry *, void (*)(void), int, char **);
long new_mail_for_pico(int, int);
void cmd_input_for_pico(void);
-int display_message_for_pico(int);
+int display_message_for_pico(UCS);
char *checkpoint_dir_for_pico(char *, size_t);
void resize_for_pico(void);
PCOLORS *colors_for_pico(void);
@@ -106,7 +106,7 @@ reply(struct pine *pine_state, ACTION_S *role_arg)
int i, include_text = 0, times = -1, warned = 0, rv = 0,
flags = RSF_QUERY_REPLY_ALL, reply_raw_body = 0;
int rolemsg = 0, copytomsg = 0;
- gf_io_t pc;
+ gf_o_t pc;
PAT_STATE dummy;
REDRAFT_POS_S *redraft_pos = NULL;
ACTION_S *role = NULL, *nrole;
@@ -1380,7 +1380,8 @@ get_signature_file(char *file, int prenewlines, int postnewlines, int is_sig)
STORE_S *store;
int flags;
PIPE_S *syspipe;
- gf_io_t pc, gc;
+ gf_o_t pc;
+ gf_i_t gc;
long start;
if((store = so_get(CharStar, NULL, EDIT_ACCESS)) != NULL){
@@ -1498,7 +1499,7 @@ forward(struct pine *ps, ACTION_S *role_arg)
BODY *orig_body, *body = NULL;
REPLY_S reply;
void *msgtext = NULL;
- gf_io_t pc;
+ gf_o_t pc;
int impl, template_len = 0;
PAT_STATE dummy;
REDRAFT_POS_S *redraft_pos = NULL;
@@ -1872,7 +1873,8 @@ forward_text(struct pine *pine_state, void *text, SourceType source)
{
ENVELOPE *env;
BODY *body;
- gf_io_t pc, gc;
+ gf_o_t pc;
+ gf_i_t gc;
STORE_S *msgtext;
char *enc_error, *sig;
ACTION_S *role = NULL;
@@ -2077,7 +2079,8 @@ signature_edit(char *sigfile, char *title)
char sig_path[MAXPATH+1], errbuf[2000], *errstr = NULL;
char *ret = NULL;
STORE_S *msgso, *tmpso = NULL;
- gf_io_t gc, pc;
+ gf_i_t gc;
+ gf_o_t pc;
PICO pbf;
struct variable *vars = ps_global->vars;
REMDATA_S *rd = NULL;
@@ -2230,7 +2233,7 @@ signature_edit(char *sigfile, char *title)
mswin_setwindowmenu (MENU_DEFAULT);
#endif
if(editor_result & COMP_GOTHUP){
- hup_signal(); /* do what's normal for a hup */
+ hup_signal(0); /* do what's normal for a hup */
}
else{
fix_windsize(ps_global);
@@ -2389,7 +2392,7 @@ signature_edit_lit(char *litsig, char **result, char *title, HelpType composer_h
mswin_setwindowmenu (MENU_DEFAULT);
#endif
if(editor_result & COMP_GOTHUP){
- hup_signal(); /* do what's normal for a hup */
+ hup_signal(0); /* do what's normal for a hup */
}
else{
fix_windsize(ps_global);
@@ -2589,7 +2592,7 @@ Args: x -- char processed
Returns:
----*/
int
-display_message_for_pico(int x)
+display_message_for_pico(UCS x)
{
int rv;