home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / os2 / programm / 4302 < prev    next >
Encoding:
Text File  |  1992-08-18  |  1.7 KB  |  42 lines

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