[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnubol: COBOL and C
- To: gnu-cobol <gnu-cobol@lusars.net>
- Subject: Re: gnubol: COBOL and C
- From: Bernard Giroud <bernard.giroud@creditlyonnais.fr>
- Date: Wed, 01 Dec 1999 10:01:19 +0100
- Alternate-Recipient: Allowed
- Conversion: Allowed
- Delivered-To: gnu-cobol-outgoing@wallace.lusars.net
- Disclose-Recipients: Prohibited
- Original-Encoded-Information-Types: IA5-Text
- Reply-To: gnu-cobol@lusars.net
- Sender: owner-gnu-cobol@wallace.lusars.net
- X400-Content-Type: P2-1988 ( 22 )
- X400-Mts-Identifier: [/c=FR/admd=ATLAS/prmd=CL/; 065BB3844E3DF072-MTAFEDCL]
- X400-Originator: bernard.giroud@creditlyonnais.fr
- X400-Received: by mta MTAFEDCL in /c=FR/admd=ATLAS/prmd=CL/; Relayed; Wed,01 Dec 1999 10:01:19 +0100
- X400-Received: by /c=FR/admd=ATLAS/prmd=CL/; Relayed; Wed,01 Dec 1999 10:01:19 +0100
- X400-Recipients: non-disclosure;
>> 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.