Break out code from Perl_sv_gets() which is self contained and exits directly.
authorNicholas Clark <nick@ccl4.org>
Mon, 29 Nov 2010 11:41:21 +0000 (11:41 +0000)
committerNicholas Clark <nick@ccl4.org>
Mon, 29 Nov 2010 11:46:27 +0000 (11:46 +0000)
commitf80c2205cb723cd2cf47ce4d256d279c74a46325
treebd7a7f0f9e2e9411843c0f54d103ae2d5f1123bf
parenta932d541326b1fef3943a730adb350592857f19a
Break out code from Perl_sv_gets() which is self contained and exits directly.

Previously the code for handling fixed length records, and appending from a
non-UTF-8 handle to a UTF-8 scalar, was handled in two blocks in Perl_sv_gets()
which exited via a goto to the last statement of Perl_sv_gets(). By breaking
them out into separate static functions, the control flow becomes clearer.
sv.c