#include "SetPropertyStatus.h"Include dependency graph for SetPropertyStatus.c:

Go to the source code of this file.
Functions | |
| SetPropertyStatus | sciSetFinalStatus (SetPropertyStatus status1, SetPropertyStatus status2) |
| SetPropertyStatus sciSetFinalStatus | ( | SetPropertyStatus | status1, | |
| SetPropertyStatus | status2 | |||
| ) |
when two properties are set at the same time return only one which can be used after
Definition at line 12 of file SetPropertyStatus.c.
References SET_PROPERTY_ERROR, SET_PROPERTY_SUCCEED, and SET_PROPERTY_UNCHANGED.
Referenced by set_clip_box_property(), set_current_axes_property(), set_mark_style_property(), set_text_box_mode_property(), and set_viewport_property().
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 }
Here is the caller graph for this function:

1.5.1