Re: flags in cob_file_key

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

 



On Thu, 21 Feb 2019 09:45:58 -0800
Ron Norman <rjn@xxxxxxxxxxxx> 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




[Index of Archives]     [Gcc Help]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Info]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux