Minimal structure packing zp1, zp2

Hi,

Using QNX 4, Photon 1.14 and Watcom 10.6.

I would like to have some of my structures to have the minimum structure
packing set at 1 (zp1) and others at 2 (zp2).

Is it possible to put these options into a pragma?

Can this be done?

TIA,

Augie

Yes, have a look at
#pragma pack()

“Augie Henriques” <augiehenriques@hotmail.com> wrote in message
news:9bi993$p0p$1@inn.qnx.com

Hi,

Using QNX 4, Photon 1.14 and Watcom 10.6.

I would like to have some of my structures to have the minimum structure
packing set at 1 (zp1) and others at 2 (zp2).

Is it possible to put these options into a pragma?

Can this be done?

TIA,

Augie

\

On Wed, 18 Apr 2001 07:02:33 -0400, “Mario Charest”
<mcharest@deletezinformatic.com> wrote:

Yes, have a look at
#pragma pack()

For this pragma to work you should define
HANDLE_SYSV_PRAGMA 1
I think.

Andrzej Kocon

“Augie Henriques” <> augiehenriques@hotmail.com> > wrote in message
news:9bi993$p0p$> 1@inn.qnx.com> …
Hi,

Using QNX 4, Photon 1.14 and Watcom 10.6.

I would like to have some of my structures to have the minimum structure
packing set at 1 (zp1) and others at 2 (zp2).

Is it possible to put these options into a pragma?

Can this be done?

TIA,

Augie



\

On Wed, 18 Apr 2001 13:29:53 GMT, ako@box43.gnet.pl (Andrzej Kocon)
wrote:

On Wed, 18 Apr 2001 07:02:33 -0400, “Mario Charest”
mcharest@deletezinformatic.com> > wrote:


Yes, have a look at
#pragma pack()


For this pragma to work you should define
HANDLE_SYSV_PRAGMA 1

to my knowledge you don’t have to, maybe with QNX6 and GCC ?

I think.

Andrzej Kocon

“Augie Henriques” <> augiehenriques@hotmail.com> > wrote in message
news:9bi993$p0p$> 1@inn.qnx.com> …
Hi,

Using QNX 4, Photon 1.14 and Watcom 10.6.

I would like to have some of my structures to have the minimum structure
packing set at 1 (zp1) and others at 2 (zp2).

Is it possible to put these options into a pragma?

Can this be done?

TIA,

Augie




\

On Wed, 18 Apr 2001 17:27:07 GMT, mcharest@nozinformatic.com (Mario
Charest) wrote:

On Wed, 18 Apr 2001 13:29:53 GMT, > ako@box43.gnet.pl > (Andrzej Kocon)
wrote:

On Wed, 18 Apr 2001 07:02:33 -0400, “Mario Charest”
mcharest@deletezinformatic.com> > wrote:


Yes, have a look at
#pragma pack()


For this pragma to work you should define
HANDLE_SYSV_PRAGMA 1

to my knowledge you don’t have to, maybe with QNX6 and GCC ?

Err… sure. Sorry.



I think.

Andrzej Kocon

“Augie Henriques” <> augiehenriques@hotmail.com> > wrote in message
news:9bi993$p0p$> 1@inn.qnx.com> …
Hi,

Using QNX 4, Photon 1.14 and Watcom 10.6.

I would like to have some of my structures to have the minimum structure
packing set at 1 (zp1) and others at 2 (zp2).

Is it possible to put these options into a pragma?

Can this be done?

TIA,

Augie





\