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 #750 from rainers/cleanup_adi
Browse files Browse the repository at this point in the history
remove unused forward declarations to gc_*
  • Loading branch information
dnadlinger committed Mar 22, 2014
2 parents 642f95e + b816cdb commit 1d1a599
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions src/rt/adi.d
Expand Up @@ -22,19 +22,6 @@ private
import core.stdc.stdlib;
import core.memory;
import rt.util.utf;

enum BlkAttr : uint
{
FINALIZE = 0b0000_0001,
NO_SCAN = 0b0000_0010,
NO_MOVE = 0b0000_0100,
APPENDABLE = 0b0000_1000,
ALL_BITS = 0b1111_1111
}

extern (C) void* gc_malloc( size_t sz, uint ba = 0 );
extern (C) void* gc_calloc( size_t sz, uint ba = 0 );
extern (C) void gc_free( void* p );
}


Expand Down Expand Up @@ -254,7 +241,7 @@ body
//version (Windows)
tmp = cast(byte*) alloca(szelem);
//else
//tmp = gc_malloc(szelem);
//tmp = GC.malloc(szelem);
}

for (; lo < hi; lo += szelem, hi -= szelem)
Expand All @@ -272,7 +259,7 @@ body
//if (szelem > 16)
// BUG: bad code is generate for delete pointer, tries
// to call delclass.
//gc_free(tmp);
//GC.free(tmp);
}
}
return a;
Expand Down

0 comments on commit 1d1a599

Please sign in to comment.