TIP: Click on subject to list as thread! ANSI
echo: muffin
to: Bo Simonsen
from: Bob Jones
date: 2003-08-13 09:39:44
subject: QWK problem(s)

BJ> Ok....  Wes mentioned in a private e-mail to look at a _packed_ , or
 BJ> some other directive that forces a packed structure that then can be
 BJ> read and written out to disk.....  The structure used for the reading
 BJ> and writing of QWK packets probably needs this directive added to it,
 BJ> and appropriate padding added if needed.....  I'll have to switch to
 BJ> the machine my e-mail is on to look this up (if needed).

 BS> The problem is that the entries in the .NDX file isn't 
 BS> sepperated correctly.

Sounds like it could be solved with the info Wes passed on to me....  Let me dig....

Hmmmm.....  Ok, from an e-mail I got from Wes:

=== cut here ===
6. If he is declaring his own structures for reading squish 
bases, you might find this syntax helpful:

struct _mystruct
{
  int field;
} __attribute__((packed));


.that should give the same structure size as Scott was using on 
the DOS-based compilers. Of course, __attribute__((a)) gets 
#defined to spaces on non-__GNUC__ platforms..
=== cut here ===

So, I would recommend checking to see if the structure you are using has
the __attribute__((packed)); statement included.  If it does, then we had
some padding under DOS / OS/2 / Win32 environment that wasn't clean in the
old code.  If the attribute isn't there, then I'd try adding it for the
structure being read and/or written in binary format to the qwk file.... 
Since I haven't looked at the specific code you're dealing with, this may
not be the issue with the qwk code....

Take care.....

Bob Jones, 1:343/41


--- Maximus/2 3.01
* Origin: Top Hat 2 BBS (1:343/41)
SEEN-BY: 633/267 270
@PATH: 343/41 10/345 106/1 2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.