|
Referring to the C/C++ Compiler Reference I see that the documentation
for #pragma argument says:
nowiden Specifies that the arguments are not widened before they
are
passed or received.
Although this implies that it applies only to arguments and not return
values I wonder whether that's true because there seems little point
If that's true then because RPG's default behaviour is to presume no
widening then I should be able to specify no widening in the C
This supports my presumption that C always widens the return value so
I wonder what happens if I remove #pragma nowiden from the C function
and tell RPG that *CNOWIDEN is actually in effect. I make those
changes and now when I run the program I see compileFlags contains
X'75'. Curiouser and curiouser.
As an Amazon Associate we earn from qualifying purchases.
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.