(preserve_momentary): New function.

From-SVN: r8623
This commit is contained in:
Richard Kenner 1994-12-07 16:42:35 -05:00
parent d4b0a7a049
commit 9e8730a444

View File

@ -752,6 +752,15 @@ push_momentary ()
expression_obstack = &momentary_obstack;
}
/* Set things up so the next clear_momentary will only clear memory
past our present position in momentary_obstack. */
void
preserve_momentary ()
{
momentary_stack->base = (char *) obstack_base (&momentary_obstack);
}
/* Free all the storage in the current momentary-allocation level.
In C, this happens at the end of each statement. */