Changeset 83982 in vbox
- Timestamp:
- Apr 26, 2020 11:36:21 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/getopt.cpp
r83979 r83982 45 45 * Defined Constants And Macros * 46 46 *********************************************************************************************************************************/ 47 #ifdef I PRT_MINIMAL47 #ifdef IN_RT_STATIC /* We don't need full unicode case insensitive if we ASSUME basic latin only. */ 48 48 # define RTStrICmp RTStrICmpAscii 49 49 # define RTStrNICmp RTStrNICmpAscii 50 #else51 50 #endif 52 51 … … 88 87 pState->cNonOptions = 0; 89 88 89 #ifdef RT_STRICT 90 90 /* validate the options. */ 91 91 for (size_t i = 0; i < cOptions; i++) … … 95 95 Assert(paOptions[i].iShort != VINF_GETOPT_NOT_OPTION); 96 96 Assert(paOptions[i].iShort != '-'); 97 } 97 if (paOptions[i].fFlags & RTGETOPT_FLAG_ICASE) 98 { 99 const char *psz = paOptions[i].pszLong; 100 unsigned char ch; 101 while ((ch = *psz++) != '\0') 102 Assert(ch <= 0x7f); /* ASSUMPTION that we can use RTStrICmpAscii and RTStrNICmpAscii. */ 103 } 104 } 105 #endif 98 106 99 107 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.