Article View: comp.os.os2.programmer
Article #1083Re: Using Toolkit with GCC - Any problems?
From: Jonathan Sykes
Date: Tue, 18 Aug 1992 15:13
Date: Tue, 18 Aug 1992 15:13
27 lines
1828 bytes
1828 bytes
Can't you avoid adding the 'asm ("x")'s by including os.h as follows:
extern "C" {
#include <os2.h>
}
I admit I haven't built an exec with the changes in place yet but it might be
an easier way. I also found I had to remove the _Seg16, _Far etc directives
just to get GCC/2 to parse the headers - I plan on using the 16bit calls with
the 16_to_32 package on hobbes so these edit's shouldn't have any affect
other than keeping the compiler happy.
I will be uploading an OS/2 library dumper at the end of this week - it's my
first step towards writing a Public Domain library program. If anybody knows
of a DOS PD Lib program with source that I can leverage off please let me
know. Right now I have limited information on the hashing algorithm used in
the library dictionary, once I figure that out a LIB.EXE will be on hobbes.
Anyone at MS or IBM care to volunteer the algorithm used with a C-code
example (I already have a pseudo code example which gives me weird values).
---
__o
\<,
_________()/ ()_______________________________________________________________
Jon Sykes jsykes@dadd.ti.com
Design Automation Div. (214) 997-2916
Texas Instruments Inc. Dallas, Tx.
Technical Details
Message-ID:
<1992Aug18.151342.25079@csc.ti.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!fstop.csc.ti.com!iccl!jsykesReferences:
<9208181323.AA09738@data.src.honeywell.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!fstop.csc.ti.com!iccl!jsykes From: jsykes@dadd.ti.com (Jonathan Sykes) Subject: Re: Using Toolkit with GCC - Any problems? Message-ID: <1992Aug18.151342.25079@csc.ti.com> Sender: usenet@csc.ti.com Nntp-Posting-Host: iccl.dadd.ti.com Reply-To: jsykes@dadd.ti.com Organization: Texas Instruments Inc References: <9208181323.AA09738@data.src.honeywell.com> Date: Tue, 18 Aug 1992 15:13:42 GMT Lines: 28