On 2018-01-31 12:14 PM, Tyler, Matt wrote:
We were told that MCH3601 was not as reliable as using CEETSTA API
... I think MCH3601 works well if you document that you never intend to have *NULL as a valid value passed to a param.

For a bound call, it's not safe to rely on MCH3601 to detect unpassed parameters. If there happens to be a pointer on the parameter stack from some previous call, your procedure wouldn't get an error if it tried to access the unpassed parameter. Testing %addr wouldn't be reliable either.

I think it's ok for a program call because (I assume, but don't know for sure), that the ILE CL program-entry-procedure initializes all the parameter pointers to either null or the address of the passed parameter before it calls the procedure.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.