comparison os2/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 a3e176450077
comparison
equal deleted inserted replaced
2090:cdb94c6fd611 2091:68f1924fdd13
13848 case DW_FEATURE_WINDOW_BORDER: 13848 case DW_FEATURE_WINDOW_BORDER:
13849 case DW_FEATURE_MLE_WORD_WRAP: 13849 case DW_FEATURE_MLE_WORD_WRAP:
13850 case DW_FEATURE_NOTEBOOK_STATUS_TEXT: 13850 case DW_FEATURE_NOTEBOOK_STATUS_TEXT:
13851 case DW_FEATURE_MDI: 13851 case DW_FEATURE_MDI:
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:
13876 case DW_FEATURE_MLE_WORD_WRAP: 13877 case DW_FEATURE_MLE_WORD_WRAP:
13877 case DW_FEATURE_NOTEBOOK_STATUS_TEXT: 13878 case DW_FEATURE_NOTEBOOK_STATUS_TEXT:
13878 case DW_FEATURE_MDI: 13879 case DW_FEATURE_MDI:
13879 return DW_ERROR_GENERAL; 13880 return DW_ERROR_GENERAL;
13880 /* These features are supported and configurable */ 13881 /* These features are supported and configurable */
13882 default:
13883 return DW_FEATURE_UNSUPPORTED;
13881 } 13884 }
13882 return DW_FEATURE_UNSUPPORTED; 13885 }
13883 }