Remove goto statement in print_callers
authorIvan Maidanski <ivmai@mail.ru>
Thu, 6 Dec 2018 08:41:33 +0000 (11:41 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 6 Dec 2018 08:41:33 +0000 (11:41 +0300)
commit7b0edd781084d726879ce396003c16525662b738
treedb1e163590d35379728d9745e4cb15def8d8c38c
parent536f2f080145f14f47a18bbe80167eff866c7410
Remove goto statement in print_callers
(code refactoring)

* os_dep.c [NEED_CALLINFO && LINUX && !SMALL_CONFIG] (GC_print_callers):
Replace "goto out" to "break" statement in a do-while(0) block; remove
"out" label; move ret_code local variable declaration to the scope of
its usage; close pipe immediately after fread().
os_dep.c