Mercurial > dwindows
comparison gtk/dw.c @ 2091:68f1924fdd13
Restructure feature switch so fallback return is in the default case.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 11 Jun 2020 01:27:38 +0000 |
parents | cdb94c6fd611 |
children | aaea278c2356 |
comparison
equal
deleted
inserted
replaced
2090:cdb94c6fd611 | 2091:68f1924fdd13 |
---|---|
13848 case DW_FEATURE_MDI: | 13848 case DW_FEATURE_MDI: |
13849 #endif | 13849 #endif |
13850 case DW_FEATURE_CONTAINER_STRIPE: | 13850 case DW_FEATURE_CONTAINER_STRIPE: |
13851 case DW_FEATURE_MLE_WORD_WRAP: | 13851 case DW_FEATURE_MLE_WORD_WRAP: |
13852 return DW_FEATURE_ENABLED; | 13852 return DW_FEATURE_ENABLED; |
13853 default: | |
13854 return DW_FEATURE_UNSUPPORTED; | |
13853 } | 13855 } |
13854 return DW_FEATURE_UNSUPPORTED; | |
13855 } | 13856 } |
13856 | 13857 |
13857 /* | 13858 /* |
13858 * Sets the state of the requested library feature. | 13859 * Sets the state of the requested library feature. |
13859 * Parameters: | 13860 * Parameters: |
13883 #endif | 13884 #endif |
13884 case DW_FEATURE_CONTAINER_STRIPE: | 13885 case DW_FEATURE_CONTAINER_STRIPE: |
13885 case DW_FEATURE_MLE_WORD_WRAP: | 13886 case DW_FEATURE_MLE_WORD_WRAP: |
13886 return DW_ERROR_GENERAL; | 13887 return DW_ERROR_GENERAL; |
13887 /* These features are supported and configurable */ | 13888 /* These features are supported and configurable */ |
13889 default: | |
13890 return DW_FEATURE_UNSUPPORTED; | |
13888 } | 13891 } |
13889 return DW_FEATURE_UNSUPPORTED; | 13892 } |
13890 } |