[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [open-cobol-list] found a bug in the open-cobol runtime-system (or c
Re: [open-cobol-list] found a bug in the open-cobol runtime-system (or compiler as you like)
Wed Apr 3 19:45:11 2002
Wanderlust/2.6.0 (Twist And Shout) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (Unebigoryōmae) APEL/10.3 Emacs/21.2 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI)
At Wed, 3 Apr 2002 16:42:41 +0200,
> C) The solution
> I once call cob_init_math() by my own from the c code.
> If the compiler would do this for me, then the run-time
> system would require an application wide register, that
> allows to initialze the registers once for any other
> subprograms, or you use a hidden initialize register
> inside libcob.
Right. I'll do this and throw a warning if libcob hasn't
There is a function called cob_init, which is expected to
be called at the beginning of the program. You'll want to
call it in your C code before calling your COBOL modules.