C'era una cazzuola nella mailbox

git-svn-id: svn://10.65.10.50/trunk@1514 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
villa 1995-06-28 07:55:54 +00:00
parent f527a2b4b8
commit 8477f33010
3 changed files with 16 additions and 13 deletions

View File

@ -1283,14 +1283,17 @@ Se si utilizza spiegarne dettagliatamente il motivo.
strncpy(s1, (recin + off), len);
s1[len] = '\0';
wd = 0;
for(len = 0; len < LENGTH(s1); len++)
if (isdigit(s1[len])) wd = (wd * 10) + (s1[len] - '0');
ceditdata(wd, s1);
s1[2] = s1[3];
s1[3] = s1[4];
s1[4] = s1[6];
s1[5] = s1[7];
s1[6] = '\0';
if (s1[0] <= '0')
{
for(len = 0; len < LENGTH(s1); len++)
if (isdigit(s1[len])) wd = (wd * 10) + (s1[len] - '0');
ceditdata(wd, s1);
s1[2] = s1[3];
s1[3] = s1[4];
s1[4] = s1[6];
s1[5] = s1[7];
s1[6] = '\0';
}
off = recd->Ky[numkey].FromCh[i];
len = recd->Ky[numkey].ToCh[i] -
recd->Ky[numkey].FromCh[i] + 1;

View File

@ -20,7 +20,7 @@ TMessage::TMessage(const char* to, const char* sub,
_subject = sub;
_text = text;
_from = (from == NULL || *from == '\0') ? main_app().name() : from;
_flags = 0x00; _number = -1;
_flags = 0x00; // _number = -1;
}
void TMessage::send()
@ -48,7 +48,7 @@ void TMailbox::reread()
mbox.getline(buf, MAX_TXT_LEN -1);
tmnew->body(buf);
_msgs.add(tmnew);
tmnew->number(_msgs.items());
// tmnew->number(_msgs.items());
n_new++;
}
_lastpos = mbox.tellg();

View File

@ -32,7 +32,7 @@ class TMessage : public TObject
// @cmember Flag di controllo del messaggio
byte _flags;
// #cmember Numero (non si sa cosa faccia)
// int _number;
// int _number;
// @access Protected Member
protected:
@ -43,8 +43,8 @@ protected:
bool isread()
{ return _flags & MSG_READ; }
// #cmember Setta il numero. Se viene passato -1 ritorna il valore attuale
//int number(int n = -1)
//{ return (n == -1 ? _number : (_number = n)); }
// int number(int n = -1)
// { return (n == -1 ? _number : (_number = n)); }
// @access Public Member
public: