conforming to MSVC++ allocators

This commit is contained in:
beard%netscape.com 2000-04-08 00:48:13 +00:00
Родитель 932870c3c6
Коммит cd69e46bec
2 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -140,6 +140,10 @@ namespace JavaScript {
template<class U> struct rebind { typedef gc_allocator<U> other; };
// raw byte allocator used on some platforms (grrr).
typedef char _Char[1];
static char* _Charalloc(size_type n) { return rebind<_Char>::other::allocate(n); }
static void collect() { GC_gcollect(); }
};
}

Просмотреть файл

@ -140,6 +140,10 @@ namespace JavaScript {
template<class U> struct rebind { typedef gc_allocator<U> other; };
// raw byte allocator used on some platforms (grrr).
typedef char _Char[1];
static char* _Charalloc(size_type n) { return rebind<_Char>::other::allocate(n); }
static void collect() { GC_gcollect(); }
};
}