* utils.c (do_obstack_free): New function.

(make_cleanup_obstack_free): Likewise.
	* defs.h (make_cleanup_obstack_free): Declare.
This commit is contained in:
Tom Tromey
2009-03-19 17:39:31 +00:00
parent 55f25fc330
commit 16ad93705c
3 changed files with 26 additions and 0 deletions

View File

@@ -366,6 +366,9 @@ extern struct cleanup *make_cleanup_fclose (FILE *file);
extern struct cleanup *make_cleanup_bfd_close (bfd *abfd);
struct obstack;
extern struct cleanup *make_cleanup_obstack_free (struct obstack *obstack);
extern struct cleanup *make_cleanup_restore_integer (int *variable);
extern struct cleanup *make_final_cleanup (make_cleanup_ftype *, void *);