Skip to content

Commit 4ab418b

Browse files
committed
Hide function prototyes from unauthorized callers
0351a62 extended hiding private functions from callers into the gcc world. Some functions are allowed only in extensions; so can not be marked as hidden; this commit discourages their use however, by hiding their prototypes to all but the core and extensions. It turns out that three functions were being used in modules we ship with that were marked as extensions-only; so they had to be made globally accessible.
1 parent 51d43fe commit 4ab418b

File tree

3 files changed

+723
-614
lines changed

3 files changed

+723
-614
lines changed

embed.fnc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,7 @@ ERXp |SV * |get_prop_definition \
13071307
ERTXp |const char * const *|get_prop_values \
13081308
|const int table_index
13091309
: Used by SvRX and SvRXOK
1310-
EXopx |REGEXP *|get_re_arg |NULLOK SV *sv
1310+
Xopx |REGEXP *|get_re_arg |NULLOK SV *sv
13111311
AOdp |SV * |get_sv |NN const char *name \
13121312
|I32 flags
13131313
CRipx |MGVTBL *|get_vtbl |int vtbl_id
@@ -3687,9 +3687,9 @@ Cp |UV |_to_utf8_upper_flags \
36873687
|NULLOK STRLEN *lenp \
36883688
|bool flags
36893689

3690-
EXop |bool |try_amagic_bin |int method \
3690+
Xop |bool |try_amagic_bin |int method \
36913691
|int flags
3692-
EXop |bool |try_amagic_un |int method \
3692+
Xop |bool |try_amagic_un |int method \
36933693
|int flags
36943694
ARTdp |char * |uiv_2buf |NN char * const buf \
36953695
|const IV iv \

0 commit comments

Comments
 (0)