From: Jeremy J. <je...@au...> - 2013-05-08 20:30:19
|
On 05/08/2013 10:24 PM, Nikita Zlobin wrote: > Side-by-side illustration to complement previous post (watch with monospaced > font): > Unsplited: > > int main () > { > ..... > if (true) > { > stage1: tk_object_uninit (tk_object); > stage0: tk_object_free (tk_object); > } > return 0; > } > > And splited: > > int main () > { > ..... > if (true) > { > stage1: > tk_object_uninit (tk_object); > stage0: > tk_object_free (tk_object); > } > return 0; > } > > Note, it is only for enough short labels. And especially when there is one > code line per label. > Check. I'll change the code you provided to: if (! isRegFile(StateFile)) { no_state1: delete (fp); no_state0: Log("Invalid state file specified for restore: " + StateFile); return false; } Regards, Jeremy |