Minor change
* mail/mail.h: Remove unneeded extern qualifiers.
Showing
1 changed file
with
203 additions
and
206 deletions
... | @@ -180,124 +180,121 @@ extern int skip_empty_attachments; | ... | @@ -180,124 +180,121 @@ extern int skip_empty_attachments; |
180 | extern int multipart_alternative; | 180 | extern int multipart_alternative; |
181 | 181 | ||
182 | /* Functions */ | 182 | /* Functions */ |
183 | extern int mail_alias (int argc, char **argv); | 183 | int mail_alias (int argc, char **argv); |
184 | extern int mail_alt (int argc, char **argv); /* command alternates */ | 184 | int mail_alt (int argc, char **argv); /* command alternates */ |
185 | extern int mail_cd (int argc, char **argv); | 185 | int mail_cd (int argc, char **argv); |
186 | extern int mail_copy (int argc, char **argv); | 186 | int mail_copy (int argc, char **argv); |
187 | extern int mail_decode (int argc, char **argv); | 187 | int mail_decode (int argc, char **argv); |
188 | extern int mail_delete (int argc, char **argv); | 188 | int mail_delete (int argc, char **argv); |
189 | extern int mail_discard (int argc, char **argv); | 189 | int mail_discard (int argc, char **argv); |
190 | extern int mail_dp (int argc, char **argv); | 190 | int mail_dp (int argc, char **argv); |
191 | extern int mail_echo (int argc, char **argv); | 191 | int mail_echo (int argc, char **argv); |
192 | extern int mail_edit (int argc, char **argv); | 192 | int mail_edit (int argc, char **argv); |
193 | extern int mail_else (int argc, char **argv); | 193 | int mail_else (int argc, char **argv); |
194 | extern int mail_endif (int argc, char **argv); | 194 | int mail_endif (int argc, char **argv); |
195 | extern int mail_exit (int argc, char **argv); | 195 | int mail_exit (int argc, char **argv); |
196 | extern int mail_file (int argc, char **argv); | 196 | int mail_file (int argc, char **argv); |
197 | extern int mail_folders (int argc, char **argv); | 197 | int mail_folders (int argc, char **argv); |
198 | extern int mail_followup (int argc, char **argv); | 198 | int mail_followup (int argc, char **argv); |
199 | extern int mail_from (int argc, char **argv); | 199 | int mail_from (int argc, char **argv); |
200 | extern int mail_from0 (msgset_t *mspec, mu_message_t msg, void *data); | 200 | int mail_from0 (msgset_t *mspec, mu_message_t msg, void *data); |
201 | extern void mail_compile_headline (char const *str); | 201 | void mail_compile_headline (char const *str); |
202 | 202 | ||
203 | extern int mail_headers (int argc, char **argv); | 203 | int mail_headers (int argc, char **argv); |
204 | extern int mail_hold (int argc, char **argv); | 204 | int mail_hold (int argc, char **argv); |
205 | extern int mail_help (int argc, char **argv); | 205 | int mail_help (int argc, char **argv); |
206 | extern int mail_if (int argc, char **argv); | 206 | int mail_if (int argc, char **argv); |
207 | extern int mail_inc (int argc, char **argv); | 207 | int mail_inc (int argc, char **argv); |
208 | extern int mail_list (int argc, char **argv); | 208 | int mail_list (int argc, char **argv); |
209 | extern int mail_send (int argc, char **argv); /* command mail */ | 209 | int mail_send (int argc, char **argv); /* command mail */ |
210 | extern int mail_mbox (int argc, char **argv); | 210 | int mail_mbox (int argc, char **argv); |
211 | extern int mail_next (int argc, char **argv); | 211 | int mail_next (int argc, char **argv); |
212 | extern int mail_nounfold (int argc, char **argv); | 212 | int mail_nounfold (int argc, char **argv); |
213 | extern int mail_variable (int argc, char **argv); | 213 | int mail_variable (int argc, char **argv); |
214 | extern int mail_pipe (int argc, char **argv); | 214 | int mail_pipe (int argc, char **argv); |
215 | extern int mail_previous (int argc, char **argv); | 215 | int mail_previous (int argc, char **argv); |
216 | extern int mail_print (int argc, char **argv); | 216 | int mail_print (int argc, char **argv); |
217 | extern int mail_quit (int argc, char **argv); | 217 | int mail_quit (int argc, char **argv); |
218 | extern int mail_reply (int argc, char **argv); | 218 | int mail_reply (int argc, char **argv); |
219 | extern int mail_retain (int argc, char **argv); | 219 | int mail_retain (int argc, char **argv); |
220 | extern int mail_save (int argc, char **argv); | 220 | int mail_save (int argc, char **argv); |
221 | extern int mail_sendheader (int argc, char **argv); | 221 | int mail_sendheader (int argc, char **argv); |
222 | extern int mail_set (int argc, char **argv); | 222 | int mail_set (int argc, char **argv); |
223 | extern int mail_shell (int argc, char **argv); | 223 | int mail_shell (int argc, char **argv); |
224 | extern int mail_execute (int shell, char *progname, int argc, char **argv); | 224 | int mail_execute (int shell, char *progname, int argc, char **argv); |
225 | extern int mail_size (int argc, char **argv); | 225 | int mail_size (int argc, char **argv); |
226 | extern int mail_source (int argc, char **argv); | 226 | int mail_source (int argc, char **argv); |
227 | extern int mail_summary (int argc, char **argv); | 227 | int mail_summary (int argc, char **argv); |
228 | extern int mail_tag (int argc, char **argv); | 228 | int mail_tag (int argc, char **argv); |
229 | extern int mail_top (int argc, char **argv); | 229 | int mail_top (int argc, char **argv); |
230 | extern int mail_touch (int argc, char **argv); | 230 | int mail_touch (int argc, char **argv); |
231 | extern int mail_unalias (int argc, char **argv); | 231 | int mail_unalias (int argc, char **argv); |
232 | extern int mail_undelete (int argc, char **argv); | 232 | int mail_undelete (int argc, char **argv); |
233 | extern int mail_unfold (int argc, char **argv); | 233 | int mail_unfold (int argc, char **argv); |
234 | extern int mail_unset (int argc, char **argv); | 234 | int mail_unset (int argc, char **argv); |
235 | extern int mail_version (int argc, char **argv); | 235 | int mail_version (int argc, char **argv); |
236 | extern int mail_visual (int argc, char **argv); | 236 | int mail_visual (int argc, char **argv); |
237 | extern int mail_warranty (int argc, char **argv); | 237 | int mail_warranty (int argc, char **argv); |
238 | extern int mail_write (int argc, char **argv); | 238 | int mail_write (int argc, char **argv); |
239 | extern int mail_z (int argc, char **argv); | 239 | int mail_z (int argc, char **argv); |
240 | extern int mail_eq (int argc, char **argv); /* command = */ | 240 | int mail_eq (int argc, char **argv); /* command = */ |
241 | extern int mail_setenv (int argc, char **argv); | 241 | int mail_setenv (int argc, char **argv); |
242 | extern int mail_envelope (int argc, char **argv); | 242 | int mail_envelope (int argc, char **argv); |
243 | extern int print_envelope (msgset_t *mspec, mu_message_t msg, void *data); | 243 | int print_envelope (msgset_t *mspec, mu_message_t msg, void *data); |
244 | extern int mail_struct (int argc, char **argv); | 244 | int mail_struct (int argc, char **argv); |
245 | 245 | ||
246 | extern int if_cond (void); | 246 | int if_cond (void); |
247 | 247 | ||
248 | extern void mail_mainloop (char *(*input) (void *, int), void *closure, int do_history); | 248 | void mail_mainloop (char *(*input) (void *, int), void *closure, int do_history); |
249 | extern int mail_copy0 (int argc, char **argv, int mark); | 249 | int mail_copy0 (int argc, char **argv, int mark); |
250 | extern int mail_send0 (compose_env_t *env, int save_to); | 250 | int mail_send0 (compose_env_t *env, int save_to); |
251 | extern void free_env_headers (compose_env_t *env); | 251 | void free_env_headers (compose_env_t *env); |
252 | 252 | ||
253 | /*extern void print_message (mu_message_t mesg, char *prefix, int all_headers, FILE *file);*/ | 253 | /*extern void print_message (mu_message_t mesg, char *prefix, int all_headers, FILE *file);*/ |
254 | 254 | ||
255 | extern int mail_mbox_commit (void); | 255 | int mail_mbox_commit (void); |
256 | extern int mail_is_my_name (const char *name); | 256 | int mail_is_my_name (const char *name); |
257 | extern void mail_set_my_name (char *name); | 257 | void mail_set_my_name (char *name); |
258 | extern char *mail_whoami (void); | 258 | char *mail_whoami (void); |
259 | extern int mail_header_is_visible (const char *str); | 259 | int mail_header_is_visible (const char *str); |
260 | extern int mail_header_is_unfoldable (const char *str); | 260 | int mail_header_is_unfoldable (const char *str); |
261 | extern int mail_mbox_close (void); | 261 | int mail_mbox_close (void); |
262 | extern char *mail_expand_name (const char *name); | 262 | char *mail_expand_name (const char *name); |
263 | 263 | ||
264 | extern void send_append_header (char const *text); | 264 | void send_append_header (char const *text); |
265 | extern void send_append_header2 (char const *name, char const *value, int mode); | 265 | void send_append_header2 (char const *name, char const *value, int mode); |
266 | extern int send_attach_file (int fd, | 266 | int send_attach_file (int fd, |
267 | const char *filename, | 267 | const char *filename, |
268 | const char *content_filename, | 268 | const char *content_filename, |
269 | const char *content_name, | 269 | const char *content_name, |
270 | const char *content_type, const char *encoding); | 270 | const char *content_type, const char *encoding); |
271 | 271 | ||
272 | extern int escape_check_args (int argc, char **argv, int minargs, int maxargs); | 272 | int escape_check_args (int argc, char **argv, int minargs, int maxargs); |
273 | 273 | ||
274 | extern int escape_shell (int argc, char **argv, compose_env_t *env); | 274 | int escape_shell (int argc, char **argv, compose_env_t *env); |
275 | extern int escape_command (int argc, char **argv, compose_env_t *env); | 275 | int escape_command (int argc, char **argv, compose_env_t *env); |
276 | extern int escape_help (int argc, char **argv, compose_env_t *env); | 276 | int escape_help (int argc, char **argv, compose_env_t *env); |
277 | extern int escape_sign (int argc, char **argv, compose_env_t *env); | 277 | int escape_sign (int argc, char **argv, compose_env_t *env); |
278 | extern int escape_bcc (int argc, char **argv, compose_env_t *env); | 278 | int escape_bcc (int argc, char **argv, compose_env_t *env); |
279 | extern int escape_cc (int argc, char **argv, compose_env_t *env); | 279 | int escape_cc (int argc, char **argv, compose_env_t *env); |
280 | extern int escape_deadletter (int argc, char **argv, compose_env_t *env); | 280 | int escape_deadletter (int argc, char **argv, compose_env_t *env); |
281 | extern int escape_editor (int argc, char **argv, compose_env_t *env); | 281 | int escape_editor (int argc, char **argv, compose_env_t *env); |
282 | extern int escape_print (int argc, char **argv, compose_env_t *env); | 282 | int escape_print (int argc, char **argv, compose_env_t *env); |
283 | extern int escape_headers (int argc, char **argv, compose_env_t *env); | 283 | int escape_headers (int argc, char **argv, compose_env_t *env); |
284 | extern int escape_insert (int argc, char **argv, compose_env_t *env); | 284 | int escape_insert (int argc, char **argv, compose_env_t *env); |
285 | extern int escape_quote (int argc, char **argv, compose_env_t *env); | 285 | int escape_quote (int argc, char **argv, compose_env_t *env); |
286 | extern int escape_type_input (int argc, char **argv, compose_env_t *env); | 286 | int escape_type_input (int argc, char **argv, compose_env_t *env); |
287 | extern int escape_read (int argc, char **argv, compose_env_t *env); | 287 | int escape_read (int argc, char **argv, compose_env_t *env); |
288 | extern int escape_subj (int argc, char **argv, compose_env_t *env); | 288 | int escape_subj (int argc, char **argv, compose_env_t *env); |
289 | extern int escape_to (int argc, char **argv, compose_env_t *env); | 289 | int escape_to (int argc, char **argv, compose_env_t *env); |
290 | extern int escape_visual (int argc, char **argv, compose_env_t *env); | 290 | int escape_visual (int argc, char **argv, compose_env_t *env); |
291 | extern int escape_write (int argc, char **argv, compose_env_t *env); | 291 | int escape_write (int argc, char **argv, compose_env_t *env); |
292 | extern int escape_exit (int argc, char **argv, compose_env_t *env); | 292 | int escape_exit (int argc, char **argv, compose_env_t *env); |
293 | extern int escape_pipe (int argc, char **argv, compose_env_t *env); | 293 | int escape_pipe (int argc, char **argv, compose_env_t *env); |
294 | extern int escape_list_attachments (int argc, char **argv, | 294 | int escape_list_attachments (int argc, char **argv, compose_env_t *env); |
295 | compose_env_t *env); | 295 | int escape_attach (int argc, char **argv, compose_env_t *env); |
296 | extern int escape_attach (int argc, char **argv, compose_env_t *env); | 296 | int escape_remove_attachment (int argc, char **argv, compose_env_t *env); |
297 | extern int escape_remove_attachment (int argc, char **argv, | 297 | int escape_toggle_multipart_type (int argc, char **argv, compose_env_t *env); |
298 | compose_env_t *env); | ||
299 | extern int escape_toggle_multipart_type (int argc, char **argv, | ||
300 | compose_env_t *env); | ||
301 | 298 | ||
302 | enum | 299 | enum |
303 | { | 300 | { |
... | @@ -306,29 +303,28 @@ enum | ... | @@ -306,29 +303,28 @@ enum |
306 | parse_headers_fatal | 303 | parse_headers_fatal |
307 | }; | 304 | }; |
308 | 305 | ||
309 | extern int parse_headers (mu_stream_t input, compose_env_t *env); | 306 | int parse_headers (mu_stream_t input, compose_env_t *env); |
310 | 307 | ||
311 | /* Cursor */ | 308 | /* Cursor */ |
312 | extern void set_cursor (unsigned value); | 309 | void set_cursor (unsigned value); |
313 | extern size_t get_cursor (void); | 310 | size_t get_cursor (void); |
314 | extern void page_invalidate (int hard); | 311 | void page_invalidate (int hard); |
315 | extern void cond_page_invalidate (size_t value); | 312 | void cond_page_invalidate (size_t value); |
316 | extern void page_do (msg_handler_t func, void *data); | 313 | void page_do (msg_handler_t func, void *data); |
317 | extern size_t page_move (off_t offset); | 314 | size_t page_move (off_t offset); |
318 | extern int is_current_message (size_t n); | 315 | int is_current_message (size_t n); |
319 | 316 | ||
320 | /* msgsets */ | 317 | /* msgsets */ |
321 | extern void msgset_free (msgset_t *msg_set); | 318 | void msgset_free (msgset_t *msg_set); |
322 | extern msgset_t *msgset_make_1 (size_t number); | 319 | msgset_t *msgset_make_1 (size_t number); |
323 | extern msgset_t *msgset_append (msgset_t *one, msgset_t *two); | 320 | msgset_t *msgset_append (msgset_t *one, msgset_t *two); |
324 | extern msgset_t *msgset_range (int low, int high); | 321 | msgset_t *msgset_range (int low, int high); |
325 | extern msgset_t *msgset_expand (msgset_t *set, msgset_t *expand_by); | 322 | msgset_t *msgset_expand (msgset_t *set, msgset_t *expand_by); |
326 | extern msgset_t *msgset_dup (const msgset_t *set); | 323 | msgset_t *msgset_dup (const msgset_t *set); |
327 | extern int msgset_parse (const int argc, char **argv, | 324 | int msgset_parse (const int argc, char **argv, int flags, msgset_t **mset); |
328 | int flags, msgset_t **mset); | 325 | int msgset_member (msgset_t *set, size_t n); |
329 | extern int msgset_member (msgset_t *set, size_t n); | 326 | msgset_t *msgset_negate (msgset_t *set); |
330 | extern msgset_t *msgset_negate (msgset_t *set); | 327 | size_t msgset_count (msgset_t *set); |
331 | extern size_t msgset_count (msgset_t *set); | ||
332 | 328 | ||
333 | 329 | ||
334 | #define MDHINT_SELECTED_HEADERS 0x1 | 330 | #define MDHINT_SELECTED_HEADERS 0x1 |
... | @@ -346,79 +342,80 @@ struct mime_descend_closure | ... | @@ -346,79 +342,80 @@ struct mime_descend_closure |
346 | typedef int (*mime_descend_fn) (struct mime_descend_closure *closure, | 342 | typedef int (*mime_descend_fn) (struct mime_descend_closure *closure, |
347 | void *data); | 343 | void *data); |
348 | 344 | ||
349 | extern int mime_descend (struct mime_descend_closure *closure, | 345 | int mime_descend (struct mime_descend_closure *closure, |
350 | mime_descend_fn fun, void *data); | 346 | mime_descend_fn fun, void *data); |
351 | 347 | ||
352 | 348 | ||
353 | 349 | ||
354 | extern int util_do_command (const char *cmd, ...) MU_PRINTFLIKE(1,2); | 350 | int util_do_command (const char *cmd, ...) MU_PRINTFLIKE(1,2); |
355 | 351 | ||
356 | extern int util_foreach_msg (int argc, char **argv, int flags, | 352 | int util_foreach_msg (int argc, char **argv, int flags, |
357 | msg_handler_t func, void *data); | 353 | msg_handler_t func, void *data); |
358 | extern size_t util_range_msg (size_t low, size_t high, int flags, | 354 | size_t util_range_msg (size_t low, size_t high, int flags, |
359 | msg_handler_t func, void *data); | 355 | msg_handler_t func, void *data); |
360 | 356 | ||
361 | extern function_t* util_command_get (const char *cmd); | 357 | function_t *util_command_get (const char *cmd); |
362 | 358 | ||
363 | extern void *util_find_entry (void *table, size_t nmemb, size_t size, | 359 | void *util_find_entry (void *table, size_t nmemb, size_t size, |
364 | const char *cmd); | 360 | const char *cmd); |
365 | extern int util_help (void *table, size_t nmemb, size_t size, const char *word); | 361 | int util_help (void *table, size_t nmemb, size_t size, const char *word); |
366 | extern int util_command_list (void *table, size_t nmemb, size_t size); | 362 | int util_command_list (void *table, size_t nmemb, size_t size); |
367 | 363 | ||
368 | extern const struct mail_command_entry *mail_find_command (const char *cmd); | 364 | const struct mail_command_entry *mail_find_command (const char *cmd); |
369 | extern const struct mail_escape_entry *mail_find_escape (const char *cmd); | 365 | const struct mail_escape_entry *mail_find_escape (const char *cmd); |
370 | extern int mail_command_help (const char *command); | 366 | int mail_command_help (const char *command); |
371 | extern int mail_escape_help (const char *command); | 367 | int mail_escape_help (const char *command); |
372 | extern void mail_command_list (void); | 368 | void mail_command_list (void); |
373 | extern const struct mail_command *mail_command_name (int i); | 369 | const struct mail_command *mail_command_name (int i); |
374 | 370 | ||
375 | extern int util_getcols (void); | 371 | int util_getcols (void); |
376 | extern int util_getlines (void); | 372 | int util_getlines (void); |
377 | extern int util_screen_lines (void); | 373 | int util_screen_lines (void); |
378 | extern int util_screen_columns (void); | 374 | int util_screen_columns (void); |
379 | extern int util_get_crt (void); | 375 | int util_get_crt (void); |
380 | extern struct mailvar_variable *mailvar_find_variable (const char *var, int create); | 376 | struct mailvar_variable *mailvar_find_variable (const char *var, int create); |
381 | extern int mailvar_get (void *ptr, const char *variable, | 377 | int mailvar_get (void *ptr, const char *variable, |
382 | enum mailvar_type type, int warn); | 378 | enum mailvar_type type, int warn); |
383 | int mailvar_is_true (char const *name); | 379 | int mailvar_is_true (char const *name); |
384 | 380 | ||
385 | extern void mailvar_print (int set); | 381 | void mailvar_print (int set); |
386 | extern void mailvar_variable_format (mu_stream_t, | 382 | void mailvar_variable_format (mu_stream_t, |
387 | const struct mailvar_variable *, | 383 | const struct mailvar_variable *, |
388 | const char *defval); | 384 | const char *defval); |
389 | 385 | ||
390 | #define MOPTF_OVERWRITE 0x001 | 386 | #define MOPTF_OVERWRITE 0x001 |
391 | #define MOPTF_QUIET 0x002 | 387 | #define MOPTF_QUIET 0x002 |
392 | #define MOPTF_UNSET 0x004 | 388 | #define MOPTF_UNSET 0x004 |
393 | extern int mailvar_set (const char *name, void *value, | 389 | int mailvar_set (const char *name, void *value, |
394 | enum mailvar_type type, int flags); | 390 | enum mailvar_type type, int flags); |
395 | extern int util_isdeleted (size_t msgno); | 391 | int util_isdeleted (size_t msgno); |
396 | extern char *util_get_homedir (void); | 392 | char *util_get_homedir (void); |
397 | extern char *util_fullpath (const char *inpath); | 393 | char *util_fullpath (const char *inpath); |
398 | extern char *util_folder_path (const char *name); | 394 | char *util_folder_path (const char *name); |
399 | extern char *util_get_sender (int msgno, int strip); | 395 | char *util_get_sender (int msgno, int strip); |
400 | 396 | ||
401 | extern void util_slist_print (mu_list_t list, int nl); | 397 | void util_slist_print (mu_list_t list, int nl); |
402 | extern int util_slist_lookup (mu_list_t list, const char *str); | 398 | int util_slist_lookup (mu_list_t list, const char *str); |
403 | extern void util_slist_add (mu_list_t *list, char *value); | 399 | void util_slist_add (mu_list_t *list, char *value); |
404 | extern void util_slist_remove (mu_list_t *list, char *value); | 400 | void util_slist_remove (mu_list_t *list, char *value); |
405 | extern void util_slist_destroy (mu_list_t *list); | 401 | void util_slist_destroy (mu_list_t *list); |
406 | extern char *util_slist_to_string (mu_list_t list, const char *delim); | 402 | char *util_slist_to_string (mu_list_t list, const char *delim); |
407 | extern void util_strcat (char **dest, const char *str); | 403 | void util_strcat (char **dest, const char *str); |
408 | extern char *util_outfolder_name (char *str); | 404 | char *util_outfolder_name (char *str); |
409 | extern void util_save_outgoing (mu_message_t msg, char *savefile); | 405 | void util_save_outgoing (mu_message_t msg, char *savefile); |
410 | extern int util_error_range (size_t msgno); | 406 | int util_error_range (size_t msgno); |
411 | extern void util_noapp (void); | 407 | void util_noapp (void); |
412 | extern int util_tempfile (char **namep); | 408 | int util_tempfile (char **namep); |
413 | extern void util_msgset_iterate (msgset_t *msgset, | 409 | void util_msgset_iterate (msgset_t *msgset, |
414 | int (*fun) (mu_message_t, msgset_t *, void *), | 410 | int (*fun) (mu_message_t, msgset_t *, void *), |
415 | void *closure); | 411 | void *closure); |
416 | extern int util_get_content_type (mu_header_t hdr, char **value, char **args); | 412 | int util_get_content_type (mu_header_t hdr, char **value, char **args); |
417 | extern int util_get_hdr_value (mu_header_t hdr, const char *name, char **value); | 413 | int util_get_hdr_value (mu_header_t hdr, const char *name, char **value); |
418 | extern int util_merge_addresses (char **addr_str, const char *value); | 414 | int util_merge_addresses (char **addr_str, const char *value); |
419 | extern int util_header_expand (mu_header_t *hdr); | 415 | int util_header_expand (mu_header_t *hdr); |
420 | extern int util_get_message (mu_mailbox_t mbox, size_t msgno, mu_message_t *msg); | 416 | int util_get_message (mu_mailbox_t mbox, size_t msgno, mu_message_t *msg); |
421 | void util_cache_command (mu_list_t *list, const char *fmt, ...) MU_PRINTFLIKE(2,3); | 417 | void util_cache_command (mu_list_t *list, const char *fmt, ...) |
418 | MU_PRINTFLIKE(2,3); | ||
422 | void util_run_cached_commands (mu_list_t *list); | 419 | void util_run_cached_commands (mu_list_t *list); |
423 | const char *util_reply_prefix (void); | 420 | const char *util_reply_prefix (void); |
424 | void util_rfc2047_decode (char **value); | 421 | void util_rfc2047_decode (char **value); |
... | @@ -434,25 +431,25 @@ void format_msgset (mu_stream_t str, const msgset_t *msgset, size_t *count); | ... | @@ -434,25 +431,25 @@ void format_msgset (mu_stream_t str, const msgset_t *msgset, size_t *count); |
434 | 431 | ||
435 | int is_address_field (const char *name); | 432 | int is_address_field (const char *name); |
436 | 433 | ||
437 | extern int ml_got_interrupt (void); | 434 | int ml_got_interrupt (void); |
438 | extern void ml_clear_interrupt (void); | 435 | void ml_clear_interrupt (void); |
439 | extern void ml_readline_init (void); | 436 | void ml_readline_init (void); |
440 | extern int ml_reread (const char *prompt, char **text); | 437 | int ml_reread (const char *prompt, char **text); |
441 | extern char *ml_readline (const char *prompt); | 438 | char *ml_readline (const char *prompt); |
442 | extern char *ml_readline_with_intr (const char *prompt); | 439 | char *ml_readline_with_intr (const char *prompt); |
443 | 440 | ||
444 | extern char *alias_expand (const char *name); | 441 | char *alias_expand (const char *name); |
445 | extern void alias_destroy (const char *name); | 442 | void alias_destroy (const char *name); |
446 | 443 | ||
447 | typedef struct alias_iterator *alias_iterator_t; | 444 | typedef struct alias_iterator *alias_iterator_t; |
448 | extern char *alias_find_first (const char *prefix, alias_iterator_t *itr); | 445 | char *alias_find_first (const char *prefix, alias_iterator_t *itr); |
449 | extern const char *alias_iterate_next (alias_iterator_t itr); | 446 | const char *alias_iterate_next (alias_iterator_t itr); |
450 | extern const char *alias_iterate_first (const char *p, alias_iterator_t *itr); | 447 | const char *alias_iterate_first (const char *p, alias_iterator_t *itr); |
451 | extern void alias_iterate_end (alias_iterator_t *itr); | 448 | void alias_iterate_end (alias_iterator_t *itr); |
452 | 449 | ||
453 | extern int mail_sender (int argc, char **argv); | 450 | int mail_sender (int argc, char **argv); |
454 | extern int mail_nosender (int argc, char **argv); | 451 | int mail_nosender (int argc, char **argv); |
455 | extern mu_address_t get_sender_address (mu_message_t msg); | 452 | mu_address_t get_sender_address (mu_message_t msg); |
456 | 453 | ||
457 | #define COMPOSE_APPEND 0 | 454 | #define COMPOSE_APPEND 0 |
458 | #define COMPOSE_REPLACE 1 | 455 | #define COMPOSE_REPLACE 1 |
... | @@ -465,7 +462,7 @@ char *compose_header_get (compose_env_t *env, char *name, char *defval); | ... | @@ -465,7 +462,7 @@ char *compose_header_get (compose_env_t *env, char *name, char *defval); |
465 | void compose_destroy (compose_env_t *env); | 462 | void compose_destroy (compose_env_t *env); |
466 | 463 | ||
467 | #ifndef HAVE_READLINE_READLINE_H | 464 | #ifndef HAVE_READLINE_READLINE_H |
468 | extern char *readline (char *prompt); | 465 | char *readline (char *prompt); |
469 | #endif | 466 | #endif |
470 | 467 | ||
471 | /* Flags for util_get_message */ | 468 | /* Flags for util_get_message */ |
... | @@ -482,18 +479,18 @@ extern char *readline (char *prompt); | ... | @@ -482,18 +479,18 @@ extern char *readline (char *prompt); |
482 | #define MAIL_ATTRIBUTE_SHOWN 0x0010 | 479 | #define MAIL_ATTRIBUTE_SHOWN 0x0010 |
483 | #define MAIL_ATTRIBUTE_TOUCHED 0x0020 | 480 | #define MAIL_ATTRIBUTE_TOUCHED 0x0020 |
484 | 481 | ||
485 | extern void ml_attempted_completion_over (void); | 482 | void ml_attempted_completion_over (void); |
486 | 483 | ||
487 | #ifdef WITH_READLINE | 484 | #ifdef WITH_READLINE |
488 | extern char **file_compl (int argc, char **argv, int ws); | 485 | char **file_compl (int argc, char **argv, int ws); |
489 | extern char **no_compl (int argc, char **argv, int ws); | 486 | char **no_compl (int argc, char **argv, int ws); |
490 | extern char **msglist_compl (int argc, char **argv, int ws); | 487 | char **msglist_compl (int argc, char **argv, int ws); |
491 | extern char **msglist_file_compl (int argc, char **argv, int ws); | 488 | char **msglist_file_compl (int argc, char **argv, int ws); |
492 | extern char **dir_compl (int argc, char **argv, int ws); | 489 | char **dir_compl (int argc, char **argv, int ws); |
493 | extern char **command_compl (int argc, char **argv, int ws); | 490 | char **command_compl (int argc, char **argv, int ws); |
494 | extern char **alias_compl (int argc, char **argv, int ws); | 491 | char **alias_compl (int argc, char **argv, int ws); |
495 | extern char **mailvar_set_compl (int argc, char **argv, int ws); | 492 | char **mailvar_set_compl (int argc, char **argv, int ws); |
496 | extern char **exec_compl (int argc, char **argv, int ws); | 493 | char **exec_compl (int argc, char **argv, int ws); |
497 | #else | 494 | #else |
498 | # define file_compl NULL | 495 | # define file_compl NULL |
499 | # define no_compl NULL | 496 | # define no_compl NULL | ... | ... |
-
Please register or sign in to post a comment