X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/9218e2cd90aabd1d559b2bd0a594a92f72e92447..937ee92013bed7b3ebd30fff2c17a751d37b1a61:/h/prototypes.h diff --git a/h/prototypes.h b/h/prototypes.h index 9a2b41a4..7cce0ba7 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -16,11 +16,11 @@ char *etcpath(char *); struct msgs_array; void add_profile_entry (const char *, const char *); -void inform(char *fmt, ...); -void adios (const char *, const char *, ...) NORETURN; -void admonish (char *, char *, ...); -void advertise (const char *, char *, const char *, va_list); -void advise (const char *, const char *, ...); +void inform(char *fmt, ...) CHECK_PRINTF(1, 2); +void adios (const char *, const char *, ...) CHECK_PRINTF(2, 3) 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); char **argsplit (char *, char **, int *); void argsplit_msgarg (struct msgs_array *, char *, char **); void argsplit_insert (struct msgs_array *, char *, char **); @@ -225,14 +225,19 @@ int m_atoi (char *); char *m_backup (const char *); int m_convert (struct msgs *, char *); char *m_draft (char *, char *, int, int *); + +m_getfld_state_t m_getfld_state_init(FILE *iob); void m_getfld_state_reset (m_getfld_state_t *); void m_getfld_state_destroy (m_getfld_state_t *); 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); char *m_name (int); void m_unknown(m_getfld_state_t *, FILE *); +void m_unknown2(m_getfld_state_t *); /* * Clear the screen, using the appropriate entry from the terminfo database @@ -345,22 +350,6 @@ int ssequal (const char *, const char *); int stringdex (char *, char *); char *trimcpy (char *); -/* - * Remove quotes and quoted-pair sequences from RFC-5322 atoms. - * - * Currently the actual algorithm is simpler than it technically should - * be: any quotes are simply eaten, unless they're preceded by the escape - * character (\). This seems to be sufficient for our needs for now. - * - * Arguments: - * - * input - The input string - * output - The output string; is assumed to have at least as much - * room as the input string. At worst the output string will - * be the same size as the input string; it might be smaller. - * - */ -void unquote_string(const char *input, char *output); int uprf (const char *, const char *); int vfgets (FILE *, char **);