Re: [Exim] local_scan api version proposal

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Nico Erfurth
Ημερομηνία:  
Προς: Marc MERLIN
Υ/ο: Philip Hazel, Exim-users
Αντικείμενο: 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