pdf-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pdf-devel] [flyspray] Modify API of the 64-bit support module


From: GNU PDF Library
Subject: [pdf-devel] [flyspray] Modify API of the 64-bit support module
Date: Wed, 25 Jun 2008 01:47:22 +0200

THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened. Details are below. User who did this - Aleksander Morgado (aleksander)
Attached to Project - GNU PDF Library
Summary - Modify API of the 64-bit support module
Task Type - Sporadic Task
Category - Basic Types Module
Status - NEXT
Assigned To - Operating System - All
Severity - Low
Priority - Low
Reported Version - START
Due in Version - BASE-LAYER-0
Due Date - Undecided
Details - The functions in the 64-bit support module are almost all of them returning 
pdf_status_t. This causes a problem when using the macro-version of the functions (this 
is, when 64-bit numbers are already supported in the OS), as macros don't 
"return" anything.

So, the functions in the 64-bit support module (within pdf-types.h and 
pdf-types.c) should:
1) return (void) instead of (pdf_status_t) 2) add another parameter in the function: pdf_status_t *p_status


So for example:
pdf_status_t
pdf_i64_add(pdf_i64_t *result, pdf_i64_t number1, pdf_i64_t number2);

Should be converted into:
void
pdf_i64_add(pdf_i64_t *result, pdf_i64_t number1, pdf_i64_t number2, 
pdf_status_t *p_status);

And the same for all the other functions... except for pdf_i64_to_i32 probably, 
where it's nice to get just a direct pdf_i32_t returned.


After having changed the functions, the macros should also be updated 
accordingly. All the macros will return PDF_OK in *p_status.


More information can be found at the following URL:
http://www.gnupdf.org/flyspray/index.php?do=details&task_id=53

You are receiving this message because you have requested it from the Flyspray 
bugtracking system.  If you did not expect this message or don't want to 
receive mails in future, you can change your notification settings at the URL 
shown above.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]