[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pdf-devel] pdf-i64 macros
From: |
jemarch |
Subject: |
Re: [pdf-devel] pdf-i64 macros |
Date: |
Tue, 24 Jun 2008 23:52:13 +0200 |
User-agent: |
Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
Yep, due to the error report they are not fully compatible (the macros
don't return a pdf_status_t as the functions do).
What about forgetting the errors in the 64bit module and set all
functions returning void?
Errors can happens in the pdf-64t code, so we definitely dont want to
ignore the error conditions.
Maybe we could use one of the values of the 64bit integers (such as
the larger one) and to recognize an error condition when that special
value is found in a result.
So:
pdf_i64_add(&bignum1, bignum2, bignum3);
if (pdf_i64_invalid_p(bignum1))
{
/* An error occurred */
}
Aleks, would the time module be happy with 2^63 different values in
unsigned integer variables?
- [pdf-devel] pdf-i64 macros, Daniel Vidal, 2008/06/24
- Re: [pdf-devel] pdf-i64 macros, Aleksander Morgado, 2008/06/24
- Re: [pdf-devel] pdf-i64 macros,
jemarch <=
- Re: [pdf-devel] pdf-i64 macros, Aleksander Morgado, 2008/06/24
- Re: [pdf-devel] pdf-i64 macros, jemarch, 2008/06/24
- Re: [pdf-devel] pdf-i64 macros, Aleksander Morgado, 2008/06/24
- Re: [pdf-devel] pdf-i64 macros, Daniel Vidal, 2008/06/25
- Re: [pdf-devel] pdf-i64 macros, Aleksander Morgado, 2008/06/25
Re: [pdf-devel] pdf-i64 macros, Aleksander Morgado, 2008/06/24