亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
欧美一区二区成人6969| 国产91丝袜在线播放0| 亚洲男同1069视频| 国产精品久久久久久久蜜臀| 国产精品国产三级国产普通话三级 | 国产精品久久综合| 中文字幕乱码日本亚洲一区二区| 久久亚洲精品小早川怜子| 国产亚洲精品精华液| 国产精品超碰97尤物18| 亚洲男同性视频| 一个色在线综合| 免费成人在线影院| 国产麻豆欧美日韩一区| 成人午夜av电影| 91麻豆国产在线观看| 欧美日本在线观看| 精品国产三级a在线观看| 国产精品毛片无遮挡高清| 亚洲人123区| 日韩高清在线电影| 国产美女精品在线| 色综合久久天天| 欧美一区二区在线不卡| 国产色综合久久| 亚洲精品第1页| 精品午夜久久福利影院| 成人激情电影免费在线观看| 色呦呦国产精品| 日韩无一区二区| 国产精品电影院| 日本va欧美va精品发布| 成人精品一区二区三区中文字幕| 欧美日韩久久一区| 久久久亚洲精品一区二区三区 | 国产剧情一区在线| 在线免费不卡视频| 精品第一国产综合精品aⅴ| 国产目拍亚洲精品99久久精品| 一区二区三区四区国产精品| 国产真实乱偷精品视频免| 在线视频综合导航| 久久精品无码一区二区三区 | 欧美一区二区国产| 国产精品伦一区二区三级视频| 日韩高清在线一区| 91极品美女在线| 久久久久国产成人精品亚洲午夜| 一级特黄大欧美久久久| 粉嫩aⅴ一区二区三区四区| 制服丝袜日韩国产| 亚洲综合一二三区| 成人久久视频在线观看| 国产亚洲综合色| 日韩经典一区二区| 欧美日韩免费视频| 亚洲免费观看高清| 91在线视频观看| 欧美国产精品劲爆| 国产精品资源在线观看| 精品剧情在线观看| 久久精品国产久精国产| 欧美猛男超大videosgay| 亚洲一区二区三区在线看| 成人免费视频播放| 欧美极品少妇xxxxⅹ高跟鞋| 国内一区二区在线| 精品国产伦一区二区三区免费| 日本v片在线高清不卡在线观看| 欧美日韩一二三区| 一区二区三区丝袜| 91传媒视频在线播放| 亚洲一线二线三线视频| 欧美性感一区二区三区| 亚洲综合视频在线观看| 欧美日韩国产另类一区| 日韩制服丝袜av| 91精品国产欧美日韩| 蜜桃久久久久久| 日韩精品一区二区三区视频在线观看| 日本不卡一区二区| 欧美成人精品二区三区99精品| 久久99国产精品久久| 精品日韩欧美一区二区| 国产高清不卡一区二区| 中文字幕精品在线不卡| 91在线云播放| 性做久久久久久免费观看| 欧美一区二区三区公司| 国内精品国产成人| 国产精品每日更新在线播放网址| 色综合久久久久久久| 亚洲一区二区三区在线| 制服丝袜日韩国产| 国产成人99久久亚洲综合精品| 亚洲视频一二区| 91精品国产综合久久久蜜臀粉嫩| 久久国产成人午夜av影院| 国产精品乱人伦一区二区| 欧美在线视频你懂得| 精品一区二区三区不卡| 国产午夜亚洲精品不卡| 在线精品视频一区二区三四| 男男gaygay亚洲| 亚洲欧洲日韩综合一区二区| 精品1区2区3区| 国内偷窥港台综合视频在线播放| 久久精品在线观看| 91精品办公室少妇高潮对白| 精品一区二区在线免费观看| 中文字幕精品在线不卡| 欧美三日本三级三级在线播放| 蜜臀av性久久久久蜜臀aⅴ| 精品国产成人系列| 日本高清成人免费播放| 国产精品一区二区久激情瑜伽 | 日韩欧美久久久| 91免费在线播放| 精品午夜久久福利影院| 亚洲国产精品久久久男人的天堂 | 99re免费视频精品全部| 久久精品噜噜噜成人av农村| 一区二区久久久| wwww国产精品欧美| 欧美精品日韩一本| 91国偷自产一区二区三区观看| 久久99在线观看| 午夜精品福利一区二区蜜股av| 国产网红主播福利一区二区| 91精品国产欧美一区二区成人| 91视频国产资源| 成人av在线观| 高清不卡一二三区| 极品少妇xxxx偷拍精品少妇| 三级欧美韩日大片在线看| 一卡二卡欧美日韩| 亚洲视频一二三| 国产精品久久久久影院色老大 | 欧美电影免费观看高清完整版 | 精品一区二区三区在线播放视频| 婷婷丁香激情综合| 亚洲一区影音先锋| 亚洲一区二区高清| 亚洲综合色视频| 亚洲影视在线观看| 亚洲二区视频在线| 亚洲午夜久久久| 亚洲综合视频在线观看| 亚洲美女少妇撒尿| 亚洲女人****多毛耸耸8| 亚洲欧美日韩小说| 一区二区三区国产| 亚洲r级在线视频| 亚洲超丰满肉感bbw| 亚洲3atv精品一区二区三区| 亚洲成av人片一区二区梦乃| 午夜精品久久久久久不卡8050 | 欧美日韩国产一区| 欧美日本高清视频在线观看| 在线不卡中文字幕| 日韩视频在线永久播放| 日韩视频在线一区二区| 精品不卡在线视频| 国产精品色噜噜| 日韩一区有码在线| 亚洲一区二区三区在线| 全国精品久久少妇| 国产成人精品午夜视频免费 | 91精品久久久久久久99蜜桃| 日韩视频一区二区三区在线播放 | 五月激情六月综合| 美女一区二区三区| 成人性生交大合| 色婷婷亚洲一区二区三区| 欧美日韩精品一二三区| 欧美成人高清电影在线| 国产精品成人免费| 亚洲成在线观看| 国内成+人亚洲+欧美+综合在线| 成人国产免费视频| 欧美图片一区二区三区| 精品国产乱码久久久久久1区2区| 国产精品视频免费看| 亚洲一区二区五区| 国产精品一区二区免费不卡| 欧美综合色免费| 欧美精品一区二区三区高清aⅴ| 亚洲欧美在线aaa| 青草av.久久免费一区| 不卡的电视剧免费网站有什么| 欧美日韩成人综合天天影院| 久久久亚洲午夜电影| 亚洲小少妇裸体bbw| 国产成人在线色| 91精品福利在线一区二区三区| 国产精品全国免费观看高清| 美女性感视频久久| 日本韩国精品在线| 国产视频一区在线播放| 日本特黄久久久高潮|