[Rpm-maint] recognizing epoch, take two

2011-11-16 Thread Ales Kozumplik
I use long int type to pass the epoch around. This type can both cover the entire range of RPM_INT32_TYPE (the type of epoch value) and -1 for the 'any epoch' semantics. Compared to the previous version, it saves us one malloc and is not longer. ___

Re: [Rpm-maint] recognizing epoch, take two

2011-11-16 Thread Michael Schroeder
On Wed, Nov 16, 2011 at 11:17:23AM +0100, Ales Kozumplik wrote: I use long int type to pass the epoch around. This type can both cover the entire range of RPM_INT32_TYPE (the type of epoch value) and -1 for the 'any epoch' semantics. Compared to the previous version, it saves us one malloc and

Re: [Rpm-maint] recognizing epoch, take two

2011-11-16 Thread Ales Kozumplik
On 11/16/2011 11:20 AM, Michael Schroeder wrote: On Wed, Nov 16, 2011 at 11:17:23AM +0100, Ales Kozumplik wrote: I use long int type to pass the epoch around. This type can both cover the entire range of RPM_INT32_TYPE (the type of epoch value) and -1 for the 'any epoch' semantics. Compared to