This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

compilation error in configtool fixed


The attached patch fixes a compilation arror in configtool/standalone/common/cdl_exec.cxx

Knud


diff -Naur ecos.orig/host/tools/configtool/ChangeLog ecos/host/tools/configtool/ChangeLog
--- ecos.orig/host/tools/configtool/ChangeLog	2005-07-29 13:57:16.338808500 +0200
+++ ecos/host/tools/configtool/ChangeLog	2005-07-29 15:49:22.018404700 +0200
@@ -1,3 +1,8 @@
+2005-07-29  Knud Woehler <knud.woehler@microplex.de>
+
+	* configtool/standalone/common/cdl_exec.cxx: Compile error fixed.
+	'interface' is a keyword.
+	    
 2005-07-09  Bart Veer  <bartv@ecoscentric.com>
 
 	* common/common/build.cxx: add support for C++ files that use a
diff -Naur ecos.orig/host/tools/configtool/standalone/common/cdl_exec.cxx ecos/host/tools/configtool/standalone/common/cdl_exec.cxx
--- ecos.orig/host/tools/configtool/standalone/common/cdl_exec.cxx	2005-07-29 13:57:16.651286500 +0200
+++ ecos/host/tools/configtool/standalone/common/cdl_exec.cxx	2005-07-29 13:59:24.955879900 +0200
@@ -382,12 +382,12 @@
                 std::string     owner_name  = owner ? owner->get_name() : "<unknown>";
                 CdlOption       option      = dynamic_cast<CdlOption>(base);
                 CdlComponent    component   = dynamic_cast<CdlComponent>(base);
-                CdlInterface    interface   = dynamic_cast<CdlInterface>(base);
+                CdlInterface    iface       = dynamic_cast<CdlInterface>(base);
                 if (0 != option) {
                     throw CdlStringException (cdl_packages [n] + " is an option within " + owner_name + ", not a loadable package");
                 } else if (0 != component) {
                     throw CdlStringException (cdl_packages [n] + " is a component of " + owner_name + ", not a loadable package");
-                } else if (0 != interface) {
+                } else if (0 != iface) {
                     throw CdlStringException (cdl_packages [n] + " is an interface within " + owner_name + ", not a loadable package");
                 } else {
                     throw CdlStringException (cdl_packages [n] + " is not a loadable package");

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]