ndr_compat.pl

来自「samba最新软件」· PL 代码 · 共 22 行

PL
22
字号
#!/usr/bin/perl# (C) 2007 Jelmer Vernooij <jelmer@samba.org># Published under the GNU General Public Licenseuse strict;use Test::More tests => 2;use FindBin qw($RealBin);use lib "$RealBin";use Util; use Parse::Pidl;use Parse::Pidl::IDL;sub parse_idl($) {	my $idl = shift;	my $pidl = Parse::Pidl::IDL::parse_string("interface echo { $idl }; ", "nofile");	Parse::Pidl::NDR::Parse($pidl);}test_warnings("", sub {parse_idl("void x();"); });test_warnings("nofile:0: top-level [out] pointer `x' is not a [ref] pointer\n", sub {parse_idl("void x([out,unique] int *x);"); });

⌨️ 快捷键说明

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