This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
op.c: S_assignment_type(): make truly trinary
authorDavid Mitchell <davem@iabyn.com>
Tue, 28 May 2019 14:39:50 +0000 (15:39 +0100)
committerDavid Mitchell <davem@iabyn.com>
Mon, 24 Jun 2019 10:40:07 +0000 (11:40 +0100)
commitf7c7511ff191e5730bac67c11df9c39c20e59258
treebdd797302cdaad3728c54897f4bb130d0494da63
parentdb18005b26986d1d422fcb53989eece313134db5
op.c: S_assignment_type(): make truly trinary

Commit 4fec880468dad87517895b935b19a8d51e98b5a6 converted the
static boolean function S_is_list_assignment() into a 3-valued
function: S_assignment_type().

However, much of the code body still did things like 'return TRUE'.
Replace these with 'return ASSIGN_LIST' etc. These have the same
physical values, so there's no functional change here. But it makes the
code more consistent and readable.
op.c