home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!Germany.EU.net!uniol!tpki.toppoint.de!feki!marten
- From: marten@feki.toppoint.de (Marten Feldtmann)
- Newsgroups: comp.os.os2.programmer
- Subject: Re: Q: Using Smalltalk/V-PM and IBM C Set/2
- Distribution: world
- Message-ID: <712307536snx@feki.toppoint.de>
- References: <19920727.075255.593@almaden.ibm.com>
- Date: Tue, 28 Jul 92 07:12:16 GMT
- Organization: Private Site
- Lines: 29
-
- dmm@vnet.ibm.com writes in article <19920727.075255.593@almaden.ibm.com>:
-
- > In <712014481snx@feki.toppoint.de> Marten Feldtmann writes:
- > > I've some problems using IBM C Set/2 and Smalltalk-V/PM together:
- > > Code from 'C'
- > > short _Far16 _Pascal TESTROUTINE( recvr)
- > > struct object * _Far16 recvr;
- > > { return recvr->header.ObjectSize;
- > > }
- >
- > That _Far16 recvr should probably be _Seg16 recvr . And just for
- > good measure, try writing your prototype as ANSI-style, rather than K&R-
- > style:
- >
- > short _Far16 _Pascal TESTROUTINE( struct object * _Seg16 recvr ) { }
- >
-
- Yes, that's it and the Smalltalk code should look like:
-
- <api: 'TESTROUTINE' self short >
- ^^^^
-
- MF
-
-
- --
- Marten Feldtmann E-Mail: marten@tpki.toppoint.de
- 2300 Kiel 14, Kieler Str. 29, Tel.: 0431-731916, FAX: 0431-737677
-
-