VirtualBox

Changeset 57353 in vbox for trunk/src/bldprogs/scmstream.cpp


Ignore:
Timestamp:
Aug 14, 2015 2:31:09 PM (9 years ago)
Author:
vboxsync
Message:

scm: Added fixing of flower boxes marking sections in C/C++ source file, like 'Header Files' and 'Defined Constants And Macros'. Applied it to the bldprogs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bldprogs/scmstream.cpp

    r56310 r57353  
    1616 */
    1717
    18 /*******************************************************************************
    19 *   Header Files                                                               *
    20 *******************************************************************************/
     18
     19/*********************************************************************************************************************************
     20*   Header Files                                                                                                                 *
     21*********************************************************************************************************************************/
    2122#include <iprt/assert.h>
    2223#include <iprt/ctype.h>
     
    11611162
    11621163/**
     1164 * Puts an EOL marker to the stream.
     1165 *
     1166 * @returns IPRt status code.
     1167 * @param   pStream             The stream.  Must be in write mode.
     1168 * @param   enmEol              The end-of-line marker to write.
     1169 */
     1170int ScmStreamPutEol(PSCMSTREAM pStream, SCMEOL enmEol)
     1171{
     1172    if (enmEol == SCMEOL_LF)
     1173        return ScmStreamWrite(pStream, "\n", 1);
     1174    if (enmEol == SCMEOL_CRLF)
     1175        return ScmStreamWrite(pStream, "\r\n", 2);
     1176    if (enmEol == SCMEOL_NONE)
     1177        return VINF_SUCCESS;
     1178    AssertFailedReturn(VERR_INVALID_PARAMETER);
     1179}
     1180
     1181/**
    11631182 * Formats a string and writes it to the SCM stream.
    11641183 *
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