----- Original Message -----
> From: Phil Smith <[email protected]>
> To: [email protected]
> Cc: 
> Sent: Tuesday, April 10, 2012 3:31 PM
> Subject: Re: PL/I with variable PLISTs (was: LE C calling HLASM)
> 
> Bernd Oppolzer wrote:
>> I don't know if it helps you, but using C I would code the two calls 
> this way:
> 
>> rc = THEFUNCTION (&magic, inputbuffer,&inputlength, NULL, NULL);
> 
> Exactly backwards-the idea here is to NOT be obscure, but to have a nice, 
> flexible, intuitive API. Having to specify null parameters or to use a macro 
> for 
> things is what we *don't* want to do.

Haha, I can agree with that!

Funny thing with Enterprise COBOL...  It "properly" sets the high-order bit on 
the last parm, but supplies no way to interrogate it!  So if "THEFUNCTION" was 
written in COBOL then you have to invoke it thusly:

CALL 'THEFUNCTION' USING MAGIC, INPUT-BUFFER, INPUT-LENGTH, OMITTED, OMITTED
RETURNING RC.

(The OMITTED keyword simply passes an address of NULL.)

Oy!

Frank

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to