perl5 icon indicating copy to clipboard operation
perl5 copied to clipboard

perlapi: Combine Strtod, my_strtod

Open khwilliamson opened this issue 1 year ago • 1 comments

And clarify the pod

khwilliamson avatar Jun 26 '24 11:06 khwilliamson

The space is immaterial. As far as C is concerned, char**e and char * * e are the same token sequence and are parsed the same way.¹

I think this line in perl.h is responsible for giving Strtod the extra space:

=for apidoc AmTR|NV|Strtod|NN const char * const s|NULLOK char ** e

¹ I'd never write char**e (without any spaces) though, because the * is syntactically a unary prefix operator. Fully parenthesized, the declaration would be char (*(*(e))), i.e. it's all grouping to the right.

mauke avatar Jun 26 '24 17:06 mauke