~ubuntu-branches/ubuntu/precise/ghc/precise

« back to all changes in this revision

Viewing changes to libraries/integer-gmp/gmp/tarball/patch

  • Committer: Bazaar Package Importer
  • Author(s): Joachim Breitner
  • Date: 2011-01-17 12:49:24 UTC
  • Revision ID: james.westby@ubuntu.com-20110117124924-do1pym1jlf5o636m
Tags: upstream-7.0.1
ImportĀ upstreamĀ versionĀ 7.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
diff -ur before/memory.c after/memory.c
 
2
--- before/memory.c     2007-08-30 19:31:40.000000000 +0100
 
3
+++ after/memory.c      2009-06-21 19:12:39.000000000 +0100
 
4
@@ -24,10 +24,21 @@
 
5
 #include "gmp-impl.h"
 
6
 
 
7
 
 
8
+void * stgAllocForGMP   (size_t size_in_bytes);
 
9
+void * stgReallocForGMP (void *ptr, size_t old_size, size_t new_size);
 
10
+void   stgDeallocForGMP (void *ptr, size_t size);
 
11
+
 
12
+void *  (*__gmp_allocate_func) _PROTO ((size_t)) = stgAllocForGMP;
 
13
+void *  (*__gmp_reallocate_func) _PROTO ((void *, size_t, size_t))
 
14
+     = stgReallocForGMP;
 
15
+void    (*__gmp_free_func) _PROTO ((void *, size_t)) = stgDeallocForGMP;
 
16
+
 
17
+/*
 
18
 void * (*__gmp_allocate_func) _PROTO ((size_t)) = __gmp_default_allocate;
 
19
 void * (*__gmp_reallocate_func) _PROTO ((void *, size_t, size_t))
 
20
      = __gmp_default_reallocate;
 
21
 void   (*__gmp_free_func) _PROTO ((void *, size_t)) = __gmp_default_free;
 
22
+*/
 
23
 
 
24
 
 
25
 /* Default allocation functions.  In case of failure to allocate/reallocate