[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
From: |
Keisuke Nishida |
Subject: |
Re: [open-cobol-list] found a bug in the open-cobol runtime-system (or compiler as you like) |
Date: |
Wed Apr 3 19:45:11 2002 |
User-agent: |
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,
address@hidden wrote:
>
> 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
been initialized.
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.
Regards,
Keisuke Nishida