Mercurial > emacs
changeset 42181:358035cb58d9
Conditionally include config.h.
Clean-up whitespaces.
author | Pavel Janík <Pavel@Janik.cz> |
---|---|
date | Wed, 19 Dec 2001 07:26:05 +0000 |
parents | 35906f73a07d |
children | 9235b931a015 |
files | lib-src/fakemail.c |
diffstat | 1 files changed, 9 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/lib-src/fakemail.c Wed Dec 19 07:24:46 2001 +0000 +++ b/lib-src/fakemail.c Wed Dec 19 07:26:05 2001 +0000 @@ -20,7 +20,10 @@ #define NO_SHORTNAMES #define _XOPEN_SOURCE 500 /* for cuserid */ -#include <config.h> + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #if defined (BSD_SYSTEM) && !defined (BSD4_1) && !defined (USE_FAKEMAIL) /* This program isnot used in BSD, so just avoid loader complaints. */ @@ -82,7 +85,7 @@ struct header_record *previous; }; typedef struct header_record *header; - + struct stream_record { FILE *handle; @@ -203,8 +206,7 @@ } /* Read a line of text from `stream' into `linebuffer'. - * Return the length of the line. - */ + Return the length of the line. */ long readline (linebuffer, stream) @@ -619,13 +621,13 @@ *where = '\0'; return; } - + /* Read lines from the input until we get a blank line. Create a list of `header' objects, one for each header field, each of which points to a list of `line_list' objects, one for each line in that field. Continuation lines are grouped in the headers they continue. */ - + header read_header () { @@ -725,7 +727,7 @@ command_line = alloc_string (name_length + args_size (the_header)); strcpy (command_line, mail_program_name); parse_header (the_header, &command_line[name_length]); - + the_pipe = popen (command_line, "w"); if (the_pipe == ((FILE *) NULL)) fatal ("cannot open pipe to real mailer");