Changeset 68604 in vbox for trunk/src/VBox/ValidationKit/bootsectors/bs3kit
- Timestamp:
- Sep 1, 2017 3:32:33 PM (7 years ago)
- Location:
- trunk/src/VBox/ValidationKit/bootsectors/bs3kit
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-Printf.c
r60527 r68604 65 65 66 66 #undef Bs3PrintfV 67 BS3_CMN_DEF(size_t, Bs3PrintfV,(const char BS3_FAR *pszFormat, va_list va))67 BS3_CMN_DEF(size_t, Bs3PrintfV,(const char BS3_FAR *pszFormat, va_list BS3_FAR va)) 68 68 { 69 69 BS3PRINTBUF Buf; -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-StrFormatV.c
r66464 r68604 77 77 } BS3FMTSTATE; 78 78 /** Pointer to a BS3Kit string formatter state. */ 79 typedef BS3FMTSTATE *PBS3FMTSTATE;79 typedef BS3FMTSTATE BS3_FAR *PBS3FMTSTATE; 80 80 81 81 … … 98 98 * @param cchNumber The length of the number. 99 99 */ 100 static size_t bs3StrFormatNumberString(PBS3FMTSTATE pState, char const *pszNumber, size_t cchNumber)100 static size_t bs3StrFormatNumberString(PBS3FMTSTATE pState, char const BS3_FAR *pszNumber, size_t cchNumber) 101 101 { 102 102 /* … … 225 225 226 226 { 227 const char *pachDigits = !(pState->fFlags & STR_F_CAPITAL) ? g_achBs3HexDigits : g_achBs3HexDigitsUpper;228 char *psz = &pState->szTmp[BS3FMT_TMP_SIZE];227 const char BS3_FAR *pachDigits = !(pState->fFlags & STR_F_CAPITAL) ? g_achBs3HexDigits : g_achBs3HexDigitsUpper; 228 char BS3_FAR *psz = &pState->szTmp[BS3FMT_TMP_SIZE]; 229 229 230 230 *--psz = '\0'; … … 263 263 { 264 264 #if ARCH_BITS < 64 265 const char *pachDigits = !(pState->fFlags & STR_F_CAPITAL) ? g_achBs3HexDigits : g_achBs3HexDigitsUpper;266 char *psz = &pState->szTmp[BS3FMT_TMP_SIZE];265 const char BS3_FAR *pachDigits = !(pState->fFlags & STR_F_CAPITAL) ? g_achBs3HexDigits : g_achBs3HexDigitsUpper; 266 char BS3_FAR *psz = &pState->szTmp[BS3FMT_TMP_SIZE]; 267 267 268 268 *--psz = '\0'; … … 305 305 if (pState->uBase == 10) 306 306 { 307 const char *pachDigits = !(pState->fFlags & STR_F_CAPITAL)308 ? g_achBs3HexDigits : g_achBs3HexDigitsUpper;309 char *psz = &pState->szTmp[BS3FMT_TMP_SIZE];307 const char BS3_FAR *pachDigits = !(pState->fFlags & STR_F_CAPITAL) 308 ? g_achBs3HexDigits : g_achBs3HexDigitsUpper; 309 char BS3_FAR *psz = &pState->szTmp[BS3FMT_TMP_SIZE]; 310 310 311 311 *--psz = '\0'; … … 362 362 363 363 #undef Bs3StrFormatV 364 BS3_CMN_DEF(size_t, Bs3StrFormatV,(const char BS3_FAR *pszFormat, va_list va,364 BS3_CMN_DEF(size_t, Bs3StrFormatV,(const char BS3_FAR *pszFormat, va_list BS3_FAR va, 365 365 PFNBS3STRFORMATOUTPUT pfnOutput, void BS3_FAR *pvUser)) 366 366 { … … 368 368 size_t cchRet = 0; 369 369 char ch; 370 #if ARCH_BITS == 16 371 typedef int SIZE_CHECK_TYPE1[sizeof(va) == 4 && sizeof(va[0]) == 4]; 372 #endif 370 373 371 374 State.pfnOutput = pfnOutput; -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-StrPrintf.c
r62484 r68604 74 74 75 75 #undef Bs3StrPrintfV 76 BS3_CMN_DEF(size_t, Bs3StrPrintfV,(char BS3_FAR *pszBuf, size_t cchBuf, const char BS3_FAR *pszFormat, va_list va))76 BS3_CMN_DEF(size_t, Bs3StrPrintfV,(char BS3_FAR *pszBuf, size_t cchBuf, const char BS3_FAR *pszFormat, va_list BS3_FAR va)) 77 77 { 78 78 BS3STRPRINTFSTATE State; -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-TestFailed.c
r66117 r68604 96 96 */ 97 97 #undef Bs3TestFailedV 98 BS3_CMN_DEF(bool, Bs3TestFailedV,(const char *pszFormat, va_list va))98 BS3_CMN_DEF(bool, Bs3TestFailedV,(const char *pszFormat, va_list BS3_FAR va)) 99 99 { 100 100 BS3TESTFAILEDBUF Buf; -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-TestPrintf.c
r64367 r68604 116 116 117 117 #undef Bs3TestPrintfV 118 BS3_CMN_DEF(void, Bs3TestPrintfV,(const char BS3_FAR *pszFormat, va_list va))118 BS3_CMN_DEF(void, Bs3TestPrintfV,(const char BS3_FAR *pszFormat, va_list BS3_FAR va)) 119 119 { 120 120 BS3TESTPRINTBUF Buf; -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-TestSkipped.c
r60527 r68604 38 38 */ 39 39 #undef Bs3TestSkippedV 40 BS3_CMN_DEF(void, Bs3TestSkippedV,(const char *pszFormat, va_list va))40 BS3_CMN_DEF(void, Bs3TestSkippedV,(const char *pszFormat, va_list BS3_FAR va)) 41 41 { 42 42 if (g_cusBs3TestErrors == g_cusBs3SubTestAtErrors) -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-TestSub.c
r66115 r68604 38 38 */ 39 39 #undef Bs3TestSubV 40 BS3_CMN_DEF(void, Bs3TestSubV,(const char *pszFormat, va_list va))40 BS3_CMN_DEF(void, Bs3TestSubV,(const char *pszFormat, va_list BS3_FAR va)) 41 41 { 42 42 size_t cch; -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.h
r66454 r68604 29 29 30 30 #ifndef DOXYGEN_RUNNING 31 # undef IN_RING0 31 32 # define IN_RING0 32 33 #endif 34 33 35 #define RT_NO_STRICT /* Don't drag in IPRT assertion code in inline code we may use (asm.h). */ 34 36 #include <iprt/cdefs.h> 35 37 #include <iprt/types.h> 38 36 39 #ifndef DOXYGEN_RUNNING 37 40 # undef IN_RING0 … … 1560 1563 * @param va Format arguments. 1561 1564 */ 1562 BS3_CMN_PROTO_STUB(size_t, Bs3PrintfV,(const char BS3_FAR *pszFormat, va_list va));1565 BS3_CMN_PROTO_STUB(size_t, Bs3PrintfV,(const char BS3_FAR *pszFormat, va_list BS3_FAR va)); 1563 1566 1564 1567 /** … … 1616 1619 * @param pvUser The user argument for the output function. 1617 1620 */ 1618 BS3_CMN_PROTO_STUB(size_t, Bs3StrFormatV,(const char BS3_FAR *pszFormat, va_list va,1621 BS3_CMN_PROTO_STUB(size_t, Bs3StrFormatV,(const char BS3_FAR *pszFormat, va_list BS3_FAR va, 1619 1622 PFNBS3STRFORMATOUTPUT pfnOutput, void BS3_FAR *pvUser)); 1620 1623 … … 1631 1634 * @param va Format arguments. 1632 1635 */ 1633 BS3_CMN_PROTO_STUB(size_t, Bs3StrPrintfV,(char BS3_FAR *pszBuf, size_t cbBuf, const char BS3_FAR *pszFormat, va_list va));1636 BS3_CMN_PROTO_STUB(size_t, Bs3StrPrintfV,(char BS3_FAR *pszBuf, size_t cbBuf, const char BS3_FAR *pszFormat, va_list BS3_FAR va)); 1634 1637 1635 1638 /** … … 3108 3111 * Equivalent to RTTestISubV. 3109 3112 */ 3110 BS3_CMN_PROTO_STUB(void, Bs3TestSubV,(const char BS3_FAR *pszFormat, va_list va));3113 BS3_CMN_PROTO_STUB(void, Bs3TestSubV,(const char BS3_FAR *pszFormat, va_list BS3_FAR va)); 3111 3114 3112 3115 /** … … 3134 3137 * @param va String format arguments. 3135 3138 */ 3136 BS3_CMN_PROTO_STUB(void, Bs3TestPrintfV,(const char BS3_FAR *pszFormat, va_list va));3139 BS3_CMN_PROTO_STUB(void, Bs3TestPrintfV,(const char BS3_FAR *pszFormat, va_list BS3_FAR va)); 3137 3140 3138 3141 /** … … 3152 3155 * @returns false. 3153 3156 */ 3154 BS3_CMN_PROTO_STUB(bool, Bs3TestFailedV,(const char BS3_FAR *pszFormat, va_list va));3157 BS3_CMN_PROTO_STUB(bool, Bs3TestFailedV,(const char BS3_FAR *pszFormat, va_list BS3_FAR va)); 3155 3158 3156 3159 /** … … 3175 3178 * @param va Format arguments. 3176 3179 */ 3177 BS3_CMN_PROTO_STUB(void, Bs3TestSkippedV,(const char BS3_FAR *pszFormat, va_list va));3180 BS3_CMN_PROTO_STUB(void, Bs3TestSkippedV,(const char BS3_FAR *pszFormat, va_list BS3_FAR va)); 3178 3181 3179 3182 /**
Note:
See TracChangeset
for help on using the changeset viewer.