-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
COMMENT macro is defined in os2.h, it is danger to use it in ckwin code #382
Comments
Yeah, its been an issue for as long as the OS/2 port has existed. Everywhere os2.h is included, it should be followed by an The issues on OS/2 have so far all just been bugs in Open Watcom; there is a list of the bugs encountered in #369 - not sure at this stage if they're only in Open Watcom 1.9, or if they affect Open Watcom 2.0 as well |
I don't thing it is OW bugs, it is rather ckwin code implementation issues, by example calling conventions problems. Any code which define _System macro must be removed, see example below from ckossh.h
or in p.h
below is proper use of calling conventions in ckotcp.h, there are defined SYSTEM and ENTRY macros and this is used.
|
yeah, the calling convention stuff isn't bugs Open Watcom, but earlier some actual compiler and/or runtime bugs (listed in #369) were encountered which mostly caused crashes in various places, in particular in the NetBIOS code which is a mix of 16bit and 32bit stuff. MichalN has found workarounds for most of them (including #368, he is just tidying up his solution for it at the moment), though aside from #368 I've no idea if they affect Open Watcom 2.0 or not. |
OW 2.0 is backward compatible with OW 1.9 that OW1.9 code should be compiled by OW 2.0, but has fixed some OW 1.9 bugs |
use of COMMENT macro in ckwin code is very danger because it is defined in os2.h header file.
It doesn't report any message if it is used incorrectly with os2.h.
only in code is this macro undefined after including os2.h, but not everywhere.
I think it can be source of some issues for OS/2.
I think it should be renamed to something like CKCOMMENT or replaced by
#if 0
(transparent solution).The text was updated successfully, but these errors were encountered: