X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib.h;h=457ab923dd38e10a1438f16da656b312a19e2606;hp=e07a410edd8148a5ff0db81ba0932229c18ecfe1;hb=58e479307b22481c768214e59616ea71d2858aee;hpb=8b7093aff990803877b20e86826f0693817cbcaf diff --git a/lib.h b/lib.h index e07a410..457ab92 100644 --- a/lib.h +++ b/lib.h @@ -29,47 +29,18 @@ # include # endif -# define TRUE 1 -# define FALSE 0 - -# undef MAX -# undef MIN -# define MAX(a,b) ((a) < (b) ? (b) : (a)) -# define MIN(a,b) ((a) < (b) ? (a) : (b)) - -#define FOREVER while (1) - -# ifndef _EXTLIB_C -extern void (*mutt_error) (const char *, ...); -# endif void mutt_exit (int); -/* The actual library functions. */ - -FILE *safe_fopen (const char *, const char *); +/* Exit values used in send_msg() */ +#define S_ERR 127 +#define S_BKG 126 -char *mutt_concat_path (char *, const char *, const char *, size_t); -char *mutt_read_line (char *, size_t *, FILE *, int *); -char *mutt_skip_whitespace (char *); - -const char *mutt_stristr (const char *, const char *); -const char *mutt_basename (const char *); +/* The actual library functions. */ -int mutt_copy_stream (FILE *, FILE *); -int mutt_copy_bytes (FILE *, FILE *, size_t); int mutt_rx_sanitize_string (char *, size_t, const char *); -int safe_open (const char *, int); -int safe_symlink (const char *, const char *); -int safe_rename (const char *, const char *); -int safe_fclose (FILE **); - -size_t mutt_quote_filename (char *, size_t, const char *); -size_t mutt_strlen (const char *); - void mutt_nocurses_error (const char *, ...); -void mutt_remove_trailing_ws (char *); -void mutt_sanitize_filename (char *, short); -void mutt_unlink (const char *); + +const char *mutt_strsysexit(int e); #endif