--------------------------------------------------------------------------- | Facility : libnform | Function : static int Synchronize_Linked_Fields(FIELD * field) | | Description : Propagate the Synchronize_Field function to all linked | fields. The first error that occurs in the sequence | of updates is the returnvalue. | | Return
| 953 | | Return Values : E_OK - success |
| 954 | | E_BAD_ARGUMENT - invalid field pointer |
| 955 | | E_SYSTEM_ERROR - some severe basic error |
| 956 | +--------------------------------------------------------------------------*/ |
| 957 | static int Synchronize_Linked_Fields(FIELD * field) |
| 958 | { |
| 959 | FIELD *linked_field; |
| 960 | int res = E_OK; |
| 961 | int syncres; |
| 962 | |
| 963 | if (!field) |
| 964 | return(E_BAD_ARGUMENT); |
| 965 | |
| 966 | if (!field->link) |
| 967 | return(E_SYSTEM_ERROR); |
| 968 | |
| 969 | for(linked_field = field->link; |
| 970 | linked_field!= field; |
| 971 | linked_field = linked_field->link ) |
| 972 | { |
| 973 | if (((syncres=Synchronize_Field(linked_field)) != E_OK) && |
| 974 | (res==E_OK)) |
| 975 | res = syncres; |
| 976 | } |
| 977 | return(res); |
| 978 | } |
| 979 |
no test coverage detected
searching dependent graphs…