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 |
|
|