Re: [PATCH master+7.12 v2 1/3] Introduce cleanup to restore current_uiout

Simon Marchi
2016-09-14T18:18:32Z

On 16-09-14 02:10 PM, Tom Tromey wrote:
>>>>>> "Simon" == Simon Marchi <simon.marchi@ericsson.com> writes:
>
> Simon> - old_chain = make_cleanup (restore_current_uiout_cleanup, current_uiout);
> Simon> + old_chain = make_cleanup_restore_current_uiout ();
>
> There's also already make_cleanup_restore_ui_out.
> You could just use "make_cleanup_restore_ui_out (&current_uiout)" instead.
>
> Tom

Ah good point, I'll probably do that.

Thanks!