[esnacc-bugs] [esnacc-dev] ABI-change proposal

Sagara Wickramasekara sagaraw at gmail.com
Tue Nov 22 01:11:26 UTC 2016


Given we're making some other ABI changes, did you want to put this into
1.9 as well?

On Thu, Nov 3, 2016 at 4:01 PM, Aaron Conole <aconole at bytheb.org> wrote:

> So, for 1.10, I want to propose making a change to the esnacc lists ABI
> for the C library.
>
> Currently, the AsnListNode structure uses a data field as an extension
> point of the structure.  This is used throughout the code as follows:
>
>   foo = (Foo **)AsnListAppend();
>   *foo = Malloc(sizeof Foo)
>   Foo *RealFoo = *foo;
>   ...
>
> My guess is that the original authors ran into alignment issues, and
> rather than figure out how to tell each compiler that the structure
> needed to be aligned, they hacked it up and converted over to using
> pointer-to-pointer and avoid the alignment problems completely.
>
> Since this makes for unintuitive code, I think it best to make this ABI
> incompatible change in the 1.10 release (so, basically, let folks know
> that it will be deprecated, and make 1.10 a new ABI).
>
> Any opposition?  Any support?  Thoughts?
>
> -Aaron
> _______________________________________________
> dev mailing list
> dev at lists.esnacc.org
> http://mail.esnacc.org/mailman/listinfo/dev
>



-- 
-Sagara
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.esnacc.org/pipermail/bugs/attachments/20161121/aa83066f/attachment.html>


More information about the bugs mailing list