Changeset 58811 in vbox
- Timestamp:
- Nov 21, 2015 7:46:27 PM (9 years ago)
- Location:
- trunk/src/VBox/ValidationKit/bootsectors/bs3kit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-Printf.c
r58809 r58811 29 29 30 30 31 BS3_DECL(size_t) bs3PrintFmtOutput(char ch, void *pvUser)31 BS3_DECL(size_t) bs3PrintFmtOutput(char ch, void BS3_FAR *pvUser) 32 32 { 33 if (ch )33 if (ch != '\0') 34 34 { 35 if (ch != '\n')35 if (ch == '\n') 36 36 Bs3PrintChr('\r'); 37 37 Bs3PrintChr(ch); -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-StrFormatV.c
r58809 r58811 361 361 362 362 363 BS3_DECL(size_t) Bs3StrFormatV(const char BS3_FAR *pszFormat, va_list va, PFNBS3STRFORMATOUTPUT pfnOutput, void *pvUser) 363 BS3_DECL(size_t) Bs3StrFormatV(const char BS3_FAR *pszFormat, va_list va, 364 PFNBS3STRFORMATOUTPUT pfnOutput, void BS3_FAR *pvUser) 364 365 { 365 366 BS3FMTSTATE State; … … 372 373 while ((ch = *pszFormat++) != '\0') 373 374 { 374 char 375 char chArgSize; 375 376 376 377 /* -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.h
r58809 r58811 266 266 267 267 /** @def BS3_FAR 268 * For in idicating far pointers in 16-bit code.268 * For indicating far pointers in 16-bit code. 269 269 * Does nothing in 32-bit and 64-bit code. */ 270 270 /** @def BS3_NEAR 271 * For inidicating near pointers in 16-bit code. 271 * For indicating near pointers in 16-bit code. 272 * Does nothing in 32-bit and 64-bit code. */ 273 /** @def BS3_FAR_CODE 274 * For indicating far 16-bit functions. 275 * Does nothing in 32-bit and 64-bit code. */ 276 /** @def BS3_NEAR_CODE 277 * For indicating near 16-bit functions. 272 278 * Does nothing in 32-bit and 64-bit code. */ 273 279 #ifdef M_I86 274 280 # define BS3_FAR __far 275 281 # define BS3_NEAR __near 282 # define BS3_FAR_CODE __far 283 # define BS3_NEAR_CODE __near 276 284 #else 277 285 # define BS3_FAR 278 286 # define BS3_NEAR 287 # define BS3_FAR_CODE 288 # define BS3_NEAR_CODE 279 289 #endif 280 290 … … 318 328 /** @def BS3_DECL 319 329 * Declares a BS3Kit function. 330 * 331 * Until we outgrow BS3TEXT16, we use all near functions in 16-bit. 332 * 320 333 * @param a_Type The return type. */ 321 334 #ifdef IN_BS3KIT 322 # define BS3_DECL(a_Type) DECLEXPORT(a_Type) BS3_ CALL335 # define BS3_DECL(a_Type) DECLEXPORT(a_Type) BS3_NEAR_CODE BS3_CALL 323 336 #else 324 # define BS3_DECL(a_Type) DECLIMPORT(a_Type) BS3_ CALL337 # define BS3_DECL(a_Type) DECLIMPORT(a_Type) BS3_NEAR_CODE BS3_CALL 325 338 #endif 326 339 … … 984 997 985 998 /** 986 * Pointer to a #Bs3StrFormatV output function.999 * An output function for #Bs3StrFormatV. 987 1000 * 988 1001 * @returns Number of characters written. … … 990 1003 * @param pvUser User argument supplied to #Bs3StrFormatV. 991 1004 */ 992 typedef size_t (BS3_CALL *PFNBS3STRFORMATOUTPUT)(char ch, void *pvUser); 1005 typedef size_t BS3_CALL FNBS3STRFORMATOUTPUT(char ch, void BS3_FAR *pvUser); 1006 /** Pointer to an output function for #Bs3StrFormatV. */ 1007 typedef FNBS3STRFORMATOUTPUT BS3_NEAR_CODE *PFNBS3STRFORMATOUTPUT; 993 1008 994 1009 /** … … 1012 1027 * @param pvUser The user argument for the output function. 1013 1028 */ 1014 BS3_DECL(size_t) Bs3StrFormatV_c16(const char BS3_FAR *pszFormat, va_list va, PFNBS3STRFORMATOUTPUT pfnOutput, void *pvUser); 1029 BS3_DECL(size_t) Bs3StrFormatV_c16(const char BS3_FAR *pszFormat, va_list va, 1030 PFNBS3STRFORMATOUTPUT pfnOutput, void BS3_FAR *pvUser); 1015 1031 /** @copydoc Bs3StrFormatV_c16 */ 1016 BS3_DECL(size_t) Bs3StrFormatV_c32(const char BS3_FAR *pszFormat, va_list va, PFNBS3STRFORMATOUTPUT pfnOutput, void *pvUser); 1032 BS3_DECL(size_t) Bs3StrFormatV_c32(const char BS3_FAR *pszFormat, va_list va, 1033 PFNBS3STRFORMATOUTPUT pfnOutput, void BS3_FAR *pvUser); 1017 1034 /** @copydoc Bs3StrFormatV_c16 */ 1018 BS3_DECL(size_t) Bs3StrFormatV_c64(const char BS3_FAR *pszFormat, va_list va, PFNBS3STRFORMATOUTPUT pfnOutput, void *pvUser); 1035 BS3_DECL(size_t) Bs3StrFormatV_c64(const char BS3_FAR *pszFormat, va_list va, 1036 PFNBS3STRFORMATOUTPUT pfnOutput, void BS3_FAR *pvUser); 1019 1037 #define Bs3StrFormatV BS3_CMN_NM(Bs3StrFormatV) /**< Selects #Bs3StrFormatV_c16, #Bs3StrFormatV_c32 or #Bs3StrFormatV_c64. */ 1020 1038
Note:
See TracChangeset
for help on using the changeset viewer.