On Tue, 4 Aug 1998, Candy McCall wrote:
> We call the function sqlexit() from a C-function in 4GL. Is there a way
> to just call that from 4GL or do you still need a C-function. We'd like
> to eliminate all C-functions in our 4GL code so that we can run
> Dynamic-4GL with no C functions.
To the best of my knowledge, no. The underlying sqlexit() function does
not obey I4GL calling conventions, so it must be given a wrapper which
does:
int i4gl_sqlexit(int n)
{
if (n != 0)
fgl_fatal(__FILE__, __LINE__, -1318);
sqlexit();
return 0;
}
That, in turn, has to be built into the runners since the function is not
defined as standard in the D4GL libraries (nor in the I4GL libraries).
I sympathize with the request, but the answer at the moment is that it is
not possible.
Yours,
Jonathan Leffler (jleffler@informix.com) #include <witticism.h>
Guardian of DBD::Informix v0.59 -- http://www.perl.com/CPAN
Informix IDN for D4GL & Linux -- http://www.informix.com/idn