diff host/libcdl/value.cxx @ 105:5a0cc6c243a9 ecos-sw-2000-06-30

Merge from eCos master repository on 2000-06-30-08:18:49-BST
author jlarmour
date Fri, 30 Jun 2000 16:27:35 +0000
parents 95f3e12a6327
children ff3f181b64bd
line wrap: on
line diff
--- a/host/libcdl/value.cxx
+++ b/host/libcdl/value.cxx
@@ -902,7 +902,16 @@ CdlValue::set_flavor(CdlValueFlavor flav
             enabled[CdlValueSource_Wizard]      = false;
             enabled[CdlValueSource_User]        = false;
 
+            // BLV - keep the data part at 0 for now. There is too
+            // much confusion in the code between value as a string
+            // representation, and value as the data part of the
+            // bool/data pair. This needs to be fixed, but it requires
+            // significant API changes.
+#if 0            
             CdlSimpleValue simple_val(cdl_int(1));
+#else
+            CdlSimpleValue simple_val(cdl_int(0));
+#endif            
             values[CdlValueSource_Default]      = simple_val;
             values[CdlValueSource_Inferred]     = simple_val;
             values[CdlValueSource_Wizard]       = simple_val;