fgl_init(), fgl_sigint() and other fgl functions
Posted in 1998
Hi Family. A few months ago, y'all referred me to a package called DB-Power for printing graphics in a report. Now that I have a spec of the desired output I can pursue the issue again. (Less tasty than undomesticated semi-aquatic avians, I suppose. ;-) DB-Power demands to be the main program. If I were writing in C this would be OK. However, the easiest way to preserve the user interface of the program would be to maintain the all of the 4GL code that presents a form and accepts a query (CONSTRUCT). I am certain I cannot blindly call 4GL functions [that present forms] from a C function without some preparation. I compiled a 4gl MAIN module to produce C code (c4gl -e) and note that the MAIN() starts with a few preliminary function calls: I am including the begining code, what seems to have been generated up though the first database call. Can some guru out there tell me what these functions do, or mor important, can I do without them? I am editing out the #line directives and beautifying the generated C code a bit for readability. Im mose interested in the need for the functions fgl_init(), fgl_siginit() [which I can well conjecture and will probably wish to omit] and ixpshhwm(). Thanks. ===================================================================== main(fgl_argc, fgl_argv) int fgl_argc; char *fgl_argv[]; { long i; fgl_init(fgl_argc, fgl_argv); fgl_siginit(); ixpshhwm(); _anyerr = 0; /*$ database "garpacv2"; */ { _iqdbase("garpacv2", 0); } status = sqlca.sqlcode; if (status < 0) { fgl_fatal(fgl_modname, 19, status); } _anyerr = 0; { _efidefer(); } status = sqlca.sqlcode; if (status < 0) { fgl_elog(fgl_modname, 21, status); error_handler(0); } ===================================================================== -- -- Jake (Retrospectively realizes there is no future in hindsight) +------------------------------------------------------------+ | The expedient performance of a task with excessive concern | | regarding its duration-to-completion engenders a virtual | | certainty of diminished benefit therefrom. | | -- Benjamin Franklin (but he said it in 3 words) | +------------------------------------------------------------+