⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pvs

📁 source of perl for linux application,
💻
字号:
####################################################################################  $Revision: 6 $##  $Author: mhx $##  $Date: 2007/10/04 12:26:54 +0200 $######################################################################################  Version 3.x, Copyright (C) 2004-2007, Marcus Holland-Moritz.##  Version 2.x, Copyright (C) 2001, Paul Marquess.##  Version 1.x, Copyright (C) 1999, Kenneth Albanowski.####  This program is free software; you can redistribute it and/or##  modify it under the same terms as Perl itself.##################################################################################=provides__UNDEFINED__=implementation/* concatenating with "" ensures that only literal strings are accepted as argument * note that STR_WITH_LEN() can't be used as argument to macros or functions that * under some configurations might be macros */__UNDEFINED__  STR_WITH_LEN(s)             (s ""), (sizeof(s)-1)__UNDEFINED__  newSVpvs(str)               newSVpvn(str "", sizeof(str) - 1)__UNDEFINED__  sv_catpvs(sv, str)          sv_catpvn(sv, str "", sizeof(str) - 1)__UNDEFINED__  sv_setpvs(sv, str)          sv_setpvn(sv, str "", sizeof(str) - 1)__UNDEFINED__  hv_fetchs(hv, key, lval)    hv_fetch(hv, key "", sizeof(key) - 1, lval)__UNDEFINED__  hv_stores(hv, key, val)     hv_store(hv, key "", sizeof(key) - 1, val, 0)=xsubsvoidnewSVpvs()	PPCODE:		XPUSHs(newSVpvs("newSVpvs"));		XSRETURN(1);voidsv_catpvs(sv)	SV *sv	PPCODE:		sv_catpvs(sv, "sv_catpvs");voidsv_setpvs(sv)	SV *sv	PPCODE:		sv_setpvs(sv, "sv_setpvs");voidhv_fetchs(hv)	SV *hv	PREINIT:		SV **s;	PPCODE:		s = hv_fetchs((HV *) SvRV(hv), "hv_fetchs", 0);		XPUSHs(sv_mortalcopy(*s));		XSRETURN(1);voidhv_stores(hv, sv)	SV *hv	SV *sv	PPCODE:		(void) hv_stores((HV *) SvRV(hv), "hv_stores", SvREFCNT_inc_simple(sv));=tests plan => 7my $x = 'foo';ok(Devel::PPPort::newSVpvs(), "newSVpvs");Devel::PPPort::sv_catpvs($x);ok($x, "foosv_catpvs");Devel::PPPort::sv_setpvs($x);ok($x, "sv_setpvs");my %h = ('hv_fetchs' => 42);Devel::PPPort::hv_stores(\%h, 4711);ok(scalar keys %h, 2);ok(exists $h{'hv_stores'});ok($h{'hv_stores'}, 4711);ok(Devel::PPPort::hv_fetchs(\%h), 42);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -