亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? struct.pm

?? autoconf 2.59版,可用于redhat系統(tǒng).用于編譯原碼,編寫makefile文件.
?? PM
?? 第 1 頁 / 共 2 頁
字號:
# autoconf -- create `configure' using m4 macros# Copyright (C) 2001, 2002 Free Software Foundation, Inc.# This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2, or (at your option)# any later version.# This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU General Public License for more details.# You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA# 02111-1307, USA.# This file is basically Perl 5.6's Class::Struct, but made compatible# with Perl 5.5.  If someday this has to be updated, be sure to rename# all the occurrences of Class::Struct into Autom4te::Struct, otherwise# if we `use' a Perl module (e.g., File::stat) that uses Class::Struct,# we would have two packages defining the same symbols.  Boom.package Autom4te::Struct;## See POD after __END__use 5.005_03;use strict;use vars qw(@ISA @EXPORT $VERSION);use Carp;require Exporter;@ISA = qw(Exporter);@EXPORT = qw(struct);$VERSION = '0.58';## Tested on 5.002 and 5.003 without class membership tests:my $CHECK_CLASS_MEMBERSHIP = ($] >= 5.003_95);my $print = 0;sub printem {    if (@_) { $print = shift }    else    { $print++ }}{    package Autom4te::Struct::Tie_ISA;    sub TIEARRAY {        my $class = shift;        return bless [], $class;    }    sub STORE {        my ($self, $index, $value) = @_;        Autom4te::Struct::_subclass_error();    }    sub FETCH {        my ($self, $index) = @_;        $self->[$index];    }    sub FETCHSIZE {        my $self = shift;        return scalar(@$self);    }    sub DESTROY { }}sub struct {    # Determine parameter list structure, one of:    #   struct( class => [ element-list ])    #   struct( class => { element-list })    #   struct( element-list )    # Latter form assumes current package name as struct name.    my ($class, @decls);    my $base_type = ref $_[1];    if ( $base_type eq 'HASH' ) {        $class = shift;        @decls = %{shift()};        _usage_error() if @_;    }    elsif ( $base_type eq 'ARRAY' ) {        $class = shift;        @decls = @{shift()};        _usage_error() if @_;    }    else {        $base_type = 'ARRAY';        $class = (caller())[0];        @decls = @_;    }    _usage_error() if @decls % 2 == 1;    # Ensure we are not, and will not be, a subclass.    my $isa = do {        no strict 'refs';        \@{$class . '::ISA'};    };    _subclass_error() if @$isa;    tie @$isa, 'Autom4te::Struct::Tie_ISA';    # Create constructor.    croak "function 'new' already defined in package $class"        if do { no strict 'refs'; defined &{$class . "::new"} };    my @methods = ();    my %refs = ();    my %arrays = ();    my %hashes = ();    my %classes = ();    my $got_class = 0;    my $out = '';    $out = "{\n  package $class;\n  use Carp;\n  sub new {\n";    $out .= "    my (\$class, \%init) = \@_;\n";    $out .= "    \$class = __PACKAGE__ unless \@_;\n";    my $cnt = 0;    my $idx = 0;    my( $cmt, $name, $type, $elem );    if( $base_type eq 'HASH' ){        $out .= "    my(\$r) = {};\n";        $cmt = '';    }    elsif( $base_type eq 'ARRAY' ){        $out .= "    my(\$r) = [];\n";    }    while( $idx < @decls ){        $name = $decls[$idx];        $type = $decls[$idx+1];        push( @methods, $name );        if( $base_type eq 'HASH' ){            $elem = "{'${class}::$name'}";        }        elsif( $base_type eq 'ARRAY' ){            $elem = "[$cnt]";            ++$cnt;            $cmt = " # $name";        }        if( $type =~ /^\*(.)/ ){            $refs{$name}++;            $type = $1;        }        my $init = "defined(\$init{'$name'}) ? \$init{'$name'} :";        if( $type eq '@' ){            $out .= "    croak 'Initializer for $name must be array reference'\n";            $out .= "        if defined(\$init{'$name'}) && ref(\$init{'$name'}) ne 'ARRAY';\n";            $out .= "    \$r->$elem = $init [];$cmt\n";            $arrays{$name}++;        }        elsif( $type eq '%' ){            $out .= "    croak 'Initializer for $name must be hash reference'\n";            $out .= "        if defined(\$init{'$name'}) && ref(\$init{'$name'}) ne 'HASH';\n";            $out .= "    \$r->$elem = $init {};$cmt\n";            $hashes{$name}++;        }        elsif ( $type eq '$') {            $out .= "    \$r->$elem = $init undef;$cmt\n";        }        elsif( $type =~ /^\w+(?:::\w+)*$/ ){            $init = "defined(\$init{'$name'}) ? \%{\$init{'$name'}} : ()";            $out .= "    croak 'Initializer for $name must be hash reference'\n";            $out .= "        if defined(\$init{'$name'}) && ref(\$init{'$name'}) ne 'HASH';\n";            $out .= "    \$r->$elem = '${type}'->new($init);$cmt\n";            $classes{$name} = $type;            $got_class = 1;        }        else{            croak "'$type' is not a valid struct element type";        }        $idx += 2;    }    $out .= "    bless \$r, \$class;\n  }\n";    # Create accessor methods.    my( $pre, $pst, $sel );    $cnt = 0;    foreach $name (@methods){        if ( do { no strict 'refs'; defined &{$class . "::$name"} } ) {            carp "function '$name' already defined, overrides struct accessor method";        }        else {            $pre = $pst = $cmt = $sel = '';            if( defined $refs{$name} ){                $pre = "\\(";                $pst = ")";                $cmt = " # returns ref";            }            $out .= "  sub $name {$cmt\n    my \$r = shift;\n";            if( $base_type eq 'ARRAY' ){                $elem = "[$cnt]";                ++$cnt;            }            elsif( $base_type eq 'HASH' ){                $elem = "{'${class}::$name'}";            }            if( defined $arrays{$name} ){                $out .= "    my \$i;\n";                $out .= "    \@_ ? (\$i = shift) : return \$r->$elem;\n";                $sel = "->[\$i]";            }            elsif( defined $hashes{$name} ){                $out .= "    my \$i;\n";                $out .= "    \@_ ? (\$i = shift) : return \$r->$elem;\n";                $sel = "->{\$i}";            }            elsif( defined $classes{$name} ){                if ( $CHECK_CLASS_MEMBERSHIP ) {                    $out .= "    croak '$name argument is wrong class' if \@_ && ! UNIVERSAL::isa(\$_[0], '$classes{$name}');\n";                }            }            $out .= "    croak 'Too many args to $name' if \@_ > 1;\n";            $out .= "    \@_ ? ($pre\$r->$elem$sel = shift$pst) : $pre\$r->$elem$sel$pst;\n";            $out .= "  }\n";        }    }    $out .= "}\n1;\n";    print $out if $print;    my $result = eval $out;    carp $@ if $@;}sub _usage_error {    confess "struct usage error";}sub _subclass_error {    croak 'struct class cannot be a subclass (@ISA not allowed)';}1; # for require__END__=head1 NAMEAutom4te::Struct - declare struct-like datatypes as Perl classes=head1 SYNOPSIS    use Autom4te::Struct;            # declare struct, based on array:    struct( CLASS_NAME => [ ELEMENT_NAME => ELEMENT_TYPE, ... ]);            # declare struct, based on hash:    struct( CLASS_NAME => { ELEMENT_NAME => ELEMENT_TYPE, ... });    package CLASS_NAME;    use Autom4te::Struct;            # declare struct, based on array, implicit class name:    struct( ELEMENT_NAME => ELEMENT_TYPE, ... );    package Myobj;    use Autom4te::Struct;            # declare struct with four types of elements:    struct( s => '$', a => '@', h => '%', c => 'My_Other_Class' );    $obj = new Myobj;               # constructor                                    # scalar type accessor:    $element_value = $obj->s;           # element value    $obj->s('new value');               # assign to element                                    # array type accessor:    $ary_ref = $obj->a;                 # reference to whole array    $ary_element_value = $obj->a(2);    # array element value    $obj->a(2, 'new value');            # assign to array element                                    # hash type accessor:    $hash_ref = $obj->h;                # reference to whole hash    $hash_element_value = $obj->h('x'); # hash element value    $obj->h('x', 'new value');        # assign to hash element                                    # class type accessor:    $element_value = $obj->c;           # object reference    $obj->c->method(...);               # call method of object    $obj->c(new My_Other_Class);        # assign a new object=head1 DESCRIPTIONC<Autom4te::Struct> exports a single function, C<struct>.Given a list of element names and types, and optionallya class name, C<struct> creates a Perl 5 class that implementsa "struct-like" data structure.The new class is given a constructor method, C<new>, for creatingstruct objects.Each element in the struct data has an accessor method, which isused to assign to the element and to fetch its value.  Thedefault accessor can be overridden by declaring a C<sub> of thesame name in the package.  (See Example 2.)Each element's type can be scalar, array, hash, or class.

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一本到不卡精品视频在线观看| 美女视频网站久久| 国产欧美精品一区aⅴ影院| 欧美va亚洲va| 久久综合色鬼综合色| 精品成a人在线观看| 久久久综合视频| 国产精品污网站| 亚洲欧洲精品一区二区三区不卡| 最新欧美精品一区二区三区| 亚洲精品成人在线| 午夜精品久久久久久| 国产麻豆日韩欧美久久| 国产成人av自拍| 99视频一区二区| 欧美三级午夜理伦三级中视频| 欧美精品一二三| 久久综合九色欧美综合狠狠| 中文一区在线播放| 亚洲自拍偷拍图区| 美日韩一区二区| 成人听书哪个软件好| 色拍拍在线精品视频8848| 欧美高清你懂得| 久久久久久久久岛国免费| 自拍偷拍欧美精品| 日韩电影在线免费看| 国产精品911| 欧洲视频一区二区| 久久综合久久鬼色| 一区二区三区日韩在线观看| 久久精品国产99| 99视频精品在线| 日韩情涩欧美日韩视频| 国产精品动漫网站| 婷婷综合五月天| 9i看片成人免费高清| 日韩一级大片在线| 亚洲精品视频免费看| 精品夜夜嗨av一区二区三区| 色诱视频网站一区| 国产亚洲自拍一区| 天天综合网天天综合色| 成人午夜免费电影| 日韩免费一区二区三区在线播放| 亚洲国产激情av| 成人国产电影网| 欧美精品一二三| 亚洲人123区| 国产福利视频一区二区三区| 欧美亚洲国产一区在线观看网站| 久久色视频免费观看| 亚洲动漫第一页| 99久久99久久综合| 国产午夜亚洲精品理论片色戒 | 555夜色666亚洲国产免| 国产精品久久久久久久裸模| 精品一区精品二区高清| 欧美人妇做爰xxxⅹ性高电影| 亚洲欧美综合另类在线卡通| 国产乱子伦视频一区二区三区| 91精品婷婷国产综合久久竹菊| 亚洲欧美偷拍卡通变态| 成人久久久精品乱码一区二区三区| 日韩一卡二卡三卡国产欧美| 婷婷成人综合网| 欧美亚洲动漫另类| 亚洲精品一二三| 日本高清不卡aⅴ免费网站| 国产精品全国免费观看高清 | 中文av一区二区| 国产一区二区视频在线| 精品毛片乱码1区2区3区| 三级不卡在线观看| 在线成人高清不卡| 亚洲国产精品久久不卡毛片| 在线亚洲精品福利网址导航| 亚洲精品国产a| 在线视频观看一区| 午夜视频在线观看一区二区| 久久精品亚洲精品国产欧美| 卡一卡二国产精品| 精品国产乱码久久久久久蜜臀| 久久精品国产第一区二区三区| 欧美一区二区不卡视频| 蜜桃91丨九色丨蝌蚪91桃色| 26uuu精品一区二区在线观看| 精品写真视频在线观看| 国产欧美日韩视频一区二区 | 91国模大尺度私拍在线视频| 亚洲美女在线一区| 欧美日韩高清一区二区不卡| 日韩经典中文字幕一区| 久久综合丝袜日本网| 国产99精品国产| 亚洲精品自拍动漫在线| 欧美另类videos死尸| 久久成人av少妇免费| 欧美激情一区二区三区在线| 91在线精品一区二区| 香蕉乱码成人久久天堂爱免费| 日韩精品中文字幕一区二区三区| 国产成a人亚洲精品| 一级日本不卡的影视| 欧美一级二级三级乱码| 成人动漫av在线| 偷拍亚洲欧洲综合| 久久久精品免费网站| 91成人免费在线视频| 激情综合网最新| 亚洲人成人一区二区在线观看 | 国产老肥熟一区二区三区| 国产精品久久久久久久浪潮网站| 欧美日韩国产经典色站一区二区三区| 国产在线精品不卡| 久久99精品视频| 日韩久久一区二区| 日韩精品一区二区三区视频在线观看| 99久久精品费精品国产一区二区| 日韩成人一级片| 亚洲欧美日韩人成在线播放| 精品va天堂亚洲国产| 欧美三级视频在线观看| 成人高清在线视频| 经典一区二区三区| 婷婷中文字幕综合| 亚洲精品久久嫩草网站秘色| 欧美精品一区二区三| 7777精品伊人久久久大香线蕉的| 99视频一区二区三区| 国产美女精品人人做人人爽| 肉色丝袜一区二区| 亚洲一区二区三区视频在线播放| 26uuu久久天堂性欧美| 欧美一区二区三区色| 欧美日韩一区视频| 色婷婷久久久久swag精品| 国产电影精品久久禁18| 精品在线播放午夜| 日产国产欧美视频一区精品| 亚洲成人第一页| 亚洲综合999| 亚洲一区在线观看免费| 亚洲三级理论片| 国产精品不卡视频| 国产精品久久久久久一区二区三区 | 欧美日韩成人在线一区| 色呦呦日韩精品| 91视频免费观看| 97久久超碰国产精品电影| 国产精品白丝av| 大陆成人av片| 成人sese在线| 91网址在线看| 日韩女同互慰一区二区| 日韩一级黄色片| 日韩欧美成人一区二区| 久久蜜桃av一区二区天堂| 欧美—级在线免费片| 国产精品美女久久福利网站| 中文字幕中文乱码欧美一区二区 | 日韩精品一区二区三区中文精品| 正在播放亚洲一区| 精品国产凹凸成av人导航| 精品成人佐山爱一区二区| 国产亚洲一本大道中文在线| 国产精品女人毛片| 亚洲精品一二三四区| 调教+趴+乳夹+国产+精品| 蜜桃视频在线观看一区二区| 国产一区二区三区在线观看免费视频 | 中文字幕亚洲电影| 一区二区三区资源| 日本不卡1234视频| 国产精品资源在线看| 成人国产电影网| 5566中文字幕一区二区电影| 精品剧情v国产在线观看在线| 欧美国产日韩a欧美在线观看| 亚洲精品久久嫩草网站秘色| 视频一区中文字幕| 成人一区二区三区| 欧美日韩一区二区在线观看| 久久毛片高清国产| 国产精品一区专区| aaa亚洲精品一二三区| 欧美日韩免费一区二区三区视频| 2024国产精品| 亚洲一区二区精品久久av| 国产一区视频在线看| 色婷婷激情久久| 精品国产精品网麻豆系列| 亚洲免费观看高清在线观看| 丝袜美腿亚洲一区| av电影天堂一区二区在线| 日韩欧美在线综合网| 亚洲欧美激情小说另类| 国产精品亚洲午夜一区二区三区| 欧洲人成人精品| 中文字幕永久在线不卡|