-
Notifications
You must be signed in to change notification settings - Fork 584
Mark do_open(), do_openn() as internal, not public #23323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: blead
Are you sure you want to change the base?
Conversation
These undocumented functions have exactly 0 uses on CPAN. do_open() is mentioned in 7 distributions. In all cases it is to #undef the macro name because it was polluting the distro's name space which has its own function named do_open().
do_open() is used by the standard typemap, some CPAN modules use do_openn() File-Map, mod_perl, Linux-CDROM though I don't know how current any of those are. |
cpan grep shows no uses of do_openn() https://grep.metacpan.org/search?q=do_openn&qft=&qd=&qifl=ppport.h And yet it does get called, as you said, in File::Map Am I doing something wrong, or is metacpan search buggy? |
If you select |
That sounds like a bug. I want to do an unrestricted search, and yet it doesn't find it. |
I have a local (bare) clone of https://github.com/metacpan/metacpan-cpan-extracted.git and I git grep that instead of using grep.metacpan.org (it's a lot faster, but 4.4GB disk space). |
I can't reproduce it anymore, but I did see it right when you posted. I guess it was just glitching or something? I've seen some other weird results today as well. |
I have been getting randomly wrong results with the search, so will open a ticket against that. |
It turns out that And |
They aren't API, so it doesn't matter if they're experimental. Maybe regen should complain if an unexported (or hidden) function is experimental, I don't think it adds any meaning - we're free to change unexported functions anyway. The other side is maybe they should be API, they'd be less confusing to use than do_openn(). do_open_raw() last changed it's signature in 2017 and do_open6() in 2014, so if they are made API I think they could be non-experimental. |
These undocumented functions have exactly 0 uses on CPAN.
do_open() is mentioned in 7 distributions. In all cases it is to #undef the macro name because it was polluting the distro's name space which has its own function named do_open().