Fix line endings. WHAMMY.
This commit is contained in:
@@ -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 ];
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,83 +1,83 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// PHONEMEEXTRACTOR.VPC
|
||||
//
|
||||
// Project Script
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$Macro SRCDIR "..\.."
|
||||
$Macro OUTBINDIR "$SRCDIR\..\game\bin\phonemeextractors"
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\source_dll_base.vpc"
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$AdditionalIncludeDirectories "$BASE;../common,../hlfaceposer,../sapi51/include"
|
||||
$PreprocessorDefinitions "$BASE;PHONEMEEXTRACTOR_EXPORTS"
|
||||
|
||||
// The project has some trouble with the deprecated string function warnings, so turn those off.
|
||||
$AdditionalOptions "$BASE /wd4995"
|
||||
}
|
||||
|
||||
$Linker
|
||||
{
|
||||
$AdditionalDependencies "$BASE odbc32.lib odbccp32.lib"
|
||||
}
|
||||
}
|
||||
|
||||
$Project "Phonemeextractor"
|
||||
{
|
||||
$Folder "Source Files"
|
||||
{
|
||||
$File "extractor_utils.cpp"
|
||||
$File "$SRCDIR\public\phonemeconverter.cpp"
|
||||
$File "$SRCDIR\public\sentence.cpp"
|
||||
$File "phonemeextractor.cpp"
|
||||
}
|
||||
|
||||
$Folder "Header Files"
|
||||
{
|
||||
$File "talkback.h"
|
||||
}
|
||||
|
||||
$Folder "SAPI Header Files"
|
||||
{ // These are dynamic because sapi might not be present in SDK branches, but we still want VPC to succeed.
|
||||
$DynamicFile "..\sapi51\Include\sapi.h"
|
||||
$DynamicFile "..\sapi51\Include\sapiddk.h"
|
||||
$DynamicFile "..\sapi51\Include\Spddkhlp.h"
|
||||
$DynamicFile "..\sapi51\Include\spdebug.h"
|
||||
$DynamicFile "..\sapi51\Include\sperror.h"
|
||||
$DynamicFile "..\sapi51\Include\sphelper.h"
|
||||
}
|
||||
|
||||
$Folder "Public Header Files"
|
||||
{
|
||||
$File "$SRCDIR\public\mathlib\amd3dx.h"
|
||||
$File "$SRCDIR\public\tier0\basetypes.h"
|
||||
$File "$SRCDIR\public\tier0\commonmacros.h"
|
||||
$File "$SRCDIR\public\tier0\dbg.h"
|
||||
$File "$SRCDIR\public\tier0\fasttimer.h"
|
||||
$File "$SRCDIR\public\appframework\IAppSystem.h"
|
||||
$File "$SRCDIR\public\mathlib\mathlib.h"
|
||||
$File "$SRCDIR\public\phonemeconverter.h"
|
||||
$File "$SRCDIR\public\phonemeextractor\phonemeextractor.h"
|
||||
$File "$SRCDIR\public\tier0\platform.h"
|
||||
$File "$SRCDIR\public\tier0\protected_things.h"
|
||||
$File "$SRCDIR\public\sentence.h"
|
||||
$File "$SRCDIR\public\string_t.h"
|
||||
$File "$SRCDIR\public\tier1\strtools.h"
|
||||
$File "$SRCDIR\public\tier1\utllinkedlist.h"
|
||||
$File "$SRCDIR\public\tier1\utlmemory.h"
|
||||
$File "$SRCDIR\public\tier1\utlvector.h"
|
||||
$File "$SRCDIR\public\mathlib\vector.h"
|
||||
$File "$SRCDIR\public\mathlib\vector2d.h"
|
||||
$File "$SRCDIR\public\vstdlib\vstdlib.h"
|
||||
}
|
||||
|
||||
$Folder "Link Libraries"
|
||||
{
|
||||
$Lib mathlib
|
||||
$DynamicFile "..\sapi51\lib\i386\sapi.lib"
|
||||
}
|
||||
}
|
||||
//-----------------------------------------------------------------------------
|
||||
// PHONEMEEXTRACTOR.VPC
|
||||
//
|
||||
// Project Script
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$Macro SRCDIR "..\.."
|
||||
$Macro OUTBINDIR "$SRCDIR\..\game\bin\phonemeextractors"
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\source_dll_base.vpc"
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$AdditionalIncludeDirectories "$BASE;../common,../hlfaceposer,../sapi51/include"
|
||||
$PreprocessorDefinitions "$BASE;PHONEMEEXTRACTOR_EXPORTS"
|
||||
|
||||
// The project has some trouble with the deprecated string function warnings, so turn those off.
|
||||
$AdditionalOptions "$BASE /wd4995"
|
||||
}
|
||||
|
||||
$Linker
|
||||
{
|
||||
$AdditionalDependencies "$BASE odbc32.lib odbccp32.lib"
|
||||
}
|
||||
}
|
||||
|
||||
$Project "Phonemeextractor"
|
||||
{
|
||||
$Folder "Source Files"
|
||||
{
|
||||
$File "extractor_utils.cpp"
|
||||
$File "$SRCDIR\public\phonemeconverter.cpp"
|
||||
$File "$SRCDIR\public\sentence.cpp"
|
||||
$File "phonemeextractor.cpp"
|
||||
}
|
||||
|
||||
$Folder "Header Files"
|
||||
{
|
||||
$File "talkback.h"
|
||||
}
|
||||
|
||||
$Folder "SAPI Header Files"
|
||||
{ // These are dynamic because sapi might not be present in SDK branches, but we still want VPC to succeed.
|
||||
$DynamicFile "..\sapi51\Include\sapi.h"
|
||||
$DynamicFile "..\sapi51\Include\sapiddk.h"
|
||||
$DynamicFile "..\sapi51\Include\Spddkhlp.h"
|
||||
$DynamicFile "..\sapi51\Include\spdebug.h"
|
||||
$DynamicFile "..\sapi51\Include\sperror.h"
|
||||
$DynamicFile "..\sapi51\Include\sphelper.h"
|
||||
}
|
||||
|
||||
$Folder "Public Header Files"
|
||||
{
|
||||
$File "$SRCDIR\public\mathlib\amd3dx.h"
|
||||
$File "$SRCDIR\public\tier0\basetypes.h"
|
||||
$File "$SRCDIR\public\tier0\commonmacros.h"
|
||||
$File "$SRCDIR\public\tier0\dbg.h"
|
||||
$File "$SRCDIR\public\tier0\fasttimer.h"
|
||||
$File "$SRCDIR\public\appframework\IAppSystem.h"
|
||||
$File "$SRCDIR\public\mathlib\mathlib.h"
|
||||
$File "$SRCDIR\public\phonemeconverter.h"
|
||||
$File "$SRCDIR\public\phonemeextractor\phonemeextractor.h"
|
||||
$File "$SRCDIR\public\tier0\platform.h"
|
||||
$File "$SRCDIR\public\tier0\protected_things.h"
|
||||
$File "$SRCDIR\public\sentence.h"
|
||||
$File "$SRCDIR\public\string_t.h"
|
||||
$File "$SRCDIR\public\tier1\strtools.h"
|
||||
$File "$SRCDIR\public\tier1\utllinkedlist.h"
|
||||
$File "$SRCDIR\public\tier1\utlmemory.h"
|
||||
$File "$SRCDIR\public\tier1\utlvector.h"
|
||||
$File "$SRCDIR\public\mathlib\vector.h"
|
||||
$File "$SRCDIR\public\mathlib\vector2d.h"
|
||||
$File "$SRCDIR\public\vstdlib\vstdlib.h"
|
||||
}
|
||||
|
||||
$Folder "Link Libraries"
|
||||
{
|
||||
$Lib mathlib
|
||||
$DynamicFile "..\sapi51\lib\i386\sapi.lib"
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,98 +1,98 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// PHONEMEEXTRACTOR_IMS.VPC
|
||||
//
|
||||
// Project Script
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$Macro SRCDIR "..\.."
|
||||
$Macro OUTBINDIR "$SRCDIR\..\game\bin\phonemeextractors"
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\source_dll_base.vpc"
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$AdditionalIncludeDirectories "$BASE;../common,../hlfaceposer,../sapi51/include"
|
||||
$PreprocessorDefinitions "$BASE;PHONEMEEXTRACTOR_EXPORTS"
|
||||
}
|
||||
|
||||
$Linker
|
||||
{
|
||||
$AdditionalDependencies "$BASE odbc32.lib odbccp32.lib"
|
||||
}
|
||||
}
|
||||
|
||||
$Configuration "Debug"
|
||||
{
|
||||
$General
|
||||
{
|
||||
$OutputDirectory ".\Debug_ims" [$WIN32]
|
||||
$IntermediateDirectory ".\Debug_ims" [$WIN32]
|
||||
}
|
||||
}
|
||||
|
||||
$Configuration "Release"
|
||||
{
|
||||
$General
|
||||
{
|
||||
$OutputDirectory ".\Release_ims" [$WIN32]
|
||||
$IntermediateDirectory ".\Release_ims" [$WIN32]
|
||||
}
|
||||
}
|
||||
|
||||
$Project "Phonemeextractor_ims"
|
||||
{
|
||||
$Folder "Source Files"
|
||||
{
|
||||
$File "extractor_utils.cpp"
|
||||
$File "$SRCDIR\public\phonemeconverter.cpp"
|
||||
$File "$SRCDIR\public\sentence.cpp"
|
||||
$File "phonemeextractor_ims.cpp"
|
||||
}
|
||||
|
||||
$Folder "Header Files"
|
||||
{
|
||||
$File "talkback.h"
|
||||
}
|
||||
|
||||
$Folder "SAPI Header Files"
|
||||
{
|
||||
$File "..\sapi51\Include\sapi.h"
|
||||
$File "..\sapi51\Include\sapiddk.h"
|
||||
$File "..\sapi51\Include\Spddkhlp.h"
|
||||
$File "..\sapi51\Include\spdebug.h"
|
||||
$File "..\sapi51\Include\sperror.h"
|
||||
$File "..\sapi51\Include\sphelper.h"
|
||||
}
|
||||
|
||||
$Folder "Public Header Files"
|
||||
{
|
||||
$File "$SRCDIR\public\mathlib\amd3dx.h"
|
||||
$File "$SRCDIR\public\tier0\basetypes.h"
|
||||
$File "$SRCDIR\public\tier0\commonmacros.h"
|
||||
$File "$SRCDIR\public\tier0\dbg.h"
|
||||
$File "$SRCDIR\public\tier0\fasttimer.h"
|
||||
$File "$SRCDIR\public\appframework\IAppSystem.h"
|
||||
$File "$SRCDIR\public\mathlib\mathlib.h"
|
||||
$File "$SRCDIR\public\phonemeconverter.h"
|
||||
$File "$SRCDIR\public\phonemeextractor\phonemeextractor.h"
|
||||
$File "$SRCDIR\public\tier0\platform.h"
|
||||
$File "$SRCDIR\public\tier0\protected_things.h"
|
||||
$File "$SRCDIR\public\sentence.h"
|
||||
$File "$SRCDIR\public\string_t.h"
|
||||
$File "$SRCDIR\public\tier1\strtools.h"
|
||||
$File "$SRCDIR\public\tier1\utllinkedlist.h"
|
||||
$File "$SRCDIR\public\tier1\utlmemory.h"
|
||||
$File "$SRCDIR\public\tier1\utlvector.h"
|
||||
$File "$SRCDIR\public\mathlib\vector.h"
|
||||
$File "$SRCDIR\public\mathlib\vector2d.h"
|
||||
$File "$SRCDIR\public\vstdlib\vstdlib.h"
|
||||
}
|
||||
|
||||
$Folder "Link Libraries"
|
||||
{
|
||||
$Lib mathlib
|
||||
$File "..\sapi51\lib\i386\sapi.lib"
|
||||
}
|
||||
}
|
||||
//-----------------------------------------------------------------------------
|
||||
// PHONEMEEXTRACTOR_IMS.VPC
|
||||
//
|
||||
// Project Script
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
$Macro SRCDIR "..\.."
|
||||
$Macro OUTBINDIR "$SRCDIR\..\game\bin\phonemeextractors"
|
||||
|
||||
$Include "$SRCDIR\vpc_scripts\source_dll_base.vpc"
|
||||
|
||||
$Configuration
|
||||
{
|
||||
$Compiler
|
||||
{
|
||||
$AdditionalIncludeDirectories "$BASE;../common,../hlfaceposer,../sapi51/include"
|
||||
$PreprocessorDefinitions "$BASE;PHONEMEEXTRACTOR_EXPORTS"
|
||||
}
|
||||
|
||||
$Linker
|
||||
{
|
||||
$AdditionalDependencies "$BASE odbc32.lib odbccp32.lib"
|
||||
}
|
||||
}
|
||||
|
||||
$Configuration "Debug"
|
||||
{
|
||||
$General
|
||||
{
|
||||
$OutputDirectory ".\Debug_ims" [$WIN32]
|
||||
$IntermediateDirectory ".\Debug_ims" [$WIN32]
|
||||
}
|
||||
}
|
||||
|
||||
$Configuration "Release"
|
||||
{
|
||||
$General
|
||||
{
|
||||
$OutputDirectory ".\Release_ims" [$WIN32]
|
||||
$IntermediateDirectory ".\Release_ims" [$WIN32]
|
||||
}
|
||||
}
|
||||
|
||||
$Project "Phonemeextractor_ims"
|
||||
{
|
||||
$Folder "Source Files"
|
||||
{
|
||||
$File "extractor_utils.cpp"
|
||||
$File "$SRCDIR\public\phonemeconverter.cpp"
|
||||
$File "$SRCDIR\public\sentence.cpp"
|
||||
$File "phonemeextractor_ims.cpp"
|
||||
}
|
||||
|
||||
$Folder "Header Files"
|
||||
{
|
||||
$File "talkback.h"
|
||||
}
|
||||
|
||||
$Folder "SAPI Header Files"
|
||||
{
|
||||
$File "..\sapi51\Include\sapi.h"
|
||||
$File "..\sapi51\Include\sapiddk.h"
|
||||
$File "..\sapi51\Include\Spddkhlp.h"
|
||||
$File "..\sapi51\Include\spdebug.h"
|
||||
$File "..\sapi51\Include\sperror.h"
|
||||
$File "..\sapi51\Include\sphelper.h"
|
||||
}
|
||||
|
||||
$Folder "Public Header Files"
|
||||
{
|
||||
$File "$SRCDIR\public\mathlib\amd3dx.h"
|
||||
$File "$SRCDIR\public\tier0\basetypes.h"
|
||||
$File "$SRCDIR\public\tier0\commonmacros.h"
|
||||
$File "$SRCDIR\public\tier0\dbg.h"
|
||||
$File "$SRCDIR\public\tier0\fasttimer.h"
|
||||
$File "$SRCDIR\public\appframework\IAppSystem.h"
|
||||
$File "$SRCDIR\public\mathlib\mathlib.h"
|
||||
$File "$SRCDIR\public\phonemeconverter.h"
|
||||
$File "$SRCDIR\public\phonemeextractor\phonemeextractor.h"
|
||||
$File "$SRCDIR\public\tier0\platform.h"
|
||||
$File "$SRCDIR\public\tier0\protected_things.h"
|
||||
$File "$SRCDIR\public\sentence.h"
|
||||
$File "$SRCDIR\public\string_t.h"
|
||||
$File "$SRCDIR\public\tier1\strtools.h"
|
||||
$File "$SRCDIR\public\tier1\utllinkedlist.h"
|
||||
$File "$SRCDIR\public\tier1\utlmemory.h"
|
||||
$File "$SRCDIR\public\tier1\utlvector.h"
|
||||
$File "$SRCDIR\public\mathlib\vector.h"
|
||||
$File "$SRCDIR\public\mathlib\vector2d.h"
|
||||
$File "$SRCDIR\public\vstdlib\vstdlib.h"
|
||||
}
|
||||
|
||||
$Folder "Link Libraries"
|
||||
{
|
||||
$Lib mathlib
|
||||
$File "..\sapi51\lib\i386\sapi.lib"
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user