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

Diff of /m4/m4/m4.c

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

revision 1.1 by gary, Mon Jun 16 10:43:45 2003 UTC revision 1.2 by gary, Thu Jun 19 14:51:04 2003 UTC
# Line 25  m4_create (void) Line 25  m4_create (void)
25  {  {
26    m4 *context = XMALLOC (m4, 1);    m4 *context = XMALLOC (m4, 1);
27    
28    M4_SYMTAB (context) = m4_symtab_create (0);    context->symtab = m4_symtab_create (0);
29    
30    return context;    return context;
31  }  }
# Line 35  m4_delete (m4 *context) Line 35  m4_delete (m4 *context)
35  {  {
36    assert (context);    assert (context);
37    
38    if (M4_SYMTAB (context))    if (context->symtab)
39      m4_symtab_delete (M4_SYMTAB (context));      m4_symtab_delete (context->symtab);
40    
41    xfree (context);    xfree (context);
   
42  }  }
43    
44  #undef m4_get_symtab  #undef m4_get_symtab
# Line 47  m4_symtab * Line 46  m4_symtab *
46  m4_get_symtab (m4 *context)  m4_get_symtab (m4 *context)
47  {  {
48    assert (context);    assert (context);
49      return context->symtab;
   return m4_get_symtab (context);  
50  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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