Extending the language / C-Extensions |
To compile C-Extensions using complex data types such as DECIMAL, DATETIME/INTERVAL or BYTE/TEXT, you need IBM® Informix® ESQL/C data type structure definitions such as dec_t, dtime_t, intrvl_t, as well as macros like DECLEN() or TU_ENCODE(). These definitions are not required if you use standard C types such as short, int or char[].
The definition of the ESQL/C structures like dec_t are property of IBM. However, a copy of the ESQL/C header files used during the port of Genero are distributed in FGLDIR/include/esql, with agreement from IBM.
Some ESQL/C type definitions are platform specific. For example, the mlong typedef is different on 32-bit and 64-bit machines.