media-fonts/terminusmod: placate repoman
[sgilles-overlay.git] / sci-mathematics / pari / files / pari-2.5.0-mp.c.patch
blob0bcfffc08176caea4ecba119c7d82fb6902849ea
1 Index: src/kernel/gmp/mp.c
2 ===================================================================
3 --- src/kernel/gmp/mp.c (revision 13151)
4 +++ src/kernel/gmp/mp.c (working copy)
5 @@ -45,18 +45,8 @@
6 /*We need PARI invmod renamed to invmod_pari*/
7 #define INVMOD_PARI
9 -static void *gmp_realloc(void *ptr, size_t old_size, size_t new_size) {
10 - (void)old_size; return (void *) pari_realloc(ptr,new_size);
13 -static void gmp_free(void *ptr, size_t old_size){
14 - (void)old_size; pari_free(ptr);
17 int pari_kernel_init(void)
19 - /* Use pari_malloc instead of malloc */
20 - mp_set_memory_functions((void *(*)(size_t)) pari_malloc, gmp_realloc, gmp_free);
21 return 0;