SetPropertyStatus.c

Go to the documentation of this file.
00001 /*------------------------------------------------------------------------*/
00002 /* file: SetPropertySatus.c                                               */
00003 /* Copyright INRIA 2006                                                   */
00004 /* Authors : Jean-Baptiste Silvy                                          */
00005 /* desc : define the different type of return status for the sci_set      */
00006 /*        routine                                                         */
00007 /*------------------------------------------------------------------------*/
00008 
00009 #include "SetPropertyStatus.h"
00010 
00011 /*-----------------------------------------------------------------------------------*/
00012 SetPropertyStatus sciSetFinalStatus( SetPropertyStatus status1, SetPropertyStatus status2 )
00013 {
00014   if ( status1 == SET_PROPERTY_ERROR || status2 == SET_PROPERTY_ERROR )
00015   {
00016     /* problem */
00017     return SET_PROPERTY_ERROR ;
00018   }
00019   else if ( status1 == SET_PROPERTY_UNCHANGED && status2 == SET_PROPERTY_UNCHANGED )
00020   {
00021     /* nothing changed */
00022     return SET_PROPERTY_UNCHANGED ;
00023   }
00024   else
00025   {
00026     /* everything should be ok */
00027     return SET_PROPERTY_SUCCEED ;
00028   }
00029 }
00030 
00031 /*-----------------------------------------------------------------------------------*/

Generated on Sun Mar 4 15:03:51 2007 for Scilab [trunk] by  doxygen 1.5.1