[OTR-dev] 4.0.0-rc3 ready to roll. Please try it out!

Thibaut VARENE varenet at debian.org
Tue Aug 28 07:34:11 EDT 2012


On Tue, Aug 28, 2012 at 2:24 AM, Ian Goldberg <ian at cypherpunks.ca> wrote:

> Indeed, otrl_init(ver_major, ver_minor, ver_sub) calls exit(1) if the
> passed version numbers are incompatible with the library's actual
> version.
>
> Seeing as how it's intended to be called from this macro:
>
> #define OTRL_INIT do { \
>         otrl_init(OTRL_VERSION_MAJOR, OTRL_VERSION_MINOR, OTRL_VERSION_SUB); \
>     } while(0)
>
> I suppose we could change otrl_init to return an error code, and change
> the *macro* to call exit() upon otrl_init returning an error.  Although
> technically the ABI would change, the API wouldn't.

As long as the macro itself isn't used in the library, this should indeed work.

> I will consider this for inclusion before release.
>
> Thanks for the note!

You're welcome!

-- 
Thibaut VARENE
http://www.parisc-linux.org/~varenet/



More information about the OTR-dev mailing list