/[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.7 by gary, Sun Sep 30 14:43:38 2001 UTC revision 1.8 by gary, Sun Sep 30 22:26:57 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 = (struct diversion *) xmalloc (sizeof (struct diversion));    diversion_table = XMALLOC (struct diversion, 1);
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    
123    void
124    m4_output_exit (void)
125    {
126      assert (diversions = 1);
127      XFREE (diversion_table);
128    }
129    
130    
131  #ifdef HAVE_MKTEMP  #ifdef HAVE_MKTEMP
132  #ifndef HAVE_MKSTEMP  #ifndef HAVE_MKSTEMP
133    
# Line 683  m4_freeze_diversions (file) Line 691  m4_freeze_diversions (file)
691    if (saved_number != last_inserted)    if (saved_number != last_inserted)
692      fprintf (file, "D%d,0\n\n", saved_number);      fprintf (file, "D%d,0\n\n", saved_number);
693  }  }
   

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

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