@@ -18,13 +18,13 @@ private
1818 extern (C ) void gc_enable() nothrow ;
1919 extern (C ) void gc_disable() nothrow ;
2020
21- extern (C ) void * gc_malloc( size_t sz, uint ba = 0 , const TypeInfo = null ) pure nothrow ;
22- extern (C ) void * gc_calloc( size_t sz, uint ba = 0 , const TypeInfo = null ) pure nothrow ;
23- extern (C ) BlkInfo gc_qalloc( size_t sz, uint ba = 0 , const TypeInfo = null ) pure nothrow ;
24- extern (C ) void * gc_realloc( void * p, size_t sz, uint ba = 0 , const TypeInfo = null ) pure nothrow ;
21+ extern (C ) void * gc_malloc( size_t sz, uint ba = 0 , const scope TypeInfo = null ) pure nothrow ;
22+ extern (C ) void * gc_calloc( size_t sz, uint ba = 0 , const scope TypeInfo = null ) pure nothrow ;
23+ extern (C ) BlkInfo gc_qalloc( size_t sz, uint ba = 0 , const scope TypeInfo = null ) pure nothrow ;
24+ extern (C ) void * gc_realloc(return scope void * p, size_t sz, uint ba = 0 , const scope TypeInfo = null ) pure nothrow ;
2525 extern (C ) size_t gc_reserve( size_t sz ) nothrow ;
2626
27- extern (C ) void gc_addRange(const void * p, size_t sz, const TypeInfo ti = null ) nothrow @nogc ;
27+ extern (C ) void gc_addRange(const void * p, size_t sz, const scope TypeInfo ti = null ) nothrow @nogc ;
2828 extern (C ) void gc_addRoot(const void * p ) nothrow @nogc ;
2929}
3030
@@ -99,31 +99,31 @@ class ProtoGC : GC
9999 return 0 ;
100100 }
101101
102- void * malloc (size_t size, uint bits, const TypeInfo ti) nothrow
102+ void * malloc (size_t size, uint bits, const scope TypeInfo ti) nothrow
103103 {
104104 .gc_init_nothrow();
105105 return .gc_malloc(size, bits, ti);
106106 }
107107
108- BlkInfo qalloc (size_t size, uint bits, const TypeInfo ti) nothrow
108+ BlkInfo qalloc (size_t size, uint bits, const scope TypeInfo ti) nothrow
109109 {
110110 .gc_init_nothrow();
111111 return .gc_qalloc(size, bits, ti);
112112 }
113113
114- void * calloc (size_t size, uint bits, const TypeInfo ti) nothrow
114+ void * calloc (size_t size, uint bits, const scope TypeInfo ti) nothrow
115115 {
116116 .gc_init_nothrow();
117117 return .gc_calloc(size, bits, ti);
118118 }
119119
120- void * realloc (void * p, size_t size, uint bits, const TypeInfo ti) nothrow
120+ void * realloc (void * p, size_t size, uint bits, const scope TypeInfo ti) nothrow
121121 {
122122 .gc_init_nothrow();
123123 return .gc_realloc(p, size, bits, ti);
124124 }
125125
126- size_t extend (void * p, size_t minsize, size_t maxsize, const TypeInfo ti) nothrow
126+ size_t extend (void * p, size_t minsize, size_t maxsize, const scope TypeInfo ti) nothrow
127127 {
128128 return 0 ;
129129 }
0 commit comments