Re: [Exim] local_scan api version proposal

Etusivu
Poista viesti
Vastaa
Lähettäjä: Nico Erfurth
Päiväys:  
Vastaanottaja: Marc MERLIN
Kopio: Philip Hazel, Exim-users
Aihe: Re: [Exim] local_scan api version proposal
On Sat, 15 Mar 2003, Marc MERLIN wrote:

> x -> major number, only gets increased if API is changed in a non
>      backwards compatible way
> y -> minor number, gets increased every time you add features of the API

>
> +#define LOCAL_SCAN_ABI_VERSION 1.0


May I suggest to change to for more easier checking?

#define LOCAL_SCAN_ABI_VERSION_MAJOR 1
#define LOCAL_SCAN_ABI_VERSION_MINOR 0
#define LOCAL_SCAN_ABI_VERSION \
LOCAL_SCAN_ABI_VERSION_MAJOR.LOCAL_SCAN_ABI_VERSION_MINOR

This allows easy compiletime-checking to make a patch work with different
ABIs.

Nico