/[bison]/bison/src/reader.c
ViewVC logotype

Diff of /bison/src/reader.c

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

revision 1.81 by marc, Fri Aug 31 11:47:08 2001 UTC revision 1.82 by marc, Fri Aug 31 16:01:53 2001 UTC
# Line 1666  readgram (void) Line 1666  readgram (void)
1666  }  }
1667    
1668  /* At the end of the grammar file, some C source code must  /* At the end of the grammar file, some C source code must
1669     be stored. It is going to be associated to the user_code     be stored. It is going to be associated to the epilogue
1670     directive.  */     directive.  */
1671  static void  static void
1672  read_additionnal_code (void)  read_additionnal_code (void)
1673  {  {
1674    char c;    char c;
1675    struct obstack uc_obstack;    struct obstack el_obstack;
1676        
1677    obstack_init (&uc_obstack);    obstack_init (&el_obstack);
1678    
1679    while ((c = getc (finput)) != EOF)    while ((c = getc (finput)) != EOF)
1680      obstack_1grow (&uc_obstack, c);      obstack_1grow (&el_obstack, c);
1681        
1682    obstack_1grow (&uc_obstack, 0);    obstack_1grow (&el_obstack, 0);
1683    macro_insert ("user_code", obstack_finish (&uc_obstack));    macro_insert ("epilogue", obstack_finish (&el_obstack));
1684  }  }
1685    
1686    

Legend:
Removed from v.1.81  
changed lines
  Added in v.1.82

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