diff options
author | Karl Williamson <khw@cpan.org> | 2022-05-19 20:20:15 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-05-19 20:23:29 -0600 |
commit | 95bfca545b451d588b110c4132e4ad5623a0d139 (patch) | |
tree | 5585104a531ff4261fd7f22b81a74584eb5c1c3a | |
parent | 15acd724f79e6be86329d23fd9809a142e0d031c (diff) | |
download | perl-95bfca545b451d588b110c4132e4ad5623a0d139.tar.gz |
perlapi: Turn ptr_table comments into pod
-rw-r--r-- | embed.fnc | 10 | ||||
-rw-r--r-- | sv.c | 47 |
2 files changed, 46 insertions, 11 deletions
@@ -2835,12 +2835,12 @@ ApR |SV* |sv_dup_inc |NULLOK const SV *const ssv \ Cp |void |rvpv_dup |NN SV *const dsv|NN const SV *const ssv|NN CLONE_PARAMS *const param Cp |yy_parser*|parser_dup |NULLOK const yy_parser *const proto|NN CLONE_PARAMS *const param #endif -ApR |PTR_TBL_t*|ptr_table_new -ApR |void* |ptr_table_fetch|NN PTR_TBL_t *const tbl|NULLOK const void *const sv -Ap |void |ptr_table_store|NN PTR_TBL_t *const tbl|NULLOK const void *const oldsv \ +ApdR |PTR_TBL_t*|ptr_table_new +ApdR |void* |ptr_table_fetch|NN PTR_TBL_t *const tbl|NULLOK const void *const sv +Apd |void |ptr_table_store|NN PTR_TBL_t *const tbl|NULLOK const void *const oldsv \ |NN void *const newsv -Ap |void |ptr_table_split|NN PTR_TBL_t *const tbl -Ap |void |ptr_table_free|NULLOK PTR_TBL_t *const tbl +Apd |void |ptr_table_split|NN PTR_TBL_t *const tbl +Apd |void |ptr_table_free|NULLOK PTR_TBL_t *const tbl #if defined(HAVE_INTERP_INTERN) Cp |void |sys_intern_clear Cp |void |sys_intern_init @@ -13940,7 +13940,13 @@ struct ptr_tbl_arena { struct ptr_tbl_ent array[1023/3]; /* as ptr_tbl_ent has 3 pointers. */ }; -/* create a new pointer-mapping table */ +/* +=for apidoc ptr_table_new + +Create a new pointer-mapping table + +=cut +*/ PTR_TBL_t * Perl_ptr_table_new(pTHX) @@ -13979,6 +13985,15 @@ S_ptr_table_find(PTR_TBL_t *const tbl, const void *const sv) return NULL; } +/* +=for apidoc ptr_table_fetch + +Look for C<sv> in the pointer-mapping table C<tbl>, returning its value, or +NULL if not found. + +=cut +*/ + void * Perl_ptr_table_fetch(pTHX_ PTR_TBL_t *const tbl, const void *const sv) { @@ -13990,9 +14005,17 @@ Perl_ptr_table_fetch(pTHX_ PTR_TBL_t *const tbl, const void *const sv) return tblent ? tblent->newval : NULL; } -/* add a new entry to a pointer-mapping table 'tbl'. In hash terms, 'oldsv' is - * the key; 'newsv' is the value. The names "old" and "new" are specific to - * the core's typical use of ptr_tables in thread cloning. */ +/* +=for apidoc ptr_table_store + +Add a new entry to a pointer-mapping table C<tbl>. +In hash terms, C<oldsv> is the key; Cnewsv> is the value. + +The names "old" and "new" are specific to the core's typical use of ptr_tables +in thread cloning. + +=cut +*/ void Perl_ptr_table_store(pTHX_ PTR_TBL_t *const tbl, const void *const oldsv, void *const newsv) @@ -14029,7 +14052,13 @@ Perl_ptr_table_store(pTHX_ PTR_TBL_t *const tbl, const void *const oldsv, void * } } -/* double the hash bucket size of an existing ptr table */ +/* +=for apidoc ptr_table_split + +Double the hash bucket size of an existing ptr table + +=cut +*/ void Perl_ptr_table_split(pTHX_ PTR_TBL_t *const tbl) @@ -14066,7 +14095,13 @@ Perl_ptr_table_split(pTHX_ PTR_TBL_t *const tbl) } } -/* clear and free a ptr table */ +/* +=for apidoc ptr_table_free + +Clear and free a ptr table + +=cut +*/ void Perl_ptr_table_free(pTHX_ PTR_TBL_t *const tbl) |