64 bit platforms support
This commit is contained in:
@@ -38,7 +38,7 @@ extern int _use_fwd;
|
||||
|
||||
void Area::DeleteMsg(GMsg* msg, int direction) {
|
||||
|
||||
ulong replyto=0, reply1st=0, lread;
|
||||
uint32_t replyto=0, reply1st=0, lread;
|
||||
|
||||
GMsg* uplink = (GMsg*)throw_calloc(1, sizeof(GMsg));
|
||||
GMsg* downlink = (GMsg*)throw_calloc(1, sizeof(GMsg));
|
||||
@@ -173,7 +173,7 @@ void Area::DelMsgs(GMsg* msg) {
|
||||
}
|
||||
update_statuslinef(LNG->DeletingMsg, x+1, Mark.Count());
|
||||
w_progress(MODE_UPDATE, C_INFOW, x+1, Mark.Count(), LNG->Deleting);
|
||||
ulong msgno = Mark[x];
|
||||
uint msgno = Mark[x];
|
||||
if(Msgn.ToReln(msgno)) {
|
||||
if(LoadHdr(msg, msgno, false)) {
|
||||
bool deletethis = false;
|
||||
@@ -399,8 +399,8 @@ void CmfMsgs(GMsg* msg) {
|
||||
// Setup some variables for the loop
|
||||
Area* AAorig = AA;
|
||||
const char* echoid = AAdest->echoid();
|
||||
ulong loadmsgno = msg->msgno;
|
||||
ulong* mrkp = AA->Mark.tag;
|
||||
uint loadmsgno = msg->msgno;
|
||||
uint32_t* mrkp = AA->Mark.tag;
|
||||
int mrks = AA->Mark.Count();
|
||||
int mrk = 0;
|
||||
|
||||
@@ -422,7 +422,7 @@ void CmfMsgs(GMsg* msg) {
|
||||
}
|
||||
|
||||
int mode = 0;
|
||||
ulong msgno = 0;
|
||||
uint msgno = 0;
|
||||
if(AA->LoadMsg(msg, loadmsgno, CFG->dispmargin-(int)CFG->switches.get(disppagebar), loadmode)) {
|
||||
|
||||
// Handle unsent msgs
|
||||
@@ -591,7 +591,7 @@ void CmfMsgs(GMsg* msg) {
|
||||
|
||||
void CopyMoveForward() {
|
||||
|
||||
ulong lastread = reader_msg->msgno;
|
||||
uint lastread = reader_msg->msgno;
|
||||
|
||||
AA->set_lastread(AA->Msgn.ToReln(lastread, AA->lastread()));
|
||||
|
||||
|
@@ -79,7 +79,7 @@ char* CvtMessageIDtoMSGID(const char* mptr, char* msgidbuf, const char* echoid,
|
||||
}
|
||||
if(spaces)
|
||||
*bptr++ = '\"';
|
||||
sprintf(bptr, " %08lx", crc32);
|
||||
sprintf(bptr, " %08x", crc32);
|
||||
}
|
||||
|
||||
return msgidbuf;
|
||||
|
@@ -748,7 +748,7 @@ int TemplateToText(int mode, GMsg* msg, GMsg* oldmsg, const char* tpl, int origa
|
||||
ptr--;
|
||||
}
|
||||
}
|
||||
x = (int)((dword)ptr-(dword)qbuf);
|
||||
x = (int)((long)ptr-(long)qbuf);
|
||||
sprintf(buf, "%*.*s%*.*s>%s %s",
|
||||
y, y, quotestr, x, x, qbuf, qbuf+x, quote
|
||||
);
|
||||
|
@@ -153,7 +153,7 @@ void GMsgHeaderView::Paint() {
|
||||
ulong* replies = (ulong*)throw_calloc(list_max+1, sizeof(ulong));
|
||||
ulong replyto, replynext;
|
||||
if(CFG->switches.get(disprealmsgno)) {
|
||||
ptr += sprintf(ptr, " %-5.5s: #%lu [%u]", LNG->Msg, msg->msgno, area->Msgn.Count()+(msg->attr.nwm() ? 1 : 0));
|
||||
ptr += sprintf(ptr, " %-5.5s: #%u [%u]", LNG->Msg, msg->msgno, area->Msgn.Count()+(msg->attr.nwm() ? 1 : 0));
|
||||
replyto = msg->link.to();
|
||||
replies[0] = msg->link.first();
|
||||
replynext = msg->link.next();
|
||||
|
@@ -296,18 +296,18 @@ void Area::SaveMsg(int mode, GMsg* msg) {
|
||||
Path p;
|
||||
|
||||
sprintf(file, "%s%smail.jam", CFG->jampath, isecho() ? "echo" : "net");
|
||||
sprintf(line, "%s %lu", ReMapPath(strcpy(p, path())), msg->msgno);
|
||||
sprintf(line, "%s %u", ReMapPath(strcpy(p, path())), msg->msgno);
|
||||
WriteNoDupes(file, line);
|
||||
}
|
||||
if(isqwk()) {
|
||||
strcpy(file, AddPath(CFG->goldpath, "goldqwk.lst"));
|
||||
sprintf(line, "%s %lu", echoid(), msg->msgno);
|
||||
sprintf(line, "%s %u", echoid(), msg->msgno);
|
||||
WriteNoDupes(file, line);
|
||||
|
||||
}
|
||||
else if(isinternet()) {
|
||||
strcpy(file, AddPath(CFG->goldpath, "goldsoup.lst"));
|
||||
sprintf(line, "%s %lu", echoid(), msg->msgno);
|
||||
sprintf(line, "%s %u", echoid(), msg->msgno);
|
||||
WriteNoDupes(file, line);
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user