[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnubol: COBOL and C



>> identification division.
>> function-id. getc is prototype.
>> linkage section.
>> 01 char pic s9(8) comp.
>> 01 file-handle pic s9(8) comp.
>> procedure division using file-handle returning char.
>> end-function.


The function extension is a really excellent idea, but do you need to declare 
the function as a prototype?
The compiler will not check the parameters for  user subprograms anyway!

Now for the declaration of the implementation, the COBOL VMS/Tru64 Unix is 
using the keyword "giving"
instead of "returning".

Bernard Giroud

--
This message was sent through the gnu-cobol mailing list.  To remove yourself
from this mailing list, send a message to majordomo@lusars.net with the
words "unsubscribe gnu-cobol" in the message body.  For more information on
the GNU COBOL project, send mail to gnu-cobol-owner@lusars.net.