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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? focusparser.pm

?? ACE自適配通信環境(ADAPTIVE Communication Environment)是可以自由使用、開放源碼的面向對象(OO)框架(Framework)
?? PM
?? 第 1 頁 / 共 2 頁
字號:
        print OUT $_; # print end hook!      }    }  }  # everything went well!  close (IN);  close (OUT);  rename ($copy_file_name_tmp, $copy_file_name);}################################################################ Visit_Copy: visit the <copy> tags and weave the code into the# source file. In particular, open the source file specified# in the file-source tag. Search for the start hook and# copy until the end hook is reached.###############################################################sub Visit_Copy{  my ($copy_tag, $copy_file_name, $default_module_name, $prefix_path) = @_;  # Check if a file name has been specified  my $dest_file_tag = $copy_tag->getElementsByTagName ('source');  if (! $dest_file_tag)  {    print "Error: <copy-from-source> does not have the <file> tag..";    print "aborting \n";    exit 1;  }  if ($dest_file_tag->getLength != 1)  {    print "Assertion Error: A <copy-from-source> element can have only \           one <source> tag from which to copy elements";    exit (1);  }  my $dest_file_name = $dest_file_tag->item(0)->getFirstChild->getNodeValue;  #Check if the file exists and one is able to access it  $dest_file_name = $prefix_path . "/" . $default_module_name . "/" . $dest_file_name;  open (DEST, "<". $dest_file_name) ||   die "cannot open $dest_file_name \n Wrong <file> tag within <copy-from-source> exiting" ;  # check for the start and end tags within the target file where  # one needs to start copying from  my $start_tag = $copy_tag->getElementsByTagName ('copy-hook-start');  my $end_tag   = $copy_tag->getElementsByTagName ('copy-hook-end');  if (! $start_tag || ! $end_tag)  {    print "Assertion Error: A <copy> element should have a \           <copy-hook-start> tag and <copy-hook-end> tag \n";    exit (1);  }  # Get the <dest-hook> tag that indicates the destination where the  # code between the start and end tags will be placed.  my $dest_hook_tag   = $copy_tag->getElementsByTagName ('dest-hook');  if (! $dest_hook_tag)  {    print "Assertion Error: <copy-from-source> should have a <dest-hook> \           tag that dictates where in the source file the code should be \           placed. \n";    exit (1);  }  # Remove any starting and trailing white spaces  chomp ($dest_hook_tag);  # We have everything we need! Do the copy  my $start_tag_name = $start_tag->item(0)->getFirstChild->getNodeValue;  my $end_tag_name   = $end_tag->item(0)->getFirstChild->getNodeValue;  my $dest_tag_name  = $dest_hook_tag->item(0)->getFirstChild->getNodeValue;  # First we add the FOCUS prepend tags  $start_tag_name = $FOCUS_PREPEND_TAG . $start_tag_name;  $end_tag_name   = $FOCUS_PREPEND_TAG . $end_tag_name;  $dest_tag_name  = $FOCUS_PREPEND_TAG . $dest_tag_name;  # Step 1: Iterate over the target file till the  # dest-hook is found in that file  my $copy_file_name_tmp = $copy_file_name . "tmp";  open (OUT, ">". $copy_file_name_tmp) ||    die "cannot open temporary file for modying file:" . $copy_file_name;  open (IN, "<" . $copy_file_name) ||    die "cannot open file $copy_file_name specified in the <file> tag \n";  my $dest_tag_found = 0; #check if tag matched  foreach my $line (<IN>)  {    if ($line =~ /$dest_tag_name/)    { $dest_tag_found = 1; print OUT $line; last; }    print OUT $line;  }  close (IN);  # If we reached the end of file before finding the tag!  if (! $dest_tag_found)  {    print "\n Error: <dest-hook> tag missing in file .. aborting \n";    close (DEST);    close (IN);    close (OUT);    unlink ($copy_file_name_tmp);    exit (1);  }  # Step 2: Now look in the destination file and look for the hooks  # where one needs to copy. There could be multiple places where the  # hook can be present. E.g.  # .......  # //@@ COPY_START_HOOK  # ....  # ....  # //@@ COPY_END_HOOK  # ....  # ....  # //@@ COPY_START_HOOK  # ....  # ....  # //@@ COPY_END_HOOK  # Handle this case  my $line_matched = 0;  my $start_copying = 0; # initially do not copy  foreach my $line (<DEST>)  {    # Check if the line matches the start tag    if ($line =~/$start_tag_name/)    {      $line_matched += 1;      $start_copying = 1;    }    else    {      # Check if the line matches the end tag      if ($line =~/$end_tag_name/)      {        # check if the start tag matched!        if (! $line_matched)        {          print "Assertion error: <copy-hook-end> tag misplaced with \                 the <copy-hoook-source> \n";          close (DEST);          close (IN);          close (OUT);          unlink ($copy_file_name_tmp);          exit (1);        }        # decrement the count for nested tags        $line_matched -= 1;        if (! $line_matched )          { $start_copying = 0; }      }      else      {        # Print out the line        if ($start_copying)          { print OUT $line; }      }    }  }  # At the end of this loop line_matched should be 0  if ($line_matched)  {    print "Error: in $dest_file_name, number of <copy-hook-source> tags \           did not match the number of <copy-hook-end> tags. Reverting \           changes. \n";    close (DEST);    close (IN);    close (OUT);    unlink ($copy_file_name_tmp);    exit (1);  }  # Step 3: Now copy data after the tag in the original file onto the destination  # file.  open (IN, "<" . $copy_file_name) ||    die "cannot open file $copy_file_name specified in the <file> tag \n";  $dest_tag_found = 0; #used as a flag  foreach my $line (<IN>)  {    if ($dest_tag_found)    { print OUT $line; }    # If the hook is found, then don't write the hook onto OUT    # as it would have been written earlier    if (! $dest_tag_found &&        $line =~ /$dest_tag_name/)      { $dest_tag_found = 1; }  }  # Normal exit path  close (IN);  close (OUT);  close (DEST);  # Rename the tmp file to the file modified  rename ($copy_file_name_tmp, $copy_file_name);}################################################################## commit_files: A procedure to commit all the copy files that# were specialized back to the orginal files.#################################################################sub commit_files{  my ($path_name, $output_path_name, @files) = @_;  # iterate over the file_name_list  foreach my $file (@files)  {    # <file name="....">    my $file_name = $file->getAttribute('name');    # output_path == input_path then do an in place    # substitution.    if ($output_path_name eq $path_name)    {      rename ($path_name . "/" . $file_name . "copy",              $path_name . "/" . $file_name);    }    else    {      # Check if the path_name exists. The path name      # corresponds to a directory. So create it if it does      # not exist.      if (! -d $output_path_name)      {        #@@? Need to revert the *copy files?        mkpath ($output_path_name, 0, 0744) ||          die "cannot create $output_path_name: commit files failed! \n";      }      # move the specialized file to the output directory      rename ($path_name . "/" . $file_name . "copy",              $output_path_name . "/" . $file_name);    }  }}#### Main ######################################################### Specialize_Component# procedure to execute the transformations specified in the# specialization file##################################################################sub Specialize_Components{  # Get the command line arguments  my ($prefix_path, $spl_file, $output_prefix) = @_;  my $parser = XML::DOM::Parser->new();  my $doc = $parser->parsefile($spl_file);  # Check if the prefix path ends with a / or not  # if it does not then manually add the / to it  my $last = substr ($prefix_path, -1);  if ($last ne "/")  { $prefix_path = $prefix_path . "/"; }  # Entry Point: <transform> element  foreach my $transform ($doc->getElementsByTagName('transform'))  {    # <module tags>    foreach my $module ($transform->getElementsByTagName('module'))    {      # Complete path name to the module      my $module_name = $module->getAttribute('name');      my $path_name = $prefix_path . $module_name;      # <file tags>      my @files = $module->getElementsByTagName('file');      foreach my $file (@files)      {	# <file name="....">	my $file_name = $file->getAttribute('name');	# Rather than modifying the files directly, make a local	# copy of the files and then transform them and commit	# if there is a file called foo we make a file foo_copy	my $file_path_copy = $path_name . "/" . $file_name . "copy";	my $file_path_name = $path_name . "/" . $file_name;	copy ($file_path_name, $file_path_copy);	# Diagnostic comment	print "Instrumenting $file_name ..........";        # <comment> ... </comment>        my @comment_list = $file->getElementsByTagName ('comment');        foreach my $comment (@comment_list)        { Visit_Comment ($comment, $file_path_copy); }        # <copy-from-source> ... </copy-from-source>        my @copy_from_source_files =          $file->getElementsByTagName ('copy-from-source');        foreach my $copy_from_source (@copy_from_source_files)        {          Visit_Copy ($copy_from_source,                      $file_path_copy,                      $module_name,                      $prefix_path);        }	# <remove> ... </remove>	my @remove_list = $file->getElementsByTagName ('remove');        foreach my $remove (@remove_list)	{ Visit_Remove ($remove, $file_path_copy); }	# <substitute ... </substitute>	my @substitute_list = $file->getElementsByTagName ('substitute');	foreach my $substitute (@substitute_list)	{ Visit_Substitute ($substitute, $file_path_copy); }	# <add> <hook> ...... </hook> <add>	my @add_list = $file->getElementsByTagName ('add');	foreach my $add (@add_list)	{ Visit_Add ($add, $file_path_copy); }	# Everything went well.. Print success	print " [done] \n";      }    }    # At this point all the specializations in all the modules have    # succeeded. It is at this point that we need to commit the    # specializations in each of the modules. That is move the temporary    # file that we created to the main file that was specialized.    # This also means that we need another loop and do the same thing    # as above....    # <module tags>    foreach my $module ($transform->getElementsByTagName('module'))    {      # Complete path name to the module      my $module_name = $module->getAttribute('name');      my $path_name = $prefix_path . $module_name;      # Output path name: append output_prefix to the      # current module name. Append "/" to create a      # directory like /foo/bar/baz/      my $output_path = $output_prefix . "/" . $module_name;      # <file tags>      my @files = $module->getElementsByTagName('file');      # commit the files      commit_files ($path_name, $output_path, @files);    }  }}##### Requiured for a module####1;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品久久久久久户外露出| 亚洲欧洲日韩av| 欧美日韩在线三区| 色婷婷激情综合| 欧洲av在线精品| 欧美另类高清zo欧美| 欧美日韩一区久久| 日韩一级精品视频在线观看| 欧美成人性福生活免费看| 国产网站一区二区| 日韩美女啊v在线免费观看| 亚洲精品少妇30p| 亚洲444eee在线观看| 日韩高清一区在线| 国产乱码精品一区二区三| 99热精品国产| 7777精品伊人久久久大香线蕉经典版下载 | 日韩码欧中文字| 一区二区成人在线| 蜜桃视频在线观看一区| 国产一区二区福利视频| 97久久久精品综合88久久| 欧美日韩国产精品成人| 精品99999| 一区二区三区四区精品在线视频 | 成人免费一区二区三区在线观看| 国产精品三级av在线播放| 一区二区久久久久| 激情欧美日韩一区二区| aa级大片欧美| 日韩欧美一级二级三级久久久| 国产亚洲综合色| 亚洲国产美女搞黄色| 国产经典欧美精品| 欧美三级资源在线| 中文一区二区在线观看| 丝袜美腿亚洲一区二区图片| 成人动漫av在线| 日韩丝袜美女视频| 亚洲欧美另类久久久精品2019| 老司机精品视频导航| 91久久精品午夜一区二区| 17c精品麻豆一区二区免费| 爽好多水快深点欧美视频| 成人丝袜视频网| 精品国产百合女同互慰| 夜夜亚洲天天久久| av成人动漫在线观看| 久久亚洲春色中文字幕久久久| 性做久久久久久免费观看| 成av人片一区二区| 久久久久久久国产精品影院| 日韩国产欧美视频| 91福利小视频| 亚洲国产高清aⅴ视频| 久久99精品久久久| 日韩西西人体444www| 亚洲大片精品永久免费| 色成年激情久久综合| 国产精品乱人伦| 国产成人在线视频网站| 日韩欧美一区在线观看| 婷婷国产v国产偷v亚洲高清| 在线观看国产91| 亚洲欧美精品午睡沙发| 91猫先生在线| 亚洲精品日韩专区silk| 成人av在线资源网| 综合网在线视频| 色哟哟日韩精品| 亚洲欧美福利一区二区| 色婷婷久久久亚洲一区二区三区| 中文字幕在线视频一区| 91啪在线观看| 亚洲国产一区二区a毛片| 欧美图区在线视频| 午夜成人在线视频| 3d成人h动漫网站入口| 奇米影视一区二区三区| 精品国产一区二区亚洲人成毛片 | 91福利在线看| 午夜视频一区二区三区| 欧美丰满一区二区免费视频 | 夜夜嗨av一区二区三区网页| 日本韩国欧美一区| 亚洲成人自拍偷拍| 日韩一卡二卡三卡国产欧美| 国产精品亚洲第一区在线暖暖韩国 | 亚洲国产精品一区二区尤物区| 欧美午夜精品久久久久久孕妇| 午夜精品福利视频网站| 精品国产成人系列| 99久久精品国产毛片| 午夜av区久久| 久久久精品免费免费| 色婷婷亚洲综合| 蜜乳av一区二区| 国产精品午夜在线| 欧美日韩一区二区三区四区| 久久福利视频一区二区| 国产精品视频一二三| 欧美精品一二三区| 国产成人精品影院| 亚瑟在线精品视频| 中文字幕成人av| 精品视频一区二区不卡| 欧美性生活大片视频| 麻豆精品精品国产自在97香蕉| 国产精品毛片大码女人| 欧美一区二区二区| 99久久伊人网影院| 蜜臀久久99精品久久久画质超高清| 国产日韩欧美精品一区| 在线播放中文字幕一区| 99视频在线精品| 国产一区二区免费视频| 亚洲第四色夜色| 亚洲欧洲另类国产综合| 久久午夜老司机| 在线成人av影院| 色老汉一区二区三区| 国产一区不卡在线| 日韩经典一区二区| 综合久久久久久| 国产欧美日韩中文久久| 欧美电视剧免费全集观看| 欧美在线制服丝袜| 99综合电影在线视频| 国产精品88888| 久久99久久精品| 图片区日韩欧美亚洲| 亚洲精品视频在线观看网站| 亚洲国产精品99久久久久久久久| 日韩欧美亚洲国产另类| 在线免费观看成人短视频| www.色精品| 成人听书哪个软件好| 国产ts人妖一区二区| 激情小说亚洲一区| 久久99这里只有精品| 日韩av在线发布| 日韩专区一卡二卡| 丝袜美腿成人在线| 日韩精品欧美成人高清一区二区| 伊人色综合久久天天人手人婷| 最新国产の精品合集bt伙计| 亚洲欧洲精品成人久久奇米网| 国产精品人成在线观看免费| 国产精品久久夜| 中文字幕一区二区不卡| 亚洲视频 欧洲视频| 亚洲色图欧美激情| 一区二区不卡在线视频 午夜欧美不卡在 | 久久久久久久久久看片| 久久亚洲一级片| 中文字幕av一区 二区| 欧美激情一区二区| 亚洲人被黑人高潮完整版| 亚洲一区二区精品3399| 五月天欧美精品| 男女性色大片免费观看一区二区| 麻豆久久久久久久| 国产成人精品三级| 色综合久久中文综合久久牛| 欧美自拍偷拍一区| 日韩午夜激情av| 久久午夜国产精品| 亚洲精品免费在线播放| 亚洲成av人片在线| 狠狠色丁香久久婷婷综| 成人妖精视频yjsp地址| 色先锋久久av资源部| 欧美疯狂做受xxxx富婆| 国产亚洲1区2区3区| 亚洲欧美偷拍三级| 老鸭窝一区二区久久精品| 国产精品夜夜爽| 欧美性生活一区| 国产亲近乱来精品视频| 亚洲午夜电影在线| 国产精品自拍av| 欧美影院一区二区三区| 精品国产欧美一区二区| 亚洲免费观看高清在线观看| 丝袜美腿亚洲一区| 欧美一区二区三区小说| 国产婷婷一区二区| 洋洋av久久久久久久一区| 国产在线不卡视频| 欧美三级蜜桃2在线观看| 26uuu精品一区二区在线观看| 亚洲欧美日韩小说| 精久久久久久久久久久| 欧美中文字幕亚洲一区二区va在线| 欧美成人性福生活免费看| 亚洲自拍偷拍av| 成人免费毛片片v| 欧美电视剧在线观看完整版| 亚洲黄色录像片| 成人午夜在线播放|