Devel-XSCover
view release on metacpan or search on metacpan
t/fixtures/gcov/llvm/Spike.gcov.txt view on Meta::CPAN
-: 3323: if (len > 1) {
-: 3324: char *null_at;
-: 3325: if (UNLIKELY((null_at = (char *)memchr(pv, 0, len-1)) != NULL)) {
-: 3326: SETERRNO(ENOENT, LIB_INVARG);
-: 3327: Perl_ck_warner(aTHX_ packWARN(WARN_SYSCALLS),
-: 3328: "Invalid \\0 character in %s for %s: %s\\0%s",
-: 3329: what, op_name, pv, null_at+1);
-: 3330: return FALSE;
-: 3331: }
-: 3332: }
-: 3333:
-: 3334: return TRUE;
-: 3335:}
-: 3336:
-: 3337:/*
-: 3338:
-: 3339:Return true if the supplied filename has a newline character
-: 3340:immediately before the first (hopefully only) NUL.
-: 3341:
-: 3342:My original look at this incorrectly used the len from SvPV(), but
-: 3343:that's incorrect, since we allow for a NUL in pv[len-1].
-: 3344:
-: 3345:So instead, strlen() and work from there.
-: 3346:
-: 3347:This allow for the user reading a filename, forgetting to chomp it,
-: 3348:then calling:
-: 3349:
-: 3350: open my $foo, "$file\0";
-: 3351:
-: 3352:*/
-: 3353:
-: 3354:#ifdef PERL_CORE
-: 3355:
-: 3356:PERL_STATIC_INLINE bool
-: 3357:S_should_warn_nl(const char *pv)
-: 3358:{
-: 3359: STRLEN len;
-: 3360:
-: 3361: PERL_ARGS_ASSERT_SHOULD_WARN_NL;
-: 3362:
-: 3363: len = strlen(pv);
-: 3364:
-: 3365: return len > 0 && pv[len-1] == '\n';
-: 3366:}
-: 3367:
-: 3368:#endif
-: 3369:
-: 3370:#if defined(PERL_IN_PP_C) || defined(PERL_IN_PP_HOT_C)
-: 3371:
-: 3372:PERL_STATIC_INLINE bool
-: 3373:S_lossless_NV_to_IV(const NV nv, IV *ivp)
-: 3374:{
-: 3375: /* This function determines if the input NV 'nv' may be converted without
-: 3376: * loss of data to an IV. If not, it returns FALSE taking no other action.
-: 3377: * But if it is possible, it does the conversion, returning TRUE, and
-: 3378: * storing the converted result in '*ivp' */
-: 3379:
-: 3380: PERL_ARGS_ASSERT_LOSSLESS_NV_TO_IV;
-: 3381:
-: 3382:# if defined(NAN_COMPARE_BROKEN) && defined(Perl_isnan)
-: 3383: /* Normally any comparison with a NaN returns false; if we can't rely
-: 3384: * on that behaviour, check explicitly */
-: 3385: if (UNLIKELY(Perl_isnan(nv))) {
-: 3386: return FALSE;
-: 3387: }
-: 3388:# endif
-: 3389:
-: 3390:# ifndef NV_PRESERVES_UV
-: 3391: STATIC_ASSERT_STMT(((UV)1 << NV_PRESERVES_UV_BITS) - 1 <= (UV)IV_MAX);
-: 3392:# endif
-: 3393:
-: 3394: /* Written this way so that with an always-false NaN comparison we
-: 3395: * return false */
-: 3396: if (
-: 3397:# ifdef NV_PRESERVES_UV
-: 3398: LIKELY(nv >= (NV) IV_MIN) && LIKELY(nv < IV_MAX_P1) &&
-: 3399:# else
-: 3400: /* If the condition below is not satisfied, lower bits of nv's
-: 3401: * integral part is already lost and accurate conversion to integer
-: 3402: * is impossible.
-: 3403: * Note this should be consistent with S_sv_2iuv_common in sv.c. */
-: 3404: Perl_fabs(nv) < (NV) ((UV)1 << NV_PRESERVES_UV_BITS) &&
-: 3405:# endif
-: 3406: (IV) nv == nv) {
-: 3407: *ivp = (IV) nv;
-: 3408: return TRUE;
-: 3409: }
-: 3410: return FALSE;
-: 3411:}
-: 3412:
-: 3413:#endif
-: 3414:
-: 3415:/* ------------------ pp.c, regcomp.c, toke.c, universal.c ------------ */
-: 3416:
-: 3417:#if defined(PERL_IN_PP_C) || defined(PERL_IN_REGCOMP_ANY) || defined(PERL_IN_TOKE_C) || defined(PERL_IN_UNIVERSAL_C)
-: 3418:
-: 3419:#define MAX_CHARSET_NAME_LENGTH 2
-: 3420:
-: 3421:PERL_STATIC_INLINE const char *
-: 3422:S_get_regex_charset_name(const U32 flags, STRLEN* const lenp)
-: 3423:{
-: 3424: PERL_ARGS_ASSERT_GET_REGEX_CHARSET_NAME;
-: 3425:
-: 3426: /* Returns a string that corresponds to the name of the regex character set
-: 3427: * given by 'flags', and *lenp is set the length of that string, which
-: 3428: * cannot exceed MAX_CHARSET_NAME_LENGTH characters */
-: 3429:
-: 3430: *lenp = 1;
-: 3431: switch (get_regex_charset(flags)) {
-: 3432: case REGEX_DEPENDS_CHARSET: return DEPENDS_PAT_MODS;
-: 3433: case REGEX_LOCALE_CHARSET: return LOCALE_PAT_MODS;
-: 3434: case REGEX_UNICODE_CHARSET: return UNICODE_PAT_MODS;
-: 3435: case REGEX_ASCII_RESTRICTED_CHARSET: return ASCII_RESTRICT_PAT_MODS;
-: 3436: case REGEX_ASCII_MORE_RESTRICTED_CHARSET:
-: 3437: *lenp = 2;
-: 3438: return ASCII_MORE_RESTRICT_PAT_MODS;
-: 3439: }
-: 3440: /* The NOT_REACHED; hides an assert() which has a rather complex
-: 3441: * definition in perl.h. */
-: 3442: NOT_REACHED; /* NOTREACHED */
-: 3443: return "?"; /* Unknown */
-: 3444:}
-: 3445:
-: 3446:#endif
-: 3447:
-: 3448:/*
-: 3449:
-: 3450:Return false if any get magic is on the SV other than taint magic.
-: 3451:
-: 3452:*/
-: 3453:
-: 3454:PERL_STATIC_INLINE bool
( run in 1.621 second using v1.01-cache-2.11-cpan-60884a8df76 )