Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Jonathan Leffler — — source: Informix-list mailing list archive (1991-1998)
>From: edwinb@panix.com (Edwin Babadaglian)
>Subject: Passing arrays between 4GL and C
>Date: 5 Aug 1994 13:09:55 -0400
>X-Informix-List-Id: <news.8019>
>
>I am forwarding this question for a vendor who has developed C routines
>with which he wants to build a custom runner. These routines apparently
>need to receive and send arrays and he wants to know how to handle that.
You cannot pass arrays between functions in I4GL. Period.
You cannot pass arrays into C functions called from I4GL.
You cannot pass arrays from C functions to the calling I4GL code.
You cannot define arrays in C code which are referenced in I4GL.
(Actually, if you're really nifty with your understanding of globals files,
you can, but it isn't recommended if you have to ask questions about it).
You can define global arrays in I4GL which can be referenced from C -- you
just have to be very careful to get the C definitions correct.
Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.