[BACK]Return to main.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / sed

Diff for /src/usr.bin/sed/main.c between version 1.8 and 1.9

version 1.8, 2003/06/03 02:56:16 version 1.9, 2003/06/10 22:20:50
Line 102 
Line 102 
 static void add_file(char *);  static void add_file(char *);
   
 int  int
 main(argc, argv)  main(int argc, char *argv[])
         int argc;  
         char *argv[];  
 {  {
         int c, fflag;          int c, fflag;
   
Line 160 
Line 158 
  * together.  Empty strings and files are ignored.   * together.  Empty strings and files are ignored.
  */   */
 char *  char *
 cu_fgets(buf, n)  cu_fgets(char *buf, int n)
         char *buf;  
         int n;  
 {  {
         static enum {ST_EOF, ST_FILE, ST_STRING} state = ST_EOF;          static enum {ST_EOF, ST_FILE, ST_STRING} state = ST_EOF;
         static FILE *f;         /* Current open file */          static FILE *f;         /* Current open file */
Line 247 
Line 243 
  * Set len to the length of the line.   * Set len to the length of the line.
  */   */
 int  int
 mf_fgets(sp, spflag)  mf_fgets(SPACE *sp, enum e_spflag spflag)
         SPACE *sp;  
         enum e_spflag spflag;  
 {  {
         static FILE *f;         /* Current open file */          static FILE *f;         /* Current open file */
         size_t len;          size_t len;
Line 321 
Line 315 
  * Add a compilation unit to the linked list   * Add a compilation unit to the linked list
  */   */
 static void  static void
 add_compunit(type, s)  add_compunit(enum e_cut type, char *s)
         enum e_cut type;  
         char *s;  
 {  {
         struct s_compunit *cu;          struct s_compunit *cu;
   
Line 339 
Line 331 
  * Add a file to the linked list   * Add a file to the linked list
  */   */
 static void  static void
 add_file(s)  add_file(char *s)
         char *s;  
 {  {
         struct s_flist *fp;          struct s_flist *fp;
   

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9