av_top_index() not in ppport.h

I recently ran into the need to do (on perl 5.8.9):

#ifndef av_top_index
#define av_top_index(x) av_len(x)
#endif

Am I wrong, isn't that what ppport.h is for? Should I put together a patch?

cheers,
Yves

-- 
perl -Mre=debug -e "/just|another|perl|hacker/"
0
demerphq
5/14/2019 9:47:54 PM
perl.perl5.porters 47615 articles. 1 followers. Follow

2 Replies
6 Views

Similar Articles

[PageSpeed] 5

On 5/14/19 3:47 PM, demerphq wrote:
> I recently ran into the need to do (on perl 5.8.9):
> 
> #ifndef av_top_index
> #define av_top_index(x) av_len(x)
> #endif
> 
> Am I wrong, isn't that what ppport.h is for? Should I put together a patch?
> 
> cheers,
> Yves
> 

av_top_index is in ppport.h 3.51, available at all fine download centers
0
public
5/15/2019 12:58:59 AM
--0000000000006048850588e7ebde
Content-Type: text/plain; charset="UTF-8"

On Wed, 15 May 2019, 02:59 Karl Williamson, <public@khwilliamson.com> wrote:

> On 5/14/19 3:47 PM, demerphq wrote:
> > I recently ran into the need to do (on perl 5.8.9):
> >
> > #ifndef av_top_index
> > #define av_top_index(x) av_len(x)
> > #endif
> >
> > Am I wrong, isn't that what ppport.h is for? Should I put together a
> patch?
> >
> > cheers,
> > Yves
> >
>
> av_top_index is in ppport.h 3.51, available at all fine download centers
>

Cool. I tried updating to 3.50 but I didn't try 3.51

Thanks,
Yves


>

--0000000000006048850588e7ebde
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D=
"gmail_attr">On Wed, 15 May 2019, 02:59 Karl Williamson, &lt;<a href=3D"mai=
lto:public@khwilliamson.com">public@khwilliamson.com</a>&gt; wrote:<br></di=
v><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:=
1px #ccc solid;padding-left:1ex">On 5/14/19 3:47 PM, demerphq wrote:<br>
&gt; I recently ran into the need to do (on perl 5.8.9):<br>
&gt; <br>
&gt; #ifndef av_top_index<br>
&gt; #define av_top_index(x) av_len(x)<br>
&gt; #endif<br>
&gt; <br>
&gt; Am I wrong, isn&#39;t that what ppport.h is for? Should I put together=
 a patch?<br>
&gt; <br>
&gt; cheers,<br>
&gt; Yves<br>
&gt; <br>
<br>
av_top_index is in ppport.h 3.51, available at all fine download centers<br=
></blockquote></div></div><div dir=3D"auto"><br></div><div dir=3D"auto">Coo=
l. I tried updating to 3.50 but I didn&#39;t try 3.51</div><div dir=3D"auto=
"><br></div><div dir=3D"auto">Thanks,</div><div dir=3D"auto">Yves</div><div=
 dir=3D"auto"><br></div><div dir=3D"auto"><div class=3D"gmail_quote"><block=
quote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc=
 solid;padding-left:1ex">
<br>
</blockquote></div></div></div>

--0000000000006048850588e7ebde--
0
demerphq
5/15/2019 7:15:39 AM
Reply: