]> diplodocus.org Git - nmh/blobdiff - h/prototypes.h
mhlsbr.c: Don't need to `else' after longjmp() at end of then-block.
[nmh] / h / prototypes.h
index 92ed8ef56e88c4fa81fdf225251e6ace8d6dfe25..e62ea065c68a3eae9cfa3dcc8ba51f73bcf1f029 100644 (file)
@@ -18,6 +18,7 @@ struct msgs_array;
 void add_profile_entry (const char *, const char *);
 void inform(char *fmt, ...) CHECK_PRINTF(1, 2);
 void adios (const char *, const char *, ...) CHECK_PRINTF(2, 3) NORETURN;
+void die(const char *, ...) CHECK_PRINTF(1, 2) NORETURN;
 void admonish (char *, char *, ...) CHECK_PRINTF(2, 3);
 void advertise (const char *, char *, const char *, va_list) CHECK_PRINTF(3, 0);
 void advise (const char *, const char *, ...) CHECK_PRINTF(2, 3);
@@ -26,7 +27,7 @@ void argsplit_msgarg (struct msgs_array *, char *, char **) NONNULL(1, 2, 3);
 void argsplit_insert (struct msgs_array *, char *, char **) NONNULL(1, 2, 3);
 void arglist_free (char *, char **);
 void ambigsw (const char *, const struct swit *) NONNULL(1, 2);
-int atooi(char *) NONNULL(1);
+int atooi(char *) NONNULL(1) PURE;
 char **brkstring (char *, char *, char *) NONNULL(1);
 
 /*
@@ -45,9 +46,9 @@ int client(char *, char *, char *, int, int);
 void closefds(int);
 char *concat (const char *, ...);
 int context_del (char *);
-char *context_find (const char *);
+char *context_find (const char *) PURE;
 char *context_find_by_type (const char *, const char *, const char *);
-int context_find_prefix(const char *);
+int context_find_prefix(const char *) PURE;
 int context_foil (char *);
 void context_read (void);
 void context_replace (char *, char *);
@@ -168,7 +169,7 @@ char *get_charset(void);
 char *getcpy(const char *str);
 
 char *get_default_editor(void);
-char *getfolder(int);
+char *getfolder(int) PURE;
 
 /*
  * Get a string from the terminfo database for the current terminal.
@@ -221,7 +222,7 @@ char *get_term_stringparm(char *capability, long arg1, long arg2);
  */
 int get_term_numcap(char *capability);
 
-int m_atoi (char *);
+int m_atoi (char *) PURE;
 char *m_backup (const char *);
 int m_convert (struct msgs *, char *);
 char *m_draft (char *, char *, int, int *);
@@ -233,7 +234,7 @@ void m_getfld_track_filepos (m_getfld_state_t *, FILE *);
 void m_getfld_track_filepos2(m_getfld_state_t *);
 int m_getfld (m_getfld_state_t *, char[NAMESZ], char *, int *, FILE *);
 int m_getfld2(m_getfld_state_t *, char[NAMESZ], char *, int *);
-int m_gmprot (void);
+int m_gmprot (void) PURE;
 char *m_name (int);
 
 void m_unknown(m_getfld_state_t *, FILE *);
@@ -254,7 +255,7 @@ void print_intro (FILE *, int);
 void print_sw (const char *, const struct swit *, char *, FILE *);
 void print_version (char *);
 void push (void);
-char *r1bindex(char *, int);
+char *r1bindex(char *, int) PURE;
 void readconfig (struct node **, FILE *, const char *, int);
 int refile (char **, char *);
 
@@ -311,7 +312,7 @@ void seq_setcur (struct msgs *, int);
 void seq_setprev (struct msgs *);
 void seq_setunseen (struct msgs *, int);
 int showfile (char **, char *);
-int smatch(const char *, const struct swit *);
+int smatch(const char *, const struct swit *) PURE;
 
 /*
  * Convert a set of bit flags to printable format.
@@ -346,11 +347,11 @@ int smatch(const char *, const struct swit *);
  * from least significant bit to most significant.
  */
 char *snprintb (char *buffer, size_t size, unsigned flags, char *bitfield);
-int ssequal (const char *, const char *);
-int stringdex (char *, char *);
+int ssequal (const char *, const char *) PURE;
+int stringdex (char *, char *) PURE;
 char *trimcpy (char *);
 
-int uprf (const char *, const char *);
+int uprf (const char *, const char *) PURE;
 int vfgets (FILE *, char **);
 
 /*
@@ -374,7 +375,6 @@ int annotate (char *, char *, char *, bool, bool, int, bool);
 void annolist(char *, char *, char *, int);
 void annopreserve(int);
 void m_pclose(void);
-int make_intermediates(char *);
 int mhl(int, char **);
 int mhlsbr(int, char **, FILE *(*)(char *));
 int distout (char *, char *, char *);