(msgset_parse,util_get_message):
In order to get rid of superfluous 'Inappropriate message' diagnostics and provide a behaviour consistent with that of standard implementations, moved the flags argument from util_get_message to msgset_parse. (msgset_count): New function. (util_isdeleted): Reverted to older declaration (before 2002-10-13).
Showing
1 changed file
with
5 additions
and
3 deletions
... | @@ -254,9 +254,11 @@ extern msgset_t *msgset_append __P ((msgset_t *one, msgset_t *two)); | ... | @@ -254,9 +254,11 @@ extern msgset_t *msgset_append __P ((msgset_t *one, msgset_t *two)); |
254 | extern msgset_t *msgset_range __P ((int low, int high)); | 254 | extern msgset_t *msgset_range __P ((int low, int high)); |
255 | extern msgset_t *msgset_expand __P ((msgset_t *set, msgset_t *expand_by)); | 255 | extern msgset_t *msgset_expand __P ((msgset_t *set, msgset_t *expand_by)); |
256 | extern msgset_t *msgset_dup __P ((const msgset_t *set)); | 256 | extern msgset_t *msgset_dup __P ((const msgset_t *set)); |
257 | extern int msgset_parse __P ((const int argc, char **argv, msgset_t **mset)); | 257 | extern int msgset_parse __P ((const int argc, char **argv, |
258 | int flags, msgset_t **mset)); | ||
258 | extern int msgset_member __P ((msgset_t *set, size_t n)); | 259 | extern int msgset_member __P ((msgset_t *set, size_t n)); |
259 | extern msgset_t *msgset_negate __P((msgset_t *set)); | 260 | extern msgset_t *msgset_negate __P((msgset_t *set)); |
261 | extern size_t msgset_count __P((msgset_t *set)); | ||
260 | 262 | ||
261 | extern int util_do_command __P ((const char *cmd, ...)); | 263 | extern int util_do_command __P ((const char *cmd, ...)); |
262 | 264 | ||
... | @@ -281,7 +283,7 @@ extern int util_getenv __P ((void *ptr, const char *variable, | ... | @@ -281,7 +283,7 @@ extern int util_getenv __P ((void *ptr, const char *variable, |
281 | extern int util_printenv __P ((int set)); | 283 | extern int util_printenv __P ((int set)); |
282 | extern int util_setenv __P ((const char *name, void *value, | 284 | extern int util_setenv __P ((const char *name, void *value, |
283 | mail_env_data_t type, int overwrite)); | 285 | mail_env_data_t type, int overwrite)); |
284 | extern int util_isdeleted __P ((message_t msg)); | 286 | extern int util_isdeleted __P ((size_t msgno)); |
285 | extern char *util_get_homedir __P ((void)); | 287 | extern char *util_get_homedir __P ((void)); |
286 | extern char *util_fullpath __P ((const char *inpath)); | 288 | extern char *util_fullpath __P ((const char *inpath)); |
287 | extern char *util_folder_path __P((const char *name)); | 289 | extern char *util_folder_path __P((const char *name)); |
... | @@ -307,7 +309,7 @@ extern int util_get_hdr_value __P ((header_t hdr, const char *name, char **value | ... | @@ -307,7 +309,7 @@ extern int util_get_hdr_value __P ((header_t hdr, const char *name, char **value |
307 | extern int util_merge_addresses __P((char **addr_str, const char *value)); | 309 | extern int util_merge_addresses __P((char **addr_str, const char *value)); |
308 | extern int util_header_expand __P((header_t *hdr)); | 310 | extern int util_header_expand __P((header_t *hdr)); |
309 | extern int util_get_message __P((mailbox_t mbox, size_t msgno, | 311 | extern int util_get_message __P((mailbox_t mbox, size_t msgno, |
310 | message_t *msg, int flag)); | 312 | message_t *msg)); |
311 | 313 | ||
312 | extern int ml_got_interrupt __P ((void)); | 314 | extern int ml_got_interrupt __P ((void)); |
313 | extern void ml_clear_interrupt __P ((void)); | 315 | extern void ml_clear_interrupt __P ((void)); | ... | ... |
-
Please register or sign in to post a comment