99
99
: placed in perlapi. If no documentation exists, that fact is also
100
100
: noted in perlapi.
101
101
:
102
+ : These require one of the /[iIpS]/ flags to give callers a name to use
103
+ : that won't possibly collide with their own
104
+ :
102
105
: The 'C' flag is used instead for functions and their short names that need to
103
106
: be accessible everywhere, typically because they are called from a
104
107
: publicly available macro or inline function, but they are not for
105
108
: public use by themselves. The documentation for these is placed in
106
109
: perlintern. If no documentation exists, that fact is also noted in
107
110
: perlintern.
108
111
:
109
- : These really need the 'p' flag to avoid name space collisions.
112
+ : These require one of the /[iIpS]/ flags to give callers a name to use
113
+ : that won't possibly collide with their own
110
114
:
111
115
: Some of these have been constructed so that the wrapper macro names
112
116
: begin with an underscore to lessen the chances of a name collision.
327
331
: The remainder of these introductory comments detail all the possible flags:
328
332
:
329
333
: 'A' Both long and short names are accessible fully everywhere (usually
330
- : part of the public API). If the function is not part of the public
331
- : API, instead use 'C', 'E', or 'X'.
334
+ : part of the public API). Requires one of /[iIpS]/ flags. If the
335
+ : function is not part of the public API, instead use 'C', 'E', or 'X'.
332
336
:
333
337
: * adds entry to the list of symbols available on all platforms unless
334
338
: 'e' or 'm' are also specified;
384
388
: for example. Some functions have to be accessible everywhere even if
385
389
: they are not intended for public use. An example is helper functions
386
390
: that are called from inline ones that are publicly available.
391
+ : Requires one of /[iIpS]/ flags.
387
392
:
388
393
: * add entry to the list of symbols available on all platforms unless e
389
394
: or m are also specified;
@@ -1229,7 +1234,7 @@ Cip |I32 |foldEQ_latin1 |NN const char *a \
1229
1234
Adip |I32 |foldEQ_locale |NN const char *a \
1230
1235
|NN const char *b \
1231
1236
|I32 len
1232
- Adm |I32 |foldEQ_utf8 |NN const char *s1 \
1237
+ Admp |I32 |foldEQ_utf8 |NN const char *s1 \
1233
1238
|NULLOK char **pe1 \
1234
1239
|UV l1 \
1235
1240
|bool u1 \
@@ -1367,11 +1372,11 @@ Adp |GV * |gv_fetchfile_flags \
1367
1372
|NN const char * const name \
1368
1373
|const STRLEN len \
1369
1374
|const U32 flags
1370
- Adm |GV * |gv_fetchmeth |NULLOK NOCHECK HV *stash \
1375
+ Admp |GV * |gv_fetchmeth |NULLOK NOCHECK HV *stash \
1371
1376
|NN const char *name \
1372
1377
|STRLEN len \
1373
1378
|I32 level
1374
- Adm |GV * |gv_fetchmeth_autoload \
1379
+ Admp |GV * |gv_fetchmeth_autoload \
1375
1380
|NULLOK NOCHECK HV *stash \
1376
1381
|NN const char *name \
1377
1382
|STRLEN len \
@@ -1447,7 +1452,7 @@ Adp |void |gv_fullname4 |NN SV *sv \
1447
1452
CRdp |CV * |gv_handler |NULLOK HV *stash \
1448
1453
|I32 id
1449
1454
Admp |GV * |gv_HVadd |NULLOK GV *gv
1450
- Adm |void |gv_init |NN GV *gv \
1455
+ Admp |void |gv_init |NN GV *gv \
1451
1456
|NULLOK HV *stash \
1452
1457
|NN const char *name \
1453
1458
|STRLEN len \
@@ -1603,19 +1608,19 @@ Ampx |SV ** |hv_store_flags |NULLOK HV *hv \
1603
1608
|NULLOK SV *val \
1604
1609
|U32 hash \
1605
1610
|int flags
1606
- Adm |SV ** |hv_stores |NULLOK HV *hv \
1611
+ Admp |SV ** |hv_stores |NULLOK HV *hv \
1607
1612
|"key" \
1608
1613
|NULLOK SV *val
1609
- Adm |void |hv_undef |NULLOK HV *hv
1614
+ Admp |void |hv_undef |NULLOK HV *hv
1610
1615
Xop |void |hv_undef_flags |NULLOK HV *hv \
1611
1616
|U32 flags
1612
- APdm |I32 |ibcmp |NN const char *a \
1617
+ APdmp |I32 |ibcmp |NN const char *a \
1613
1618
|NN const char *b \
1614
1619
|I32 len
1615
- APdm |I32 |ibcmp_locale |NN const char *a \
1620
+ APdmp |I32 |ibcmp_locale |NN const char *a \
1616
1621
|NN const char *b \
1617
1622
|I32 len
1618
- Adm |I32 |ibcmp_utf8 |NN const char *s1 \
1623
+ Admp |I32 |ibcmp_utf8 |NN const char *s1 \
1619
1624
|NULLOK char **pe1 \
1620
1625
|UV l1 \
1621
1626
|bool u1 \
@@ -1662,10 +1667,10 @@ p |bool |io_close |NN IO *io \
1662
1667
ARTdip |Size_t |isC9_STRICT_UTF8_CHAR \
1663
1668
|NN const U8 * const s0 \
1664
1669
|NN const U8 * const e
1665
- ARTdm |bool |is_c9strict_utf8_string \
1670
+ ARTdmp |bool |is_c9strict_utf8_string \
1666
1671
|NN const U8 *s \
1667
1672
|STRLEN len
1668
- ATdm |bool |is_c9strict_utf8_string_loc \
1673
+ ATdmp |bool |is_c9strict_utf8_string_loc \
1669
1674
|NN const U8 *s \
1670
1675
|STRLEN len \
1671
1676
|NN const U8 **ep
@@ -1689,10 +1694,10 @@ ARdip |bool |is_safe_syscall|NN const char *pv \
1689
1694
ARTdip |Size_t |isSTRICT_UTF8_CHAR \
1690
1695
|NN const U8 * const s0 \
1691
1696
|NN const U8 * const e
1692
- ARTdm |bool |is_strict_utf8_string \
1697
+ ARTdmp |bool |is_strict_utf8_string \
1693
1698
|NN const U8 *s \
1694
1699
|STRLEN len
1695
- ATdm |bool |is_strict_utf8_string_loc \
1700
+ ATdmp |bool |is_strict_utf8_string_loc \
1696
1701
|NN const U8 *s \
1697
1702
|STRLEN len \
1698
1703
|NN const U8 **ep
@@ -1724,11 +1729,11 @@ CPRTp |Size_t |is_utf8_FF_helper_ \
1724
1729
|NN const U8 * const s0 \
1725
1730
|NN const U8 * const e \
1726
1731
|const bool require_partial
1727
- ATdm |bool |is_utf8_fixed_width_buf_flags \
1732
+ ATdmp |bool |is_utf8_fixed_width_buf_flags \
1728
1733
|NN const U8 * const s \
1729
1734
|STRLEN len \
1730
1735
|const U32 flags
1731
- ATdm |bool |is_utf8_fixed_width_buf_loc_flags \
1736
+ ATdmp |bool |is_utf8_fixed_width_buf_loc_flags \
1732
1737
|NN const U8 * const s \
1733
1738
|STRLEN len \
1734
1739
|NULLOK const U8 **ep \
@@ -1752,7 +1757,7 @@ CRp |bool |_is_utf8_perl_idcont \
1752
1757
CRp |bool |_is_utf8_perl_idstart \
1753
1758
|NN const U8 *p \
1754
1759
|NN const U8 * const e
1755
- ARTdm |bool |is_utf8_string |NN const U8 *s \
1760
+ ARTdmp |bool |is_utf8_string |NN const U8 *s \
1756
1761
|STRLEN len
1757
1762
ARTdip |bool |is_utf8_string_flags \
1758
1763
|NN const U8 *s \
@@ -1762,7 +1767,7 @@ ATdmp |bool |is_utf8_string_loc \
1762
1767
|NN const U8 *s \
1763
1768
|const STRLEN len \
1764
1769
|NN const U8 **ep
1765
- ATdm |bool |is_utf8_string_loc_flags \
1770
+ ATdmp |bool |is_utf8_string_loc_flags \
1766
1771
|NN const U8 *s \
1767
1772
|STRLEN len \
1768
1773
|NN const U8 **ep \
@@ -1778,7 +1783,7 @@ ATdip |bool |is_utf8_string_loclen_flags \
1778
1783
|NULLOK const U8 **ep \
1779
1784
|NULLOK STRLEN *el \
1780
1785
|const U32 flags
1781
- APTdm |bool |is_utf8_valid_partial_char \
1786
+ APTdmp |bool |is_utf8_valid_partial_char \
1782
1787
|NN const U8 * const s0 \
1783
1788
|NN const U8 * const e
1784
1789
ARTdip |bool |is_utf8_valid_partial_char_flags \
@@ -2170,7 +2175,7 @@ ARdp |OP * |newASSIGNOP |I32 flags \
2170
2175
|NULLOK OP *left \
2171
2176
|I32 optype \
2172
2177
|NULLOK OP *right
2173
- Adm |CV * |newATTRSUB |I32 floor \
2178
+ Admp |CV * |newATTRSUB |I32 floor \
2174
2179
|NULLOK OP *o \
2175
2180
|NULLOK OP *proto \
2176
2181
|NULLOK OP *attrs \
@@ -2182,11 +2187,11 @@ Xdp |CV * |newATTRSUB_x |I32 floor \
2182
2187
|NULLOK OP *block \
2183
2188
|bool o_is_gv
2184
2189
ARdmp |AV * |newAV
2185
- ARdm |AV * |newAV_alloc_x |SSize_t size
2186
- ARdm |AV * |newAV_alloc_xz |SSize_t size
2190
+ ARdmp |AV * |newAV_alloc_x |SSize_t size
2191
+ ARdmp |AV * |newAV_alloc_xz |SSize_t size
2187
2192
ARdp |AV * |newAVav |NULLOK AV *oav
2188
2193
ARdp |AV * |newAVhv |NULLOK HV *ohv
2189
- ARdm |AV * |newAV_mortal
2194
+ ARdmp |AV * |newAV_mortal
2190
2195
ARdp |OP * |newAVREF |NN OP *o
2191
2196
ARdp |OP * |newBINOP |I32 type \
2192
2197
|I32 flags \
@@ -2223,7 +2228,7 @@ ARdp |OP * |newGIVENOP |NN OP *cond \
2223
2228
|PADOFFSET defsv_off
2224
2229
: Used in scope.c
2225
2230
eopx |GP * |newGP |NN GV * const gv
2226
- Adm |GV * |newGVgen |NN const char *pack
2231
+ Admp |GV * |newGVgen |NN const char *pack
2227
2232
ARdp |GV * |newGVgen_flags |NN const char *pack \
2228
2233
|U32 flags
2229
2234
ARdp |OP * |newGVOP |I32 type \
@@ -2342,7 +2347,7 @@ Adp |SV * |newSVrv |NN SV * const rv \
2342
2347
ARdmp |SV * |newSVsv |NULLOK SV * const old
2343
2348
ARdp |SV * |newSVsv_flags |NULLOK SV * const old \
2344
2349
|I32 flags
2345
- ARdm |SV * |newSVsv_nomg |NULLOK SV * const old
2350
+ ARdmp |SV * |newSVsv_nomg |NULLOK SV * const old
2346
2351
ARdp |SV * |newSV_true
2347
2352
ARdip |SV * |newSV_type |const svtype type
2348
2353
AIRdp |SV * |newSV_type_mortal \
@@ -2434,7 +2439,7 @@ Adfp |void |opdump_printf |NN struct Perl_OpDumpContext *ctx \
2434
2439
Adp |OP * |op_force_list |NULLOK OP *o
2435
2440
Adp |void |op_free |NULLOK OP *arg
2436
2441
Adp |OP * |op_linklist |NN OP *o
2437
- Admx |OP * |op_lvalue |NULLOK OP *o \
2442
+ Admpx |OP * |op_lvalue |NULLOK OP *o \
2438
2443
|I32 type
2439
2444
Xop |OP * |op_lvalue_flags|NULLOK OP *o \
2440
2445
|I32 type \
@@ -2588,7 +2593,7 @@ CTp |Signal_t|perly_sighandler \
2588
2593
|NULLOK void *uap \
2589
2594
|bool safe
2590
2595
2591
- Adm |const char * const|phase_name \
2596
+ Admp |const char * const|phase_name \
2592
2597
|enum perl_phase
2593
2598
Adp |void |pmop_dump |NULLOK PMOP *pm
2594
2599
: Used in perly.y
@@ -2822,9 +2827,9 @@ p |void |report_wrongway_fh \
2822
2827
AOdp |void |require_pv |NN const char *pv
2823
2828
Cop |void |resume_compcv |NN struct suspended_compcv *buffer \
2824
2829
|bool save
2825
- Adm |void |resume_compcv_and_save \
2830
+ Admp |void |resume_compcv_and_save \
2826
2831
|NN struct suspended_compcv *buffer
2827
- Adm |void |resume_compcv_final \
2832
+ Admp |void |resume_compcv_final \
2828
2833
|NN struct suspended_compcv *buffer
2829
2834
APTdp |char * |rninstr |NN const char *big \
2830
2835
|NN const char *bigend \
@@ -2916,7 +2921,7 @@ ARTdp |Malloc_t|safesysrealloc|Malloc_t where \
2916
2921
|MEM_SIZE nbytes
2917
2922
Cdp |void |save_adelete |NN AV *av \
2918
2923
|SSize_t key
2919
- Adm |void |save_aelem |NN AV *av \
2924
+ Admp |void |save_aelem |NN AV *av \
2920
2925
|SSize_t idx \
2921
2926
|NN SV **sptr
2922
2927
Adp |void |save_aelem_flags \
@@ -2952,7 +2957,7 @@ Adp |void |save_gp |NN GV *gv \
2952
2957
Adhp |HV * |save_hash |NN GV *gv
2953
2958
Cdp |void |save_hdelete |NN HV *hv \
2954
2959
|NN SV *keysv
2955
- Adm |void |save_helem |NN HV *hv \
2960
+ Admp |void |save_helem |NN HV *hv \
2956
2961
|NN SV *key \
2957
2962
|NN SV **sptr
2958
2963
Adp |void |save_helem_flags \
@@ -3182,7 +3187,7 @@ Admp |void |sv_copypv |NN SV * const dsv \
3182
3187
Adp |void |sv_copypv_flags|NN SV * const dsv \
3183
3188
|NN SV * const ssv \
3184
3189
|const I32 flags
3185
- Adm |void |sv_copypv_nomg |NN SV * const dsv \
3190
+ Admp |void |sv_copypv_nomg |NN SV * const dsv \
3186
3191
|NN SV * const ssv
3187
3192
Adp |CV * |sv_2cv |NULLOK SV *sv \
3188
3193
|NN HV ** const st \
@@ -3303,7 +3308,7 @@ Cdp |SV * |sv_newref |NULLOK SV * const sv
3303
3308
Adp |void |sv_nosharing |NULLOK SV *sv
3304
3309
: Used in pp.c, pp_hot.c, sv.c
3305
3310
dpx |SV * |sv_2num |NN SV * const sv
3306
- Adm |bool |sv_numeq |NULLOK SV *sv1 \
3311
+ Admp |bool |sv_numeq |NULLOK SV *sv1 \
3307
3312
|NULLOK SV *sv2
3308
3313
Adp |bool |sv_numeq_flags |NULLOK SV *sv1 \
3309
3314
|NULLOK SV *sv2 \
@@ -3385,7 +3390,7 @@ AMdip |void |SvREFCNT_dec |NULLOK SV *sv
3385
3390
AMdip |void |SvREFCNT_dec_NN|NN SV *sv
3386
3391
Adip |SV * |SvREFCNT_dec_ret_NULL \
3387
3392
|NULLOK SV *sv
3388
- Adm |void |SvREFCNT_dec_set_NULL \
3393
+ Admp |void |SvREFCNT_dec_set_NULL \
3389
3394
|NULLOK SV *sv
3390
3395
AMTdip |SV * |SvREFCNT_inc |NULLOK SV *sv
3391
3396
AMTdip |SV * |SvREFCNT_inc_NN|NN SV *sv
@@ -3491,7 +3496,7 @@ Adp |void |sv_setuv |NN SV * const sv \
3491
3496
|const UV num
3492
3497
Adp |void |sv_setuv_mg |NN SV * const sv \
3493
3498
|const UV u
3494
- Adm |bool |sv_streq |NULLOK SV *sv1 \
3499
+ Admp |bool |sv_streq |NULLOK SV *sv1 \
3495
3500
|NULLOK SV *sv2
3496
3501
Adp |bool |sv_streq_flags |NULLOK SV *sv1 \
3497
3502
|NULLOK SV *sv2 \
@@ -3551,19 +3556,19 @@ Adp |bool |sv_utf8_downgrade_flags \
3551
3556
|NN SV * const sv \
3552
3557
|const bool fail_ok \
3553
3558
|const U32 flags
3554
- Adm |bool |sv_utf8_downgrade_nomg \
3559
+ Admp |bool |sv_utf8_downgrade_nomg \
3555
3560
|NN SV * const sv \
3556
3561
|const bool fail_ok
3557
3562
Adp |void |sv_utf8_encode |NN SV * const sv
3558
3563
Admp |STRLEN |sv_utf8_upgrade|NN SV *sv
3559
- Adm |STRLEN |sv_utf8_upgrade_flags \
3564
+ Admp |STRLEN |sv_utf8_upgrade_flags \
3560
3565
|NN SV * const sv \
3561
3566
|const I32 flags
3562
3567
Adp |STRLEN |sv_utf8_upgrade_flags_grow \
3563
3568
|NN SV * const sv \
3564
3569
|const I32 flags \
3565
3570
|STRLEN extra
3566
- Adm |STRLEN |sv_utf8_upgrade_nomg \
3571
+ Admp |STRLEN |sv_utf8_upgrade_nomg \
3567
3572
|NN SV *sv
3568
3573
Adip |UV |SvUV |NN SV *sv
3569
3574
Cmp |UV |sv_2uv |NN SV *sv
@@ -3631,7 +3636,7 @@ Fpv |OP * |tied_method |NN SV *methname \
3631
3636
|...
3632
3637
Xp |SSize_t|tmps_grow_p |SSize_t ix
3633
3638
Xiop |Stack_off_t|TOPMARK
3634
- Cm |UV |to_uni_fold |UV c \
3639
+ Cmp |UV |to_uni_fold |UV c \
3635
3640
|NN U8 *p \
3636
3641
|NN STRLEN *lenp
3637
3642
Cp |UV |_to_uni_fold_flags \
@@ -3839,13 +3844,13 @@ p |void |utilize |int aver \
3839
3844
|NN OP *idop \
3840
3845
|NULLOK OP *arg
3841
3846
3842
- Adm |U8 * |uvchr_to_utf8 |NN U8 *d \
3847
+ Admp |U8 * |uvchr_to_utf8 |NN U8 *d \
3843
3848
|UV uv
3844
- Adm |U8 * |uvchr_to_utf8_flags \
3849
+ Admp |U8 * |uvchr_to_utf8_flags \
3845
3850
|NN U8 *d \
3846
3851
|UV uv \
3847
3852
|UV flags
3848
- Adm |U8 * |uvchr_to_utf8_flags_msgs \
3853
+ Admp |U8 * |uvchr_to_utf8_flags_msgs \
3849
3854
|NN U8 *d \
3850
3855
|UV uv \
3851
3856
|UV flags \
@@ -3936,7 +3941,7 @@ Adp |void |warn_sv |NN SV *baseex
3936
3941
RXop |I32 |was_lvalue_sub
3937
3942
: FIXME
3938
3943
p |void |watch |NN char **addr
3939
- Adm |I32 |whichsig |NN const char *sig
3944
+ Admp |I32 |whichsig |NN const char *sig
3940
3945
Adp |I32 |whichsig_pv |NN const char *sig
3941
3946
Adp |I32 |whichsig_pvn |NN const char *sig \
3942
3947
|STRLEN len
@@ -6398,7 +6403,7 @@ p |void |op_relocate_sv |NN SV **svp \
6398
6403
|NN PADOFFSET *targp
6399
6404
# endif
6400
6405
#else /* if !defined(USE_ITHREADS) */
6401
- Adm |void |CopFILEGV_set |NN COP *c \
6406
+ Admp |void |CopFILEGV_set |NN COP *c \
6402
6407
|NN GV *gv
6403
6408
#endif
6404
6409
#if defined(USE_LOCALE_COLLATE)
0 commit comments