Thread View: comp.os.os2.programmer
2 messages
2 total messages
Started by Juha Inkari
Mon, 09 Jul 1990 14:59
#define SEG_NONSHARED ?
Author: Juha Inkari
Date: Mon, 09 Jul 1990 14:59
Date: Mon, 09 Jul 1990 14:59
21 lines
1347 bytes
1347 bytes
I tryed to compile the compress for os/2 and noticed the following trouble :
I have OS/2 1.20 (beta version) and MSC 5.10
installed ok, but the compiler complains the following:
compress.c
compress.c(350) : error C2065: 'SEG_NONSHARED' : undefined
compress.c(368) : error C2065: 'SEG_NONSHARED' : undefined
This piece of code seems to occure in three places in compress.c file:
if ( DosAllocHuge(HIUSHORT(size), LOUSHORT(size), &sel, 0, SEG_NONSHARED) )
The definition SEG_NONSHARED seems to be the trouble because it is not
defined anywhere ! I didnt found it from any of the header files which
are installed with MSC 5.1 (I installed only the OS/2 version).
How should I define SEG_NONSHARED and where it _should_ be defined ?
--
/* Juha Inkari inkari@batgirl.hut.fi */
Re: #define SEG_NONSHARED ?
Author: Kai-Uwe Rommel
Date: Wed, 11 Jul 1990 07:51
Date: Wed, 11 Jul 1990 07:51
11 lines
1145 bytes
1145 bytes
This value is mentioned in the OS/2 docs from MS and defined in the headers which come with the SDK 1.1 and above. The headers from C 5.1 are 1.0 headers and out of date. Perhaps the C 6.0 headers are ok again. I don`t have the headers handy now but can take a look at the docs later which value SEG_NONSHARED has. I thought it is better to use symbolic constants than hardcoded numbers. Probably the value is zero because this case (nonshared segment) is the default case (?). Kai Uwe Rommel Munich rommel@lan.informatik.tu-muenchen.dbp.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads