diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /sp/src/utils/phonemeextractor/extractor_utils.cpp | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/utils/phonemeextractor/extractor_utils.cpp')
| -rw-r--r-- | sp/src/utils/phonemeextractor/extractor_utils.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/sp/src/utils/phonemeextractor/extractor_utils.cpp b/sp/src/utils/phonemeextractor/extractor_utils.cpp index ba927f04..8b8ff98b 100644 --- a/sp/src/utils/phonemeextractor/extractor_utils.cpp +++ b/sp/src/utils/phonemeextractor/extractor_utils.cpp @@ -1,28 +1,28 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================//
-#include <windows.h>
-#include <stdio.h>
-
-//-----------------------------------------------------------------------------
-// Purpose: converts an english string to unicode
-//-----------------------------------------------------------------------------
-int ConvertANSIToUnicode(const char *ansi, wchar_t *unicode, int unicodeBufferSize)
-{
- return ::MultiByteToWideChar(CP_ACP, 0, ansi, -1, unicode, unicodeBufferSize);
-}
-
-char *va( const char *fmt, ... )
-{
- va_list args;
- static char output[4][1024];
- static int outbuffer = 0;
-
- outbuffer++;
- va_start( args, fmt );
- vprintf( fmt, args );
- vsprintf( output[ outbuffer & 3 ], fmt, args );
- return output[ outbuffer & 3 ];
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// +#include <windows.h> +#include <stdio.h> + +//----------------------------------------------------------------------------- +// Purpose: converts an english string to unicode +//----------------------------------------------------------------------------- +int ConvertANSIToUnicode(const char *ansi, wchar_t *unicode, int unicodeBufferSize) +{ + return ::MultiByteToWideChar(CP_ACP, 0, ansi, -1, unicode, unicodeBufferSize); +} + +char *va( const char *fmt, ... ) +{ + va_list args; + static char output[4][1024]; + static int outbuffer = 0; + + outbuffer++; + va_start( args, fmt ); + vprintf( fmt, args ); + vsprintf( output[ outbuffer & 3 ], fmt, args ); + return output[ outbuffer & 3 ]; }
\ No newline at end of file |