core_or_not.inc
来自「source of perl for linux application,」· INC 代码 · 共 45 行
INC
45 行
/* This code is compiled twice, once with -DPERL_CORE defined, once without */#include "EXTERN.h"#include "perl.h"#ifdef PERL_CORE# define SUFFIX core#else# define SUFFIX notcore#endifboolCAT2(sv_setsv_cow_hashkey_, SUFFIX) () { dTHX; SV *source = newSVpvn_share("pie", 3, 0); SV *destination = newSV(0); bool result; if(!SvREADONLY(source) && !SvFAKE(source)) { SvREFCNT_dec(source); Perl_croak(aTHX_ "Creating a shared hash key scalar failed when " STRINGIFY(SUFFIX) " got flags %"UVxf, (UV)SvFLAGS(source)); } sv_setsv(destination, source); result = SvREADONLY(destination) && SvFAKE(destination); SvREFCNT_dec(source); SvREFCNT_dec(destination); return result;}/* * Local variables: * mode: c * c-indentation-style: bsd * c-basic-offset: 4 * indent-tabs-mode: t * End: * * ex: set ts=8 sts=4 sw=4 noet: */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?