2.7.0.36 Fixed: empty command was re-triggering previous command. Example: DW 6062, // test

This commit is contained in:
michaelangel007
2014-09-01 12:47:43 -07:00
parent 3a0d2697e4
commit cf7de38720
3 changed files with 25 additions and 12 deletions
+20 -11
View File
@@ -168,24 +168,33 @@ int _Args_Insert( int iSrc, int iEnd, int nLen )
}
static void ClearArg( Arg_t *pArg )
{
pArg->sArg[0] = 0;
pArg->nArgLen = 0;
pArg->bSymbol = false;
pArg->eDevice = NUM_DEVICES; // none
pArg->eToken = NO_TOKEN ; // none
pArg->bType = TYPE_STRING;
pArg->nValue = 0;
#if DEBUG_VAL_2
pArg->nVal2 = 0;
#endif
}
//===========================================================================
void ArgsClear ()
{
Arg_t *pArg = &g_aArgs[0];
Arg_t *pRaw = &g_aArgRaw[0];
for (int iArg = 0; iArg < MAX_ARGS; iArg++ )
{
pArg->bSymbol = false;
pArg->eDevice = NUM_DEVICES; // none
pArg->eToken = NO_TOKEN ; // none
pArg->bType = TYPE_STRING;
pArg->nValue = 0;
#if DEBUG_VAL_2
pArg->nVal2 = 0;
#endif
pArg->sArg[0] = 0;
ClearArg( pArg );
ClearArg( pRaw );
pArg++;
pRaw++;
}
}
@@ -219,7 +228,7 @@ bool ArgsGetImmediateValue ( Arg_t *pArg, WORD * pAddressValue_ )
return false;
}
// Processes the raw args, turning them into tokens and types.
// Read console input, process the raw args, turning them into tokens and types.
//===========================================================================
int ArgsGet ( TCHAR * pInput )
{
@@ -262,7 +271,7 @@ int ArgsGet ( TCHAR * pInput )
}
if (iTokenSrc == TOKEN_COMMENT_EOL)
break;
break; //pArg->eToken = iTokenSrc;
if (iTokenSrc == NO_TOKEN)
{