This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make HvENAME** macros smaller and more efficient
authorH.Merijn Brand <h.m.brand@xs4all.nl>
Mon, 17 Oct 2011 15:15:32 +0000 (17:15 +0200)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Mon, 17 Oct 2011 15:15:32 +0000 (17:15 +0200)
commitc49a809bf96a6f9d6e8f048bb237650dc7f6ccf9
treee385f9593421eea86c4483eff8bce311671e4ce6
parente75ab6ad5d2255e4180c472f92ac3eaaec1fd200
Make HvENAME** macros smaller and more efficient

Brian's comments:
if xhv_name_count == 1, HvENAME_HEK_NN returns null.
So there's no need to use that macro twice. Just check for -1

The real need to make these smaller is the fact that some precompilers
(e.g. HP-UX 10.20) cannot cope with the size these have grown to.  The
precompiler has since got an option (-Hnnn) to increase the macrospace
but that option never made it to these old compilers.

Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
hv.h