Dave,

The example I posted addressed only the OP's question about how
syntgactically to construct a multiple-entry PL/I procedure.

Your C counter-example is comprised of many C functions, as many as
there are entries.

PL/I differs from C in making much that C embeds implicitly in code
explicit in descriptors.  The example I cited would when fleshed out
contain a declaration for control block of such forms as form

declare 1 stack based(skp),  /* stack block, one per stack */
  2 eye static character (4),  /* eyecatcher,  'STAK' */
  2 szp pointer,  /* for serialization */
  2 sbp pointer,  /* -> stack base  */
  2 cbp pointer,  /* -> chaining-block pool */
  2 cpa signed binary fixed(31,0),  /* cb primary a/q */
  2 csa signed binary fixed(31,0),  /* cb secondary a/q */
  2 cec signed binary fixed(31,0),  /* element count, current */
  2 cex signed binary fixed(31,0),  /* element count, maximal */
  2 . . . ;

declare 1 cb based,  /* chaining block, one per element */
  2 fcp pointer,   /* forward chaining */
  2 elp pointer ;  /* -><element>' */

En passant, I mentioned that the C notion of a package was encompassed
in this construct; but the example the OP provided did not suggest
that he was ready for m,ore complex notions; and I therefore limited
myself to exhibiting the necessary syntax.

If you have further questions, there are other, better fora for them.
Or again, I shouild be happy to try to answer them directly.

John Gilmore, Ashland, MA 01721 - USA

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to