gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GnuCOBOL-users] flags in cob_file_key


From: James K. Lowden
Subject: Re: [GnuCOBOL-users] flags in cob_file_key
Date: Thu, 21 Feb 2019 17:42:22 -0500

On Thu, 21 Feb 2019 09:45:58 -0800
Ron Norman <address@hidden> wrote:

> There are places in codegen.c which emit pointers to the cob_file and
> cob_file_key structures.
> Also some code is emited that references those booleans...
...
> codegen.c:              output ("%s%s->tf_duplicates = 0;\n",
> CB_PREFIX_KEYS, f->cname);

Thanks for the explanation, Ron.  It's an unfortunate choice to bind
the runtime so closely with the compiled code.  Long experience the C
runtime library has shown that exposing structures is perilous.  

Still, changes to libcob don't affect applications if they're linked
correctly, by SONAME.  If the next version of libcob is libcob.so.5,
then programs linked to libcob.so.4 are unaffected.  As we're
changing the ABI, that's the conventional solution.  

I realize the situation is different with Windows, but AIUI there is
some kind of versioning for DLLs nowadays, too.  In any event, fixing
the problem on the Linux side leaves the Windows folks no worse off.   

--jkl



reply via email to

[Prev in Thread] Current Thread [Next in Thread]