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

📄 whitespace.t

📁 memcached是一个高性能的分布式的内存对象缓存系统
💻 T
字号:
#!/usr/bin/perluse strict;use FindBin qw($Bin);our @files;BEGIN {    chdir "$Bin/.." or die;    @files = grep {! /^config.h$/ } (glob("*.h"), glob("*.c"), glob("*.ac"));}use Test::More tests => scalar(@files);foreach my $f (@files) {    open(my $fh, $f) or die;    my $before = do { local $/; <$fh>; };    close ($fh);    my $after = $before;    $after =~ s/\t/    /g;    $after =~ s/ +$//mg;    $after .= "\n" unless $after =~ /\n$/;    ok ($after eq $before, "$f (see devtools/clean-whitespace.pl)");}

⌨️ 快捷键说明

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