static unsigned char directives_stack[32];
static unsigned int directives_index;
-static int do_direct(void)
+static int
+do_direct(void)
{
return directives_stack[directives_index];
}
-static void directive_onoff(int onoff)
+static void
+directive_onoff(int onoff)
{
if (directives_index >= sizeof(directives_stack) - 1) {
fprintf(stderr, "mhbuild: #on/off overflow, continuing\n");
directives_stack[++directives_index] = onoff;
}
-static void directive_init(int onoff)
+static void
+directive_init(int onoff)
{
directives_index = 0;
directives_stack[0] = onoff;
}
-static void directive_pop(void)
+static void
+directive_pop(void)
{
if (directives_index > 0)
directives_index--;
* 'attachment'.
*/
void
-set_disposition (CT ct) {
+set_disposition (CT ct)
+{
if (ct->c_dispo_type == NULL) {
char *cp = context_find_by_type ("disposition", ct->c_ctinfo.ci_type,
ct->c_ctinfo.ci_subtype);
* -1: ignore content and use user's locale to determine charset
*/
void
-set_charset (CT ct, int contains8bit) {
+set_charset (CT ct, int contains8bit)
+{
if (ct->c_type == CT_TEXT) {
struct text *t;
*/
void
expand_pseudoheaders (CT ct, struct multipart *m, const char *infile,
- const convert_list *convert_head) {
+ const convert_list *convert_head)
+{
/* text_plain_ct is used to concatenate all of the text/plain
replies into one part, instead of having each one in a separate
part. */
void
expand_pseudoheader (CT ct, CT *text_plain_ct, struct multipart *m,
const char *infile, const char *type,
- const char *argstring) {
+ const char *argstring)
+{
char *reply_file;
FILE *reply_fp = NULL;
char *convert, *type_p, *subtype_p;
/* Extract any Content-Type header from beginning of convert output. */
int
-extract_headers (CT ct, char *reply_file, FILE **reply_fp) {
+extract_headers (CT ct, char *reply_file, FILE **reply_fp)
+{
char *buffer = NULL, *cp, *end_of_header;
bool found_header = false;
struct stat statbuf;