[cig-commits] r7661 - in long/3D/Gale/trunk: .
src/StGermain/Base/IO/src
walter at geodynamics.org
walter at geodynamics.org
Fri Jul 13 16:14:53 PDT 2007
Author: walter
Date: 2007-07-13 16:14:53 -0700 (Fri, 13 Jul 2007)
New Revision: 7661
Modified:
long/3D/Gale/trunk/
long/3D/Gale/trunk/src/StGermain/Base/IO/src/Dictionary_Entry_Value.c
long/3D/Gale/trunk/src/StGermain/Base/IO/src/Dictionary_Entry_Value.h
Log:
r1868 at earth: boo | 2007-07-13 15:19:37 -0700
Add Dictionary_Entry_Value_AsBool_with_Default
Property changes on: long/3D/Gale/trunk
___________________________________________________________________
Name: svk:merge
- 3a629746-de10-0410-b17b-fd6ecaaa963e:/cig:1866
+ 3a629746-de10-0410-b17b-fd6ecaaa963e:/cig:1868
Modified: long/3D/Gale/trunk/src/StGermain/Base/IO/src/Dictionary_Entry_Value.c
===================================================================
--- long/3D/Gale/trunk/src/StGermain/Base/IO/src/Dictionary_Entry_Value.c 2007-07-13 22:20:59 UTC (rev 7660)
+++ long/3D/Gale/trunk/src/StGermain/Base/IO/src/Dictionary_Entry_Value.c 2007-07-13 23:14:53 UTC (rev 7661)
@@ -904,6 +904,12 @@
return False;
}
+Bool Dictionary_Entry_Value_AsBool_with_Default( Dictionary_Entry_Value* self, Bool Default ) {
+ if(self==NULL)
+ return Default;
+ else
+ return Dictionary_Entry_Value_AsBool(self);
+}
Dictionary* Dictionary_Entry_Value_AsDictionary( Dictionary_Entry_Value* self ) {
if( !self ) {
Modified: long/3D/Gale/trunk/src/StGermain/Base/IO/src/Dictionary_Entry_Value.h
===================================================================
--- long/3D/Gale/trunk/src/StGermain/Base/IO/src/Dictionary_Entry_Value.h 2007-07-13 22:20:59 UTC (rev 7660)
+++ long/3D/Gale/trunk/src/StGermain/Base/IO/src/Dictionary_Entry_Value.h 2007-07-13 23:14:53 UTC (rev 7661)
@@ -211,6 +211,7 @@
/** Obtain the value as a Bool */
Bool Dictionary_Entry_Value_AsBool( Dictionary_Entry_Value* self );
+ Bool Dictionary_Entry_Value_AsBool_with_Default( Dictionary_Entry_Value* self, Bool Default );
/** Obtain the value as a Dictionary */
Dictionary* Dictionary_Entry_Value_AsDictionary( Dictionary_Entry_Value* self );
More information about the cig-commits
mailing list