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

Diff for /src/usr.bin/yacc/main.c between version 1.30 and 1.31

version 1.30, 2020/05/21 16:13:23 version 1.31, 2020/05/21 16:22:26
Line 103 
Line 103 
 void getargs(int, char *[]);  void getargs(int, char *[]);
 void create_file_names(void);  void create_file_names(void);
 void open_files(void);  void open_files(void);
   void cleanup_temp_files(void);
   
 volatile sig_atomic_t sigdie;  
   
 void  void
 done(int k)  cleanup_temp_files()
 {  {
         if (action_file)          if (action_file)
                 unlink(action_file_name);                  unlink(action_file_name);
Line 115 
Line 114 
                 unlink(text_file_name);                  unlink(text_file_name);
         if (union_file)          if (union_file)
                 unlink(union_file_name);                  unlink(union_file_name);
         if (sigdie)  }
                 _exit(k);  
   void
   done(int k)
   {
           cleanup_temp_files();
         exit(k);          exit(k);
 }  }
   
   
 void  void
 onintr(__unused int signo)  onintr(__unused int signo)
 {  {
         sigdie = 1;          cleanup_temp_files();
         done(1);          _exit(1);
 }  }
   
   

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31