home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / os2 / programm / 3840 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  1.2 KB

  1. Path: sparky!uunet!mcsun!Germany.EU.net!uniol!tpki.toppoint.de!feki!marten
  2. From: marten@feki.toppoint.de (Marten Feldtmann)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Re: Q: Using Smalltalk/V-PM and IBM C Set/2
  5. Distribution: world
  6. Message-ID: <712307536snx@feki.toppoint.de>
  7. References: <19920727.075255.593@almaden.ibm.com>
  8. Date: Tue, 28 Jul 92 07:12:16 GMT
  9. Organization: Private Site
  10. Lines: 29
  11.  
  12. dmm@vnet.ibm.com writes in article <19920727.075255.593@almaden.ibm.com>:
  13.  
  14. > In <712014481snx@feki.toppoint.de> Marten Feldtmann writes:
  15. > > I've some problems using IBM C Set/2 and Smalltalk-V/PM together:
  16. > >   Code from 'C'
  17. > > short _Far16 _Pascal TESTROUTINE( recvr)
  18. > > struct object * _Far16 recvr;
  19. > > {   return recvr->header.ObjectSize;
  20. > > }
  21. > That  _Far16 recvr  should probably be  _Seg16 recvr .  And just for
  22. > good measure, try writing your prototype as ANSI-style, rather than K&R-
  23. > style:
  24. >   short _Far16 _Pascal TESTROUTINE( struct object * _Seg16 recvr ) { }
  25.  
  26.  Yes, that's it and the Smalltalk code should look like:
  27.  
  28.  <api: 'TESTROUTINE' self short >
  29.                      ^^^^
  30.  
  31.  MF
  32.  
  33.  
  34. --
  35. Marten Feldtmann                         E-Mail: marten@tpki.toppoint.de
  36. 2300 Kiel 14,    Kieler Str. 29,   Tel.: 0431-731916,   FAX: 0431-737677
  37.  
  38.