emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lib-src/fakemail.c


From: Pavel Janík
Subject: [Emacs-diffs] Changes to emacs/lib-src/fakemail.c
Date: Wed, 19 Dec 2001 02:26:05 -0500

Index: emacs/lib-src/fakemail.c
diff -c emacs/lib-src/fakemail.c:1.28 emacs/lib-src/fakemail.c:1.29
*** emacs/lib-src/fakemail.c:1.28       Tue Dec 18 11:01:11 2001
--- emacs/lib-src/fakemail.c    Wed Dec 19 02:26:05 2001
***************
*** 20,26 ****
  
  #define NO_SHORTNAMES
  #define _XOPEN_SOURCE 500     /* for cuserid */
! #include <config.h>
  
  #if defined (BSD_SYSTEM) && !defined (BSD4_1) && !defined (USE_FAKEMAIL)
  /* This program isnot used in BSD, so just avoid loader complaints.  */
--- 20,29 ----
  
  #define NO_SHORTNAMES
  #define _XOPEN_SOURCE 500     /* for cuserid */
! 
! #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,88 ****
    struct header_record *previous;
  };
  typedef struct header_record *header;
!                       
  struct stream_record
  {
    FILE *handle;
--- 85,91 ----
    struct header_record *previous;
  };
  typedef struct header_record *header;
! 
  struct stream_record
  {
    FILE *handle;
***************
*** 203,210 ****
  }
  
  /* Read a line of text from `stream' into `linebuffer'.
!  * Return the length of the line.  
!  */
  
  long
  readline (linebuffer, stream)
--- 206,212 ----
  }
  
  /* Read a line of text from `stream' into `linebuffer'.
!    Return the length of the line.  */
  
  long
  readline (linebuffer, stream)
***************
*** 619,631 ****
    *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 ()
  {
--- 621,633 ----
    *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,731 ****
    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");
--- 727,733 ----
    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");



reply via email to

[Prev in Thread] Current Thread [Next in Thread]