mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-02-05 17:30:45 +00:00
Debugger: Post cleanup for #1191. Pre-requsite for bpchange.
This commit is contained in:
parent
7d566ad0b3
commit
a8e6941a68
@ -7565,7 +7565,7 @@ Update_t CmdZeroPagePointer (int nArgs)
|
||||
|
||||
// Note: Range is [iParamBegin,iParamEnd], not the usually (STL) expected [iParamBegin,iParamEnd)
|
||||
//===========================================================================
|
||||
int FindParam(LPCTSTR pLookupName, Match_e eMatch, int & iParam_, int iParamBegin, int iParamEnd )
|
||||
int FindParam (LPCTSTR pLookupName, Match_e eMatch, int & iParam_, int iParamBegin, int iParamEnd, const bool bCaseSensitive /* false */ )
|
||||
{
|
||||
int nFound = 0;
|
||||
int nLen = _tcslen( pLookupName );
|
||||
@ -7575,7 +7575,8 @@ int FindParam(LPCTSTR pLookupName, Match_e eMatch, int & iParam_, int iParamBegi
|
||||
return nFound;
|
||||
|
||||
#if ALLOW_INPUT_LOWERCASE
|
||||
eMatch = MATCH_FUZZY;
|
||||
if (! bCaseSensitive) // HACK: Until We fixup all callers using MATCH_EXACT with MATCH_ANYCASE we need to preserve behavior of ALLOW_INPUT_LOWERCASE always being MATCH_FUZZY
|
||||
eMatch = MATCH_FUZZY;
|
||||
#endif
|
||||
|
||||
if (eMatch == MATCH_EXACT)
|
||||
@ -7584,7 +7585,7 @@ int FindParam(LPCTSTR pLookupName, Match_e eMatch, int & iParam_, int iParamBegi
|
||||
for (iParam = iParamBegin; iParam <= iParamEnd; iParam++ )
|
||||
{
|
||||
TCHAR *pParamName = g_aParameters[iParam].m_sName;
|
||||
int eCompare = _tcsicmp(pLookupName, pParamName);
|
||||
int eCompare = _tcscmp(pLookupName, pParamName);
|
||||
if (! eCompare) // exact match?
|
||||
{
|
||||
nFound++;
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
void DisplayAmbigiousCommands ( int nFound );
|
||||
|
||||
int FindParam( LPCTSTR pLookupName, Match_e eMatch, int & iParam_, const int iParamBegin = 0, const int iParamEnd = NUM_PARAMS - 1 );
|
||||
int FindParam( LPCTSTR pLookupName, Match_e eMatch, int & iParam_, const int iParamBegin = 0, const int iParamEnd = NUM_PARAMS - 1, const bool bCaseSensitive = false );
|
||||
int FindCommand( LPCTSTR pName, CmdFuncPtr_t & pFunction_, int * iCommand_ = NULL );
|
||||
|
||||
inline void UnpackVersion( const unsigned int nVersion,
|
||||
|
Loading…
x
Reference in New Issue
Block a user