× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 6/28/2013 10:38 AM, Rory Hewitt wrote:
Booth,

I use a standard where every program has a named constant (defined in the
module, not in a copybook at the very top of the D-specs) called
ThisProgram, e.g.:

D ThisProgram C 'CVTSPLFR'

and the standard for the PR is always as follows:

D main PR Extpgm(ThisProgram)

Rory, how do you call your programs from RPG? Maybe you never do call your *PGMs from RPG, but I think that Booth does, so that wouldn't be good advice for Booth, or for anyone similar who is reading this thread later.

I've seen this standard used elsewhere, with the prototype and PI being called "main", and it never made sense to me because it forced callers to define their own prototype.

Using this scheme brings RPG a lack of function that C has ... in C, you _can't_ associate a program prototype with the main() function.


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-2024 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.