Debugger: move Win32 functions to separate file. (PR #941)

* Debug.cpp: move Win32 functions to separate file.
* Move _tcscat -> strcat to maximise portability.
* Remove unneeded Win32 check.
This commit is contained in:
Andrea
2021-04-23 20:39:24 +01:00
committed by GitHub
parent c6c427aa3d
commit 41778aa472
11 changed files with 660 additions and 572 deletions

View File

@@ -261,18 +261,18 @@ void Help_Operators()
ConsolePrintFormat( sText," Operators: (%sBreakpoint%s)" , CHC_USAGE, CHC_DEFAULT );
_tcscpy( sText, " " );
_tcscat( sText, CHC_USAGE );
strcat( sText, CHC_USAGE );
int iBreakOp = 0;
for( iBreakOp = 0; iBreakOp < NUM_BREAKPOINT_OPERATORS; iBreakOp++ )
{
if ((iBreakOp >= PARAM_BP_LESS_EQUAL) &&
(iBreakOp <= PARAM_BP_GREATER_EQUAL))
{
_tcscat( sText, g_aBreakpointSymbols[ iBreakOp ] );
_tcscat( sText, " " );
strcat( sText, g_aBreakpointSymbols[ iBreakOp ] );
strcat( sText, " " );
}
}
_tcscat( sText, CHC_DEFAULT );
strcat( sText, CHC_DEFAULT );
ConsolePrint( sText );
}