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

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

?? interface.cxx

?? eCos1.31版
?? CXX
?? 第 1 頁 / 共 2 頁
字號(hào):
//{{{  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);        const char* diag_argv0      = CdlParse::get_tcl_cmd_name(argv[0]);    CdlLoadable  loadable       = interp->get_loadable();    CdlContainer parent         = interp->get_container();           CdlToplevel  toplevel       = interp->get_toplevel();    std::string filename        = interp->get_filename();    CYG_ASSERT_CLASSC(loadable);        // There should always be a loadable during parsing    CYG_ASSERT_CLASSC(parent);    CYG_ASSERT_CLASSC(toplevel);    CYG_ASSERTC("" != filename);    // 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 +                                   "\n    Expecting 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.\n" +                                   "    The 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::get_diagnostic_prefix(interp) + "Out of memory.");        result = TCL_ERROR;    } catch(CdlParseException e) {        interp->set_result(e.get_message());        result = TCL_ERROR;    } catch(...) {        interp->set_result(CdlParse::get_diagnostic_prefix(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);            // A few properties do not make sense for interfaces.            // Start with the value-related ones. Interfaces always            // have the flavor Data.            if (new_interface->has_property(CdlPropertyId_Flavor)) {                CdlParse::report_error(interp, "An interface should not have a `flavor' property.");            }            // 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,

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩美一区二区三区| 91精品国产手机| 日韩电影免费在线看| 日韩美女精品在线| 国产精品久久久久久久久久免费看| 日韩欧美黄色影院| 精品日产卡一卡二卡麻豆| 日韩美女天天操| 日韩精品专区在线影院重磅| 制服丝袜中文字幕一区| 欧美精品乱码久久久久久按摩| 欧美色手机在线观看| 欧美日韩视频在线一区二区| 欧美日韩免费观看一区三区| 欧美日本一道本| 日韩欧美国产成人一区二区| 欧美成人性福生活免费看| 欧美精品一区二区三区在线播放| 精品三级在线观看| 欧美激情一区二区| 中文字幕一区三区| 亚洲主播在线播放| 视频一区二区中文字幕| 青青草97国产精品免费观看 | 一区二区三区欧美| 亚洲免费在线看| 亚洲电影一级黄| 首页国产丝袜综合| 日本不卡中文字幕| 韩日精品视频一区| 99在线热播精品免费| 日本道在线观看一区二区| 一本色道综合亚洲| 91精品国产综合久久久久久久 | 国产精品一区二区果冻传媒| 国产精品456| 91亚洲国产成人精品一区二三| 欧洲精品中文字幕| 日韩欧美国产一区在线观看| 国产精品美女久久久久久久网站| 91麻豆福利精品推荐| 精品欧美乱码久久久久久| 色婷婷香蕉在线一区二区| 91国模大尺度私拍在线视频| 欧美日韩一级片在线观看| 91精品国产综合久久国产大片| xnxx国产精品| 亚洲精品福利视频网站| 日韩国产在线观看| 成人美女视频在线观看| 欧美久久婷婷综合色| 久久老女人爱爱| 亚洲一区二区综合| 91国产免费观看| 欧美一级二级在线观看| 国产精品色眯眯| 秋霞av亚洲一区二区三| 99久久久久久99| 欧美大片日本大片免费观看| 亚洲欧美一区二区三区国产精品| 毛片一区二区三区| 色婷婷综合久久久| 日韩欧美国产高清| 亚洲福利国产精品| 国产成人综合网| 4hu四虎永久在线影院成人| **欧美大码日韩| 韩国女主播成人在线观看| 欧美亚洲动漫另类| 国产免费观看久久| 开心九九激情九九欧美日韩精美视频电影 | 日韩欧美www| 一区二区三区四区国产精品| 国产精品亚洲一区二区三区在线 | 亚洲人成在线观看一区二区| 极品少妇xxxx偷拍精品少妇| 欧美在线制服丝袜| 国产精品乱码久久久久久| 久久av老司机精品网站导航| 欧美色综合网站| 亚洲色图一区二区三区| 国产一区二区三区综合| 在线电影院国产精品| 亚洲色图视频免费播放| 国产成人亚洲综合色影视| 日韩欧美中文字幕精品| 婷婷综合另类小说色区| 色狠狠色噜噜噜综合网| 亚洲欧洲av一区二区三区久久| 韩国三级中文字幕hd久久精品| 在线观看91av| 香蕉久久夜色精品国产使用方法| 91精品1区2区| 日韩毛片高清在线播放| 不卡的看片网站| 中文字幕精品—区二区四季| 国产91综合一区在线观看| 久久久久久久久久久黄色| 奇米色一区二区| 欧美一区三区二区| 日韩精品三区四区| 91精品国产综合久久精品麻豆| 亚洲国产精品嫩草影院| 欧美最猛黑人xxxxx猛交| 亚洲精品乱码久久久久久黑人| 色综合一个色综合亚洲| 亚洲黄色在线视频| 欧洲生活片亚洲生活在线观看| 亚洲免费观看高清完整| 日本大香伊一区二区三区| 亚洲免费视频成人| 欧美日韩一区二区在线观看| 亚洲国产aⅴ天堂久久| 欧美二区三区91| 九一久久久久久| 亚洲精品在线一区二区| 国内外成人在线| 国产精品女主播在线观看| www.日韩av| 一区二区三区在线视频观看58| 在线这里只有精品| 午夜精品久久久久久久蜜桃app| 91精品国产色综合久久不卡蜜臀| 秋霞影院一区二区| 久久综合九色欧美综合狠狠| 丰满亚洲少妇av| 亚洲日本va午夜在线影院| 欧美少妇一区二区| 毛片不卡一区二区| 国产无一区二区| 精品国产制服丝袜高跟| 国产一区二区在线免费观看| 国产欧美日韩三区| 91成人免费在线| 久久精品国产精品亚洲红杏| 日本一区二区视频在线观看| 一本一本大道香蕉久在线精品 | 韩国v欧美v日本v亚洲v| 国产精品三级视频| 欧美午夜电影在线播放| 麻豆精品久久久| 国产精品午夜电影| 欧美三级视频在线播放| 黄页网站大全一区二区| 国产精品国产三级国产三级人妇 | 国产精品午夜电影| 欧美日韩五月天| 高清不卡在线观看| 亚洲成人自拍偷拍| 久久只精品国产| 欧日韩精品视频| 国产精品亚洲人在线观看| 亚洲精品老司机| 久久久久久久久久久久电影| 欧美色图免费看| 欧美a级一区二区| 国产欧美日韩激情| 欧美日韩mp4| 国产乱妇无码大片在线观看| 亚洲综合一区二区精品导航| 久久色在线观看| 欧美精品色一区二区三区| 国产乱码精品一区二区三区忘忧草| 一区二区成人在线视频| 久久久久久免费网| 欧美午夜免费电影| 国产精品亚洲第一区在线暖暖韩国| 亚洲.国产.中文慕字在线| 亚洲国产精品99久久久久久久久| 欧美精品九九99久久| 99久久亚洲一区二区三区青草| 美女精品一区二区| 夜夜精品视频一区二区| 日本一区二区三区国色天香 | 色综合久久久久综合99| 国产自产高清不卡| 亚洲成人一区二区| 中文字幕欧美一| 久久色在线观看| 欧美一级欧美三级| 欧美日韩国产综合视频在线观看| av激情成人网| 精品一区二区国语对白| 视频一区二区欧美| 亚洲一区二区三区不卡国产欧美| 国产精品网站在线播放| 久久久亚洲国产美女国产盗摄 | 日本vs亚洲vs韩国一区三区二区 | 久久电影网电视剧免费观看| 一区二区三区不卡视频在线观看| 国产精品欧美一区二区三区| 久久久蜜桃精品| 精品成人佐山爱一区二区| 欧美蜜桃一区二区三区| 91久久精品网| 欧美偷拍一区二区| 在线观看91视频| 欧美自拍偷拍一区| 91国模大尺度私拍在线视频| 99re在线视频这里只有精品|