math/g-bin.c, math/g-prime.c: Fix type incompatibility.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 26 May 2016 08:26:09 +0000 (09:26 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 13 May 2017 15:29:09 +0000 (16:29 +0100)
commit957986f1cd80f328f664a38f1fa09ceece4a915f
treec7c123ac3d3c9cdd48b7a2db195c376d6ba8ce2d
parent4006dacf2ab15afecf7fab2ecdfc21d79a371c41
math/g-bin.c, math/g-prime.c: Fix type incompatibility.

Callers of the abstract group API expect to pass in a pointer-to-
structure.  The binary and prime group implementations expected a
pointer-to-pointer, which looks different.  Change the way these work,
so that the group element is a structure holding a pointer, rather than
just a bare pointer.  This doesn't make any difference on targets with
sane ABIs, but it fixes a potentially nasty problem on weirder
platforms.

Add a macro explaining this change so that users of this unstable
interface can cope with both versions.
math/g-bin.c
math/g-prime.c
math/group-guts.h