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

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

?? interface.cxx

?? ecos實時嵌入式操作系統
?? CXX
?? 第 1 頁 / 共 2 頁
字號:
//{{{  Banner                           //============================================================================////     interface.cxx////     Implementation of the CdlInterface class////============================================================================//####COPYRIGHTBEGIN####//                                                                          // ----------------------------------------------------------------------------// Copyright (C) 2002 Bart Veer// 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, const 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(CDL_TCL_CONST_CAST(char*, 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());

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
2023国产精品自拍| 性欧美疯狂xxxxbbbb| 国产在线精品一区二区三区不卡 | 99精品国产视频| 久久久久久久久久看片| 久久99精品国产麻豆不卡| 777奇米成人网| 国产在线麻豆精品观看| 国产日韩欧美a| av电影一区二区| 视频一区二区中文字幕| 亚洲欧美日韩在线| 中文字幕巨乱亚洲| 在线视频一区二区三| 日韩av不卡一区二区| 国产日韩欧美麻豆| 欧美性受极品xxxx喷水| 日韩电影一区二区三区| 久久久久久久电影| 国产午夜精品一区二区三区视频 | 蜜桃视频在线观看一区二区| 26uuu精品一区二区三区四区在线| 国产黑丝在线一区二区三区| 亚洲激情六月丁香| 国产亚洲一二三区| 欧美日韩在线不卡| a美女胸又www黄视频久久| 日本vs亚洲vs韩国一区三区| 亚洲图片另类小说| 久久久久97国产精华液好用吗| 欧美在线影院一区二区| 福利一区二区在线观看| 美女在线视频一区| 亚洲国产精品麻豆| 一区二区三区欧美久久| 国产亚洲自拍一区| 日韩一区二区三区av| 在线这里只有精品| 91捆绑美女网站| jvid福利写真一区二区三区| 国产麻豆9l精品三级站| 久久99精品久久久久久动态图 | 国产人伦精品一区二区| 欧美成人aa大片| 91精品国产免费| 91精品国产综合久久小美女| 欧美日韩国产片| 欧美精品第1页| 337p亚洲精品色噜噜| 3751色影院一区二区三区| 欧美片在线播放| 日韩亚洲国产中文字幕欧美| 91精品久久久久久久久99蜜臂| 欧美高清激情brazzers| 欧美一区二区三区喷汁尤物| 日韩女优毛片在线| 国产午夜精品理论片a级大结局| 久久久99精品久久| 亚洲人亚洲人成电影网站色| 黄一区二区三区| 91蜜桃传媒精品久久久一区二区| 在线亚洲人成电影网站色www| 欧美精品 国产精品| 欧美xxxxx裸体时装秀| 日本一区二区高清| 亚洲成人www| 国产精品影音先锋| 欧美色图第一页| 久久综合九色综合97婷婷女人| 国产精品理论片在线观看| 日韩福利电影在线| www.一区二区| 精品成人一区二区三区| 一区免费观看视频| 青青草伊人久久| 91在线看国产| 国产无遮挡一区二区三区毛片日本| 伊人色综合久久天天人手人婷| 老司机免费视频一区二区| 色婷婷国产精品| 国产精品人成在线观看免费| 青青草精品视频| 欧美午夜精品一区| 日韩理论电影院| 国产精品一二二区| 精品人伦一区二区色婷婷| 亚洲午夜一区二区| 色婷婷av一区二区三区之一色屋| 久久蜜桃av一区二区天堂| 免费人成黄页网站在线一区二区| 在线观看日韩毛片| 一区二区三区日本| 色天天综合色天天久久| 国产精品国产三级国产普通话三级 | 欧美变态凌虐bdsm| 久久黄色级2电影| 欧美岛国在线观看| 国产成人aaa| 国产性色一区二区| 成人aa视频在线观看| 中国av一区二区三区| 99久久久免费精品国产一区二区| 一区二区三区波多野结衣在线观看| 91丝袜高跟美女视频| 亚洲女同一区二区| 欧美日韩在线免费视频| 日韩av在线发布| 久久你懂得1024| 色综合久久综合中文综合网| 亚洲高清视频在线| 欧美xingq一区二区| 北条麻妃国产九九精品视频| 一区二区在线观看视频在线观看| 91福利小视频| 极品美女销魂一区二区三区| 国产精品久久久久久久午夜片| 99re成人在线| 久久99精品国产.久久久久久| 一区在线中文字幕| 欧美一二三区在线观看| aaa国产一区| 精品写真视频在线观看| 一区二区国产盗摄色噜噜| 久久综合成人精品亚洲另类欧美| 在线观看亚洲精品视频| 国产一区二区网址| 丝袜美腿亚洲一区二区图片| 中文字幕第一区第二区| 91.com视频| 在线综合亚洲欧美在线视频| av福利精品导航| 国产精品88888| 久久99久久久久久久久久久| 亚洲一二三级电影| 日韩一区在线免费观看| 中文字幕精品一区二区精品绿巨人| 777亚洲妇女| 欧美一二三在线| 日韩一级大片在线观看| 欧美三级视频在线观看| 99re热这里只有精品免费视频| 粉嫩aⅴ一区二区三区四区五区| 免费观看久久久4p| 久久99热这里只有精品| 久久国产精品99久久久久久老狼| 天天综合天天综合色| 午夜精品久久久久久久99水蜜桃| 一区二区三区四区高清精品免费观看 | 国产亚洲女人久久久久毛片| 精品国产人成亚洲区| 欧美高清在线精品一区| 国产精品每日更新在线播放网址| 国产精品乱人伦中文| 国产精品福利一区| 国产乱国产乱300精品| 成人性生交大片免费看中文网站| 97精品久久久午夜一区二区三区| 91在线观看下载| 欧美日韩另类一区| 国产日韩三级在线| 亚洲欧美日韩小说| 美美哒免费高清在线观看视频一区二区| 美腿丝袜一区二区三区| 国产不卡一区视频| 91麻豆swag| 精品国精品国产| 亚洲男同性视频| 美脚の诱脚舐め脚责91| 成人av在线网站| 亚洲精品免费电影| 精品在线一区二区| 欧美网站一区二区| 国产精品三级久久久久三级| 亚洲成av人片一区二区三区 | 亚洲欧洲精品成人久久奇米网| 美女被吸乳得到大胸91| 色婷婷av一区二区三区大白胸| 国产丝袜欧美中文另类| 天天影视色香欲综合网老头| 国产福利一区二区| 精品国产一区二区三区忘忧草| 亚洲成a人v欧美综合天堂| 成人午夜精品一区二区三区| 欧美mv日韩mv国产| 久久草av在线| 91超碰这里只有精品国产| 一区二区三区在线视频观看58| 99视频热这里只有精品免费| 国产日本亚洲高清| 国产精品一区二区在线看| 久久亚洲一区二区三区四区| 毛片av中文字幕一区二区| 88在线观看91蜜桃国自产| 亚洲在线一区二区三区| 欧美又粗又大又爽| 亚洲午夜免费电影| 9191成人精品久久| 精品无码三级在线观看视频| 欧美va日韩va| av中文字幕不卡|