Changeset 57353 in vbox for trunk/src/bldprogs/scmstream.cpp
- Timestamp:
- Aug 14, 2015 2:31:09 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bldprogs/scmstream.cpp
r56310 r57353 16 16 */ 17 17 18 /******************************************************************************* 19 * Header Files * 20 *******************************************************************************/ 18 19 /********************************************************************************************************************************* 20 * Header Files * 21 *********************************************************************************************************************************/ 21 22 #include <iprt/assert.h> 22 23 #include <iprt/ctype.h> … … 1161 1162 1162 1163 /** 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 */ 1170 int 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 /** 1163 1182 * Formats a string and writes it to the SCM stream. 1164 1183 *
Note:
See TracChangeset
for help on using the changeset viewer.