Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #237 from alexrp/master
Browse files Browse the repository at this point in the history
GC.reserve() can't be pure yet.
  • Loading branch information
schveiguy committed Jun 2, 2012
2 parents 6cb7ae4 + 59c1ace commit 2b5d7ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/memory.d
Expand Up @@ -35,7 +35,7 @@ private
extern (C) BlkInfo_ gc_qalloc( size_t sz, uint ba = 0 ) pure nothrow;
extern (C) void* gc_realloc( void* p, size_t sz, uint ba = 0 ) pure nothrow;
extern (C) size_t gc_extend( void* p, size_t mx, size_t sz ) pure nothrow;
extern (C) size_t gc_reserve( size_t sz ) pure nothrow;
extern (C) size_t gc_reserve( size_t sz ) nothrow;
extern (C) void gc_free( void* p ) pure nothrow;

extern (C) void* gc_addrOf( void* p ) pure nothrow;
Expand Down Expand Up @@ -370,7 +370,7 @@ struct GC
* Returns:
* The actual number of bytes reserved or zero on error.
*/
static size_t reserve( size_t sz ) pure nothrow
static size_t reserve( size_t sz ) nothrow /* FIXME pure */
{
return gc_reserve( sz );
}
Expand Down

0 comments on commit 2b5d7ff

Please sign in to comment.