execp.cpp Aggiunto un salutare wakeup in caso di perdita del task

expr.cpp      Corretta gestione del >= e del <=
maskfld.cpp   COrretta gestione errori in caso di fallimento di un check


git-svn-id: svn://10.65.10.50/trunk@4011 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1996-12-17 15:12:20 +00:00
parent fd53008af7
commit 671f4eb7e0
3 changed files with 16 additions and 16 deletions

View File

@ -61,11 +61,7 @@ word TExternal_app::run(
TString256 path(_path);
if (utente)
#if XVT_OS == XVT_OS_WIN
path << " /u" << user();
#else
path << " -u" << user();
#endif
_error = 0;
_exitcode = 0;
@ -115,8 +111,12 @@ word TExternal_app::run(
main_app().wait_for((word)child);
for (byte i = 0; main_app().waiting() == (word)child; i++)
{
// Esegue il controllo solo ogni 256 cicli
if (i == 0 && ok && TaskFindHandle(&te, child) == FALSE)
{
main_app().wake_up(); // Annulla attesa del processo
break;
}
xvt_app_process_pending_events();
}

View File

@ -491,7 +491,7 @@ void TExpression::eval()
if (type == _strexpr)
{
const TString& s2 = evalstack.pop_string();
TString & s1 = evalstack.peek_string();
const TString& s1 = evalstack.pop_string();
evalstack.push(real(s1 >= s2 ? 1.0 : 0.0));
}
else

View File

@ -2830,6 +2830,7 @@ bool TEdit_field::on_key(KEY key)
TMask& m = mask();
const bool query = m.query_mode();
const bool vuoto = empty();
if (_browse)
{
@ -2853,13 +2854,12 @@ bool TEdit_field::on_key(KEY key)
ok = on_hit();
else
{
if (empty())
if (vuoto)
ok = TRUE;
else
default_error_box();
}
if (ok)
{
set_focusdirty(FALSE);
@ -2867,7 +2867,7 @@ bool TEdit_field::on_key(KEY key)
test_key_complete();
}
else
set_focusdirty(!empty());
set_focusdirty(!vuoto);
return ok;
}