|
From: | Aleksander Morgado |
Subject: | Re: [pdf-devel] pdf-i64 macros |
Date: | Wed, 25 Jun 2008 00:16:04 +0200 |
User-agent: | Thunderbird 2.0.0.14 (Macintosh/20080421) |
* pdf_i64_cmp macro should not really call return. Please check my proposal for that function.That macro could communicate the result of the comparison by using an extra argument: pdf_i64_cmp(number1, number2, result) Do you agree?
Well, this macro is quite simpler and doesn't need any API change: #define pdf_i64_cmp(number_1, number_2) \ ((number_1 > number_2) ? 1 : ((number_1 < number_2) ? -1 : 0))
[Prev in Thread] | Current Thread | [Next in Thread] |