Public bug reported:

In one of our projects we use Mpz_Init_Set_Str(). In the bindings of
previous versions of libgmpada this was defined as follows:

   procedure Mpz_Init_Set_Str (Result :    out int;
                               Rop    :    out Mpz_T;
                               Str    : in     char_array;
                               Base   : in     int);
   pragma Import (C, Mpz_Init_Set_Str, "mpz_init_set_str",
                  "__gmpz_init_set_str");
   pragma Import_Valued_Procedure (Mpz_Init_Set_Str);

However, in version 1.6 of the bindings it was changed to a function as
follows (similar for other uses of Import_Valued_Procedure):

   function Mpz_Init_Set_Str (Rop  :    out Mpz_T;
                              Str  : in     char_array;
                              Base : in     int)
                             return int;
   pragma Import (C, Mpz_Init_Set_Str, "mpz_init_set_str",
                  "__gmpz_init_set_str");

This means that calling Mpz_Init_Set_Str() is not possible in a
backwards compatible way. Which is an issue as our project is also used
on older Ubuntu/Debian releases that don't ship 1.6 yet.

Would it be possible to re-add the procedure to the API?

** Affects: libgmpada (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2102227

Title:
  API changes in 1.6 are not backwards compatible

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libgmpada/+bug/2102227/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to