summaryrefslogtreecommitdiff
path: root/embed.fnc
Commit message (Collapse)AuthorAgeFilesLines
* add a bareword_filehandles feature, which is enabled by defaultTony Cook2021-01-041-0/+1
| | | | This disables use of bareword filehandles except for the built-in handles
* perlapi: Consolidate newRV and newRV_inc podKarl Williamson2020-12-301-1/+1
|
* Document gv_autoload4Karl Williamson2020-12-271-1/+1
|
* Document safesys...alloc fcns; safesysfreeKarl Williamson2020-12-271-4/+4
|
* Document gv_fetchfile(_flags)?Karl Williamson2020-12-271-2/+2
|
* embed.fnc: Mark gv_check as internalKarl Williamson2020-12-271-1/+1
| | | | | The purpose of this function is to raise a parse warning; not something something outside core should be doing.
* newSVsv_flags is now documentedKarl Williamson2020-12-241-1/+1
|
* embed.fnc: Mark several do_dump fcns as Core onlyKarl Williamson2020-12-201-9/+9
| | | | | These appear to be helper functions for various API functions; there are no uses of them in cpan
* embed.fnc: Mark sv_2uv, etc. as Core onlyKarl Williamson2020-12-201-4/+4
| | | | | There are documented macros that one is supposed to use instead for this functionality.
* embed.fnc: Mark stack_grow as Core onlyKarl Williamson2020-12-201-1/+1
| | | | | This is a helper function used by such things as SSGROW; there is no cpan usage
* embed.fnc: Mark scan_num as Core onlyKarl Williamson2020-12-201-1/+1
| | | | This is used by the toker to scan a number; there is no cpan usage
* embed.fnc: Mark cx_dump as Core onlyKarl Williamson2020-12-201-1/+1
| | | | This appears to be for internal debugging; there is no cpan usage
* embed.fnc: Mark av_arylen_p, av_iter_p as Core onlyKarl Williamson2020-12-201-2/+2
| | | | | | These appear to be internal functions, and there is no cpan usage The macro GIMME_V is what one is supposed to use for this functionality.
* embed.fnc: Mark doing_taint as Core onlyKarl Williamson2020-12-201-1/+1
| | | | This appears to be for internal use, and there are no cpan usages
* embed.fnc: Mark cxinc as Core onlyKarl Williamson2020-12-201-1/+1
| | | | | The macro CXINC is what one is supposed to use for this functionality. (though it is currently undocumented)
* embed.fnc: Mark moreswitches as Core onlyKarl Williamson2020-12-201-1/+1
| | | | | This is an internal function used to parse command line options; there are no cpan uses.
* embed.fnc: Mark runops_debug, runops_standard as Core onlyKarl Williamson2020-12-201-2/+2
| | | | These are internal functions to run the program; there are no cpan uses
* embed.fnc: Mark regnext as Core onlyKarl Williamson2020-12-201-1/+1
| | | | | | This is used internally by the regex engine; there is one use in cpan, an internals module, Devel::RegExp by Ilya Zakharevich, with nothing dependent on it, and last updated in 1995.
* embed.fnc: Mark cx_dup as Core onlyKarl Williamson2020-12-201-1/+1
| | | | | | Similar cx functions are supposed to be called with a macro for their functionality, but no such macro exists for this, and there are no uses on CPAN
* Remove my_l?stat from public APIKarl Williamson2020-12-061-2/+2
| | | | | They are not documented, and if you try to use them, you get a compile error.
* Evaluate arg once in all forms of SvTRUEKarl Williamson2020-12-061-0/+4
| | | | 5.32 did this for one form; now all do.
* Document various CopFILEfoo functionsKarl Williamson2020-11-291-0/+4
|
* perlapi: Note proper rplcemnt for pad_compname_typeKarl Williamson2020-11-221-1/+1
|
* embed.fnc: Mark reginitcolors as Core onlyKarl Williamson2020-11-221-1/+1
| | | | This is used for internal initialization, and there are no uses on cpan
* Mark despatch_signals as core onlyKarl Williamson2020-11-211-1/+1
|
* embed.fnc: Mark 3 sighandler fcns as Core onlyKarl Williamson2020-11-181-5/+5
| | | | These appear to be for internal use, with no cpan usage found
* Move regcurly to regcomp.c (from inline.h)Karl Williamson2020-11-181-1/+1
| | | | | | This function is called only at compile time; experience has shown that compile-time operations are not time-critical. And future commits will lengthen it, making it not practically inlinable anyway.
* embed.fnc: Add detail to u flag descriptionKarl Williamson2020-11-141-3/+5
|
* perlapi: Fix up some MRO documentationKarl Williamson2020-11-141-1/+1
| | | | | | mro_get_private_data() is core only; instead the public is supposed to use MRO_GET_PRIVATE_DATA(), which we now indicate is documented in perlmroapi, as well as HvMROMETA()
* sv.c: Change some formal param names for clarity, consistencyKarl Williamson2020-11-091-18/+18
| | | | | | The names previously indicated some things were strings that weren't necessarily so. Some nearly identical functions had varying parameter names.
* export delimcpy_no_escape() so XS::APItest can use itTony Cook2020-11-031-1/+1
|
* Fix up delimcpy_no_escape()Karl Williamson2020-10-311-3/+3
| | | | | | I modified this function in ab01742544b98b5b5e13d8e1a6e9df474b9e3005, and did not fully understand the edge cases. This commit now handles those properly, the same as plain delimcpy() does.
* Rewrite delimcpy to use memchr and Copy, not per-byteKarl Williamson2020-10-311-2/+3
| | | | | | | | | | | | | | | | | | | | Prior to this commit delimcpy() parsed its input byte-by-byte, looking for a particular character, and copied the input to the output stopping just before the first such occurrence. memchr() is much faster for finding a single character. The complication is that if the character is preceded by a backslash, it doesn't count as that character, it is considered to be escaped, and parsing continues to the first unescaped occurrence, if any. Each escaping backslash is not copied. The prior code also failed to account for the possibility of the delimiter being a backslash, the same as the escape. The new routine looks for the character with memchr, sees if it is escaped. If not, Copy does the whole copy at once. If it is escaped, it uses Copy up to that backslash, and repeats the process.
* add Perl_magic_freemglob() magic vtable methodDavid Mitchell2020-10-231-0/+1
| | | | | | | | | | | | | S_mg_free_struct() has a workaround to never free mg->mg_ptr for PERL_MAGIC_regex_global. Move this logic into a new magic vtable free method instead, so that S_mg_free_struct() (which gets called for every type of magic) doesn't have the overhead of checking every time for mg->mg_type == PERL_MAGIC_regex_global. [ No, I don't know why PERL_MAGIC_regex_global's vtable and methods are suffixed mglob rather than regex_global or vice versa ]
* add Perl_magic_freeutf8() magic vtable methodDavid Mitchell2020-10-231-0/+1
| | | | | | | | | | S_mg_free_struct() has a workaround to free mg->mg_ptr in PERL_MAGIC_utf8 even if mg_len is zero. Move this logic into a new magic vtable free method instead, so that S_mg_free_struct() (which gets called for every type of magic) doesn't have the overhead of checking every time for mg->mg_type == PERL_MAGIC_utf8.
* add Perl_magic_freecollxfrm() magic vtable methodDavid Mitchell2020-10-231-0/+1
| | | | | | | | | | v5.29.9-139-g44955e7de8 added a workaround to S_mg_free_struct() to free mg->mg_ptr in PERL_MAGIC_collxfrm even if mg_len is zero. Move this logic into a new magic vtable free method instead, so that S_mg_free_struct() (which gets called for every type of magic) doesn't have the overhead of checking every time for mg->mg_type == PERL_MAGIC_collxfrm.
* autodoc: Add ability to specify typedefsKarl Williamson2020-10-081-1/+3
| | | | | Typedefs are part of the API; this allows us to document basic things such as CV, U8 that aren't currently covered.
* Document newSUB, newATTRSUBKarl Williamson2020-10-061-2/+2
|
* Note that CvGV is now documentedKarl Williamson2020-09-301-1/+1
|
* Remove Perl_av_top_indexKarl Williamson2020-09-291-1/+1
| | | | | | | | | I created this in 87306e0674dfe3af29804b4641347cd5ac9b0521, thinking it was needed to preserve backward compatibility if someone were using this instead of the macro. But it turned out that there never was such a function, it was inlined, and the name was S_av_top_index, so there is no reason to create a new function that no one has ever been able to call. So just remove it, and let all accesses go through the macro
* Document gv_fetch[ps]v and kinKarl Williamson2020-09-221-3/+3
|
* embed.fnc docfix: s/s/S/Hugo van der Sanden2020-09-171-1/+1
|
* Document my_atofKarl Williamson2020-09-131-1/+1
|
* embed.fnc: Mark str_to_version as Core onlyKarl Williamson2020-09-131-1/+1
| | | | This is an internal toker function, with no uses on cpan
* Document cast NV to int macros; make helpers internalKarl Williamson2020-09-131-4/+4
| | | | | The helper, like, cast_uv, functions are now considered non-API, but the macros one is supposed to use instead are now documented.
* embed.fnc: Mark pad_setsv as core-onlyKarl Williamson2020-09-051-1/+1
| | | | You are supposed to access this functionality through PAD_SETSV
* Document mini_mktimeKarl Williamson2020-09-051-1/+1
|
* embed.fnc: Add text to commentKarl Williamson2020-09-051-1/+3
|
* Document vload_moduleKarl Williamson2020-09-051-1/+1
|
* embed.fnc: Mark several regex helpers as Core onlyKarl Williamson2020-09-051-3/+3
| | | | These are for internal regex use.