This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA 5/5] Remove some gotos from Python


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]