if (idx >= v##Capacity) \
{ \
uint32_t ncap = v##Capacity + 64; \
- typeof(v##Array) nbuf = (typeof(v##Array)) kalloc(ncap * sizeof(o)); \
+ typeof(v##Array) nbuf = (typeof(v##Array)) kalloc_container(ncap * sizeof(o)); \
if (!nbuf) ok = false; \
if (v##Array) \
{ \
OSSet * newSet;
OSObject * o;
OSSymbol * sym;
+ OSString * str;
size_t bufferPos;
const uint32_t * next;
else
{
sym = OSDynamicCast(OSSymbol, o);
+ if (!sym && (str = OSDynamicCast(OSString, o)))
+ {
+ sym = (OSSymbol *) OSSymbol::withString(str);
+ o->release();
+ o = 0;
+ }
ok = (sym != 0);
}
}