/[m4]/m4/m4/output.c
ViewVC logotype

Diff of /m4/m4/output.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by gary, Thu Sep 20 03:48:05 2001 UTC revision 1.7 by gary, Sun Sep 30 14:43:38 2001 UTC
# Line 105  int m4_output_current_line; Line 105  int m4_output_current_line;
105  void  void
106  m4_output_init (void)  m4_output_init (void)
107  {  {
108    diversion_table = XMALLOC (struct diversion, 1);    diversion_table = (struct diversion *) xmalloc (sizeof (struct diversion));
109    diversions = 1;    diversions = 1;
110    diversion_table[0].file = stdout;    diversion_table[0].file = stdout;
111    diversion_table[0].buffer = NULL;    diversion_table[0].buffer = NULL;
# Line 120  m4_output_init (void) Line 120  m4_output_init (void)
120    output_unused = 0;    output_unused = 0;
121  }  }
122    
 void  
 m4_output_exit (void)  
 {  
   assert (diversions = 1);  
   XFREE (diversion_table);  
 }  
   
   
123  #ifdef HAVE_MKTEMP  #ifdef HAVE_MKTEMP
124  #ifndef HAVE_MKSTEMP  #ifndef HAVE_MKSTEMP
125    
# Line 691  m4_freeze_diversions (file) Line 683  m4_freeze_diversions (file)
683    if (saved_number != last_inserted)    if (saved_number != last_inserted)
684      fprintf (file, "D%d,0\n\n", saved_number);      fprintf (file, "D%d,0\n\n", saved_number);
685  }  }
686    

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26