VirtualBox

Changeset 58811 in vbox


Ignore:
Timestamp:
Nov 21, 2015 7:46:27 PM (9 years ago)
Author:
vboxsync
Message:

bs3kit: Formatting fixes.

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  
    2929
    3030
    31 BS3_DECL(size_t) bs3PrintFmtOutput(char ch, void *pvUser)
     31BS3_DECL(size_t) bs3PrintFmtOutput(char ch, void BS3_FAR *pvUser)
    3232{
    33     if (ch)
     33    if (ch != '\0')
    3434    {
    35         if (ch != '\n')
     35        if (ch == '\n')
    3636            Bs3PrintChr('\r');
    3737        Bs3PrintChr(ch);
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-StrFormatV.c

    r58809 r58811  
    361361
    362362
    363 BS3_DECL(size_t) Bs3StrFormatV(const char BS3_FAR *pszFormat, va_list va, PFNBS3STRFORMATOUTPUT pfnOutput, void *pvUser)
     363BS3_DECL(size_t) Bs3StrFormatV(const char BS3_FAR *pszFormat, va_list va,
     364                               PFNBS3STRFORMATOUTPUT pfnOutput, void BS3_FAR *pvUser)
    364365{
    365366    BS3FMTSTATE State;
     
    372373    while ((ch = *pszFormat++) != '\0')
    373374    {
    374         char        chArgSize;
     375        char chArgSize;
    375376
    376377        /*
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.h

    r58809 r58811  
    266266
    267267/** @def BS3_FAR
    268  * For inidicating far pointers in 16-bit code.
     268 * For indicating far pointers in 16-bit code.
    269269 * Does nothing in 32-bit and 64-bit code. */
    270270/** @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.
    272278 * Does nothing in 32-bit and 64-bit code. */
    273279#ifdef M_I86
    274280# define BS3_FAR            __far
    275281# define BS3_NEAR           __near
     282# define BS3_FAR_CODE       __far
     283# define BS3_NEAR_CODE      __near
    276284#else
    277285# define BS3_FAR
    278286# define BS3_NEAR
     287# define BS3_FAR_CODE
     288# define BS3_NEAR_CODE
    279289#endif
    280290
     
    318328/** @def BS3_DECL
    319329 * Declares a BS3Kit function.
     330 *
     331 * Until we outgrow BS3TEXT16, we use all near functions in 16-bit.
     332 *
    320333 * @param a_Type        The return type. */
    321334#ifdef IN_BS3KIT
    322 # define BS3_DECL(a_Type)   DECLEXPORT(a_Type) BS3_CALL
     335# define BS3_DECL(a_Type)   DECLEXPORT(a_Type) BS3_NEAR_CODE BS3_CALL
    323336#else
    324 # define BS3_DECL(a_Type)   DECLIMPORT(a_Type) BS3_CALL
     337# define BS3_DECL(a_Type)   DECLIMPORT(a_Type) BS3_NEAR_CODE BS3_CALL
    325338#endif
    326339
     
    984997
    985998/**
    986  * Pointer to a #Bs3StrFormatV output function.
     999 * An output function for #Bs3StrFormatV.
    9871000 *
    9881001 * @returns Number of characters written.
     
    9901003 * @param   pvUser  User argument supplied to #Bs3StrFormatV.
    9911004 */
    992 typedef size_t (BS3_CALL *PFNBS3STRFORMATOUTPUT)(char ch, void *pvUser);
     1005typedef size_t BS3_CALL FNBS3STRFORMATOUTPUT(char ch, void BS3_FAR *pvUser);
     1006/** Pointer to an output function for #Bs3StrFormatV. */
     1007typedef FNBS3STRFORMATOUTPUT BS3_NEAR_CODE *PFNBS3STRFORMATOUTPUT;
    9931008
    9941009/**
     
    10121027 * @param   pvUser      The user argument for the output function.
    10131028 */
    1014 BS3_DECL(size_t) Bs3StrFormatV_c16(const char BS3_FAR *pszFormat, va_list va, PFNBS3STRFORMATOUTPUT pfnOutput, void *pvUser);
     1029BS3_DECL(size_t) Bs3StrFormatV_c16(const char BS3_FAR *pszFormat, va_list va,
     1030                                   PFNBS3STRFORMATOUTPUT pfnOutput, void BS3_FAR *pvUser);
    10151031/** @copydoc Bs3StrFormatV_c16  */
    1016 BS3_DECL(size_t) Bs3StrFormatV_c32(const char BS3_FAR *pszFormat, va_list va, PFNBS3STRFORMATOUTPUT pfnOutput, void *pvUser);
     1032BS3_DECL(size_t) Bs3StrFormatV_c32(const char BS3_FAR *pszFormat, va_list va,
     1033                                   PFNBS3STRFORMATOUTPUT pfnOutput, void BS3_FAR *pvUser);
    10171034/** @copydoc Bs3StrFormatV_c16  */
    1018 BS3_DECL(size_t) Bs3StrFormatV_c64(const char BS3_FAR *pszFormat, va_list va, PFNBS3STRFORMATOUTPUT pfnOutput, void *pvUser);
     1035BS3_DECL(size_t) Bs3StrFormatV_c64(const char BS3_FAR *pszFormat, va_list va,
     1036                                   PFNBS3STRFORMATOUTPUT pfnOutput, void BS3_FAR *pvUser);
    10191037#define Bs3StrFormatV BS3_CMN_NM(Bs3StrFormatV) /**< Selects #Bs3StrFormatV_c16, #Bs3StrFormatV_c32 or #Bs3StrFormatV_c64. */
    10201038
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette