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

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

?? interface.cxx

?? Intel XScale PXA255 引導Linux的Redboot 版bootloader源代碼!
?? CXX
?? 第 1 頁 / 共 2 頁
字號:
//{{{  Banner                           //============================================================================////     interface.cxx////     Implementation of the CdlInterface class////============================================================================//####COPYRIGHTBEGIN####//                                                                          // ----------------------------------------------------------------------------// Copyright (C) 1999, 2000 Red Hat, Inc.//// This file is part of the eCos host tools.//// 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 of the License, 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.//// ----------------------------------------------------------------------------//                                                                          //####COPYRIGHTEND####//============================================================================//#####DESCRIPTIONBEGIN####//// Author(s):   bartv// Contact(s):  bartv// Date:        1999/03/01// Version:     0.02////####DESCRIPTIONEND####//============================================================================//}}}//{{{  #include's                       // ----------------------------------------------------------------------------#include "cdlconfig.h"// Get the infrastructure types, assertions, tracing and similar// facilities.#include <cyg/infra/cyg_ass.h>#include <cyg/infra/cyg_trac.h>// <cdlcore.hxx> defines everything implemented in this module.// It implicitly supplies <string>, <vector> and <map> because// the class definitions rely on these headers.#include <cdlcore.hxx>//}}}//{{{  Statics                          // ----------------------------------------------------------------------------CYGDBG_DEFINE_MEMLEAK_COUNTER(CdlInterfaceBody);//}}}//{{{  Constructor                      // ----------------------------------------------------------------------------CdlInterfaceBody::CdlInterfaceBody(std::string name_arg, bool generated_arg)    : CdlNodeBody(name_arg),      CdlUserVisibleBody(),      CdlValuableBody(CdlValueFlavor_Data),      CdlParentableBody(),      CdlBuildableBody(),      CdlDefinableBody(){    CYG_REPORT_FUNCNAME("CdlInterfaceBody:: constructor");    CYG_REPORT_FUNCARG1XV(this);    generated = generated_arg;    cdlinterfacebody_cookie = CdlInterfaceBody_Magic;    CYGDBG_MEMLEAK_CONSTRUCTOR();    CYG_POSTCONDITION_THISC();    CYG_REPORT_RETURN();}//}}}//{{{  Destructor                       // ----------------------------------------------------------------------------CdlInterfaceBody::~CdlInterfaceBody(){    CYG_REPORT_FUNCNAME("CdlInterfaceBody:: destructor");    CYG_REPORT_FUNCARG1XV(this);    CYG_PRECONDITION_THISC();    cdlinterfacebody_cookie = CdlInterfaceBody_Invalid;    CYGDBG_MEMLEAK_DESTRUCTOR();        CYG_REPORT_RETURN();}//}}}//{{{  parse_interface()                // ----------------------------------------------------------------------------// Parsing an interface definition. This is basically the same as parsing// an option, component, or package.intCdlInterfaceBody::parse_interface(CdlInterpreter interp, int argc, char** argv){    CYG_REPORT_FUNCNAMETYPE("CdlInterface::parse_interface", "result %d");    CYG_REPORT_FUNCARG1("argc %d", argc);    CYG_PRECONDITION_CLASSC(interp);        std::string  diag_argv0      = CdlParse::get_tcl_cmd_name(argv[0]);    CdlLoadable  loadable       = interp->get_loadable();    CdlContainer parent         = interp->get_container();           CdlToplevel  toplevel       = interp->get_toplevel();    CYG_ASSERT_CLASSC(loadable);        // There should always be a loadable during parsing    CYG_ASSERT_CLASSC(parent);    CYG_ASSERT_CLASSC(toplevel);    // The new interface should be created and added to the loadable.    // early on. If there is a parsing error it will get cleaned up    // automatically as a consequence of the loadable destructor.    // However it is necessary to validate the name first. Errors    // should be reported via CdlParse::report_error(), which    // may result in an exception.    CdlInterface new_interface  = 0;    bool         ok             = true;    int          result         = TCL_OK;    try {            // Currently there are no command-line options. This may change in future.        if (3 != argc) {            CdlParse::report_error(interp, "", std::string("Incorrect number of arguments to `") + diag_argv0 +                                   "'\nExpecting name and properties list.");            ok = false;        } else if (!Tcl_CommandComplete(argv[2])) {            CdlParse::report_error(interp, "", std::string("Invalid property list for cdl_interface `") + argv[1] + "'.");            ok = false;        } else if (0 != toplevel->lookup(argv[1])) {            // FIXME: interfaces can be generated implicitly because of an            // unresolved implements property. This code should look for            // an existing auto-generated interface object and replace it            // if necessary.            CdlParse::report_error(interp, "", std::string("Interface `") + argv[1] +                                   "' cannot be loaded.\nThe name is already in use.");            ok = false;        } else {            new_interface = new CdlInterfaceBody(argv[1], false);            toplevel->add_node(loadable, parent, new_interface);        }        if (!ok) {            // Just because this component cannot be created, that is no            // reason to abort the whole parsing process.            CYG_REPORT_RETVAL(TCL_OK);            return TCL_OK;        }    } catch(std::bad_alloc e) {        interp->set_result(CdlParse::construct_diagnostic(interp, "internal error", "", "Out of memory"));        result = TCL_ERROR;    } catch(CdlParseException e) {        interp->set_result(e.get_message());        result = TCL_ERROR;    } catch(...) {        interp->set_result(CdlParse::construct_diagnostic(interp, "internal error", "", "Unexpected C++ exception"));        result = TCL_ERROR;    }    if (TCL_OK != result) {        CYG_REPORT_RETVAL(result);        return result;    }    // At this stage new_interface has been created and added to the    // hierarchy. The main work now is to add the properties.        // Push the option as the current node early on. This aids    // diagnostics.    CdlNode old_node = interp->push_node(new_interface);    // Declare these outside the scope of the try statement, to allow    // goto calls for the error handling.    std::string tcl_result;    std::vector<CdlInterpreterCommandEntry>  new_commands;    std::vector<CdlInterpreterCommandEntry>* old_commands = 0;    static CdlInterpreterCommandEntry   commands[] =    {        CdlInterpreterCommandEntry("", 0)    };    int i;        // All parsing errors may result in an exception, under the control of    // application code. This exception must not pass through the Tcl interpreter.    try {        for (i = 0; 0 != commands[i].command; i++) {            new_commands.push_back(commands[i]);        }        CdlDefinableBody::add_property_parsers(new_commands);        CdlBuildableBody::add_property_parsers(new_commands);        CdlParentableBody::add_property_parsers(new_commands);        CdlValuableBody::add_property_parsers(new_commands);        CdlUserVisibleBody::add_property_parsers(new_commands);        CdlNodeBody::add_property_parsers(new_commands);            // Now evaluate the body. If an error occurs then typically        // this will be reported via CdlParse::report_error(),        // but any exceptions will have been intercepted and        // turned into a Tcl error.        old_commands = interp->push_commands(new_commands);        result = interp->eval(argv[2], tcl_result);        interp->pop_commands(old_commands);                if (TCL_OK == result) {            // Even if there were errors, they were not fatal. There may            // now be a number of properties for this option, and some            // validation should take place. Start with the base classes.            new_interface->CdlNodeBody::check_properties(interp);            new_interface->CdlUserVisibleBody::check_properties(interp);            new_interface->CdlValuableBody::check_properties(interp);            new_interface->CdlParentableBody::check_properties(interp);            new_interface->CdlBuildableBody::check_properties(interp);            new_interface->CdlDefinableBody::check_properties(interp);            // The flavor "none" makes no sense for interfaces.            // The flavor "bool" makes very little sense, but may be useful            // in weird cases. Both booldata and data make sense.            // The default flavor is "data", because interfaces are            // essentially just counters.            if (new_interface->has_property(CdlPropertyId_Flavor)) {                if (CdlValueFlavor_None == new_interface->get_flavor()) {                    CdlParse::report_error(interp, "", "An interface should not have the `none' flavor.");                }            }                        // Interfaces cannot be modified directly by the user, so            // there is no point in entry_proc, check_proc, dialog or            // wizard            if (new_interface->has_property(CdlPropertyId_EntryProc)) {                CdlParse::report_error(interp, "", "An interface should not have an `entry_proc' property.");            }            if (new_interface->has_property(CdlPropertyId_CheckProc)) {                CdlParse::report_error(interp, "", "An interface should not have a `check_proc' property.");            }            if (new_interface->has_property(CdlPropertyId_Dialog)) {                CdlParse::report_error(interp, "", "An interface should not have a `dialog' property.");            }            if (new_interface->has_property(CdlPropertyId_Wizard)) {                CdlParse::report_error(interp, "", "An interface should not have a `wizard' property.");            }            // Calculated does not make sense, an interface is implicitly calculated            // Nor does default_value.            if (new_interface->has_property(CdlPropertyId_Calculated)) {                CdlParse::report_error(interp, "", "An interface should not have a `calculated' property.");            }            if (new_interface->has_property(CdlPropertyId_DefaultValue)) {                CdlParse::report_error(interp, "", "An interface should not have a `default_value' property.");            }            // active_if might make sense, as a way of controlling            // whether or not a #define will be generated.                        // legal_values, requires and implements are all sensible            // properties for an interface.            // group may or may not make sense, allow it for now.            // For the uservisible base class, allow all of display,            // doc and description. At worst these are harmless            // For the parentable base class, allow parent. Again this            // is harmless.            // Also allow all of the definable and buildable            // properties.        }    } catch (std::bad_alloc e) {        // Errors at this stage should be reported via Tcl, not via C++.        // However there is no point in continuing with the parsing operation,        // just give up.        interp->set_result(CdlParse::construct_diagnostic(interp, "internal error", "", "Out of memory"));        result = TCL_ERROR;    } catch (CdlParseException e) {        interp->set_result(e.get_message());        result = TCL_ERROR;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩美女一区二区三区| 亚洲综合一区二区三区| 香蕉乱码成人久久天堂爱免费| 九九久久精品视频| 欧美三区在线视频| 亚洲欧洲一区二区在线播放| 蜜桃av噜噜一区| 欧美精品日韩一区| 国产精品二三区| 国产福利一区二区三区视频在线 | 欧美一区二区三区免费观看视频| 国产精品视频免费看| 国产乱子轮精品视频| 日韩亚洲电影在线| 免费人成网站在线观看欧美高清| 欧美唯美清纯偷拍| 亚洲免费视频中文字幕| 丁香啪啪综合成人亚洲小说| xfplay精品久久| 美女在线一区二区| 日韩欧美色综合网站| 日本视频中文字幕一区二区三区| 一本到一区二区三区| 中文字幕一区二区三区av| 国产精品亚洲综合一区在线观看| 精品久久久影院| 蜜桃久久av一区| 亚洲精品在线网站| 久久99国产乱子伦精品免费| 日韩久久久久久| 国产一区二区在线看| 久久久久久久免费视频了| 国产精品99久久久久久宅男| 国产亚洲视频系列| 成人h精品动漫一区二区三区| 国产午夜精品一区二区三区四区| 国产在线麻豆精品观看| 国产欧美综合在线| 91丝袜国产在线播放| 亚洲精品国产精华液| 欧美日韩小视频| 麻豆91在线播放免费| 久久精品欧美一区二区三区麻豆| 处破女av一区二区| 一区二区三区中文字幕精品精品| 在线精品亚洲一区二区不卡| 亚洲18色成人| wwww国产精品欧美| 99久久免费精品| 丝袜美腿一区二区三区| 精品国产凹凸成av人网站| 国产91富婆露脸刺激对白| 18成人在线观看| 欧美人伦禁忌dvd放荡欲情| 久久99日本精品| 国产精品久线在线观看| 欧美日韩精品欧美日韩精品| 精油按摩中文字幕久久| 中文字幕一区二区不卡| 欧美日韩电影在线| 精品在线亚洲视频| 亚洲欧洲av一区二区三区久久| 欧美美女激情18p| 国产伦精一区二区三区| 亚洲激情图片小说视频| 日韩免费观看2025年上映的电影| 国产成人精品亚洲日本在线桃色| 亚洲欧美精品午睡沙发| 欧美xxxxx牲另类人与| 91在线视频在线| 亚洲成年人影院| 国产亚洲污的网站| 91精品国产全国免费观看| 国产成人免费在线观看不卡| 婷婷一区二区三区| 中文字幕国产精品一区二区| 91精品国产综合久久福利| 99免费精品视频| 精品夜夜嗨av一区二区三区| 亚洲与欧洲av电影| 国产精品三级久久久久三级| 欧美一级高清大全免费观看| 色婷婷国产精品| 成人手机在线视频| 337p粉嫩大胆色噜噜噜噜亚洲| 亚洲三级在线看| 精品剧情在线观看| 丝袜美腿亚洲综合| 欧美成人国产一区二区| 色综合久久久久综合体桃花网| 免费成人性网站| 亚洲成人1区2区| 一区二区在线观看免费视频播放| 国产欧美一区二区三区鸳鸯浴 | 精品国产成人在线影院 | 久久综合色天天久久综合图片| 欧美视频一区二区在线观看| 91麻豆免费看片| 成人免费视频一区| 国产精品白丝av| 国产一区二区三区四区五区入口| 天天操天天综合网| 图片区日韩欧美亚洲| 一区二区久久久久久| 亚洲女厕所小便bbb| 亚洲精品亚洲人成人网| 亚洲精品一二三区| 亚洲精品免费电影| 一区二区免费视频| 一区二区三区四区中文字幕| 国产精品人人做人人爽人人添| 久久久噜噜噜久久人人看| 久久精品亚洲一区二区三区浴池| 久久色视频免费观看| 久久久夜色精品亚洲| 国产精品网站在线| 国产精品久久福利| 亚洲精品日日夜夜| 首页综合国产亚洲丝袜| 蜜臀精品一区二区三区在线观看 | 欧亚一区二区三区| 91免费观看视频在线| 日本精品一区二区三区高清 | 亚洲制服欧美中文字幕中文字幕| 一区二区三区在线视频观看 | 一区二区三区在线播放| 午夜国产精品一区| 久久99国产精品久久99| 国产资源在线一区| 成人精品高清在线| 91久久香蕉国产日韩欧美9色| 欧洲一区二区三区在线| 日韩一区二区三区高清免费看看| 欧美成人福利视频| 国产精品护士白丝一区av| 亚洲一区二区视频| 日本成人在线不卡视频| 国产精品一二三| 色欧美88888久久久久久影院| 欧美日韩一区在线观看| 精品噜噜噜噜久久久久久久久试看| 欧美国产精品中文字幕| 一区二区三区四区五区视频在线观看 | 欧美电影免费观看高清完整版在线观看 | 日韩av网站在线观看| 国产自产v一区二区三区c| 色综合天天做天天爱| 7777精品伊人久久久大香线蕉完整版 | 国产精品久久久久影视| 五月天视频一区| 成人激情av网| 欧美日韩亚洲丝袜制服| 欧美激情中文不卡| 日本欧美大码aⅴ在线播放| 国产成人8x视频一区二区| 欧美日韩大陆一区二区| 日本一区二区免费在线观看视频 | 一区二区三区欧美在线观看| 精品一区二区三区免费播放| 色域天天综合网| 国产日韩欧美制服另类| 天天色综合天天| 在线免费av一区| 国产精品久久久久久妇女6080| 欧美aⅴ一区二区三区视频| 91视频国产观看| 久久久久久久久岛国免费| 一区二区三区在线看| 国产中文字幕精品| 91麻豆精品国产91久久久久久久久 | 亚洲成人av电影在线| 91社区在线播放| 国产欧美一区二区三区沐欲| 久久成人久久爱| 欧美精品久久天天躁| 亚洲精品高清视频在线观看| 懂色av中文字幕一区二区三区| 欧美变态tickling挠脚心| 日韩av在线发布| 欧美日韩国产大片| 一二三四社区欧美黄| 色婷婷亚洲精品| 亚洲欧美一区二区三区孕妇| 成人少妇影院yyyy| 国产丝袜欧美中文另类| 国产一区二区三区黄视频 | 国产在线播放一区| 欧美大肚乱孕交hd孕妇| 日本不卡的三区四区五区| 欧美日本精品一区二区三区| 一区二区三区色| 欧美少妇xxx| 午夜精品福利在线| 欧美另类一区二区三区| 天堂一区二区在线| 日韩欧美国产小视频| 久久精品国产色蜜蜜麻豆| 日韩一二三区视频| 国产中文字幕精品| 国产女人18毛片水真多成人如厕 |