develooper Front page | perl.perl5.porters | Postings from June 2001

Using xhv_foo instead of HvFOO

Thread Previous | Thread Next
From:
Abhijit Menon-Sen
Date:
June 16, 2001 08:05
Subject:
Using xhv_foo instead of HvFOO
Message ID:
20010616203513.A26966@lustre.linux.in
Consider Perl_hv_fetch (or much of hv.c), which does:

    register XPVHV* xhv;
    ...
    xhv = (XPVHV*)SvANY(hv);

    ... use of xhv->xhv_* ...

In such cases (purely for reasons of grep friendliness), why not use
HvFOO(hv) instead? Are there compilers which don't optimise repeated
uses of the Hv* macros away?

- ams

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About