On 4/10/2012 12:44 PM, Phil Smith wrote:
Steve Comstock wrote:
re whether we'll expect customers to be running Enterprise PL/I:
And the answer is?
Oops...meant to answer this. Um...I guess "whatever's current" was my
assumption. Are the older compilers supported?
Some are. But there are, apparently, many customers running with
unsupported compilers. Some of the posts here have been pretty
incredibly about how old the software is.
But, we'll assume current Enterprise PL/I, then. Thanks.
Re our C prototype:
Do you really have the ellipsis? If so, my reading
of the docs is that all arguments after int *inputLength,
will have to be of that type (that is, all pointers to
integer values) and not pointer to char followed by pointer
to int; of course, you can play games. But I think that
would be a problem.
Generally, the above C function will expect, when it is
called, to have R1 set up this way:
(R1) -> a(magic)
a(inputBuffer)
a(inputLength)
a(outputBuffer)
a(outputLength)
That isn't the behavior we've observed.
Ah, that's why I asked about any pragma's you may have
and what compiler options you are setting in C
Generally, what I've show is true; however, in some cases
the actual first element in the list is the address of
where the function value will be returned. The docs are
a little ambiguous, so I'm trying to nail down the details.
So how, in your C code, do you currently check how
many arguments have been received?
This won't be hard, really, :-) , but we need to pay
attention to detail.
High-bit.
But I would like to see the code you use to test the high bit, please.
Nothing proprietary, just informative
What's weird to me is that PL/I and C share parts of
the same compiler logic! Ah well.
Indeed.
--
Kind regards,
-Steve Comstock
The Trainer's Friend, Inc.
303-355-2752
http://www.trainersfriend.com
* To get a good Return on your Investment, first make an investment!
+ Training your people is an excellent investment
* Try our tool for calculating your Return On Investment
for training dollars at
http://www.trainersfriend.com/ROI/roi.html
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN