This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 5/5] Remove some gotos from Python
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tom at tromey dot com>, gdb-patches at sourceware dot org
- Date: Thu, 9 Feb 2017 13:03:00 +0000
- Subject: Re: [RFA 5/5] Remove some gotos from Python
- Authentication-results: sourceware.org; auth=none
- References: <20170115134253.24018-1-tom@tromey.com> <20170115134253.24018-6-tom@tromey.com>
On 01/15/2017 01:42 PM, Tom Tromey wrote:
> This patch slightly refactors a couple of spots in the Python code to
> avoid some gotos.
>
> 2017-01-15 Tom Tromey <tom@tromey.com>
>
> * python/python.c (do_start_initialization): New function, from
> _initialize_python.
> (_initialize_python): Call do_start_initialization.
> * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
> goto.
OK.
Thanks,
Pedro Alves