contrib/gdb-7/gdb/utils.c
struct cleanup *
make_cleanup_restore_integer (int *variable)
{
  struct restore_integer_closure *c =
    xmalloc (sizeof (struct restore_integer_closure));

  c->variable = variable;
  c->value = *variable;

  return make_my_cleanup2 (&cleanup_chain, restore_integer, (void *)c,
			   xfree);
}
/* Remember the current value of *VARIABLE and make it restored when
   the cleanup is run.  */
Remember the current value of *VARIABLE and make it restored when
the cleanup is run.
Remember the current value of * VARIABLE and make it restored when the cleanup is run .
struct cleanup *
make_cleanup_restore_integer (int *variable)
{
  struct restore_integer_closure *c =
    xmalloc (sizeof (struct restore_integer_closure));
  c->variable = variable;
  c->value = *variable;
  return make_my_cleanup2 (&cleanup_chain, restore_integer, (void *)c,
			   xfree);
}
struct cleanup * make_cleanup_restore_integer ( int * variable ) { struct restore_integer_closure * c = xmalloc ( sizeof ( struct restore_integer_closure ) ) ; c -> variable = variable ; c -> value = * variable ; return make_my_cleanup2 ( & cleanup_chain , restore_integer , ( void * ) c , xfree ) ; }
Remember the current value of *VARIABLE and make it restored when
the cleanup is run.
Remember the current value of * VARIABLE and make it restored when the cleanup is run .