void nsTagStack::Push(eHTMLTags aTag) { if(mCount>=mCapacity) { #ifndef NS_DEBUG eHTMLTags* tmp=new eHTMLTags[2*mCapacity]; nsCRT::zero(tmp,2*mCapacity*sizeof(eHTMLTag_html)); nsCRT::memcpy(tmp,mTags,mCapacity*sizeof(eHTMLTag_html)); delete mTags; mTags=tmp; #else NS_PRECONDITION(mCount<eStackSize,"TagStack Overflow: DEBUG VERSION!"); #endif
virtual void Push(PRUnichar* aTag){ mTags.Push(aTag);
void nsTagStack::Push(eHTMLTags aTag) {  if(mCount>=mCapacity) {#ifndef NS_DEBUG    eHTMLTags* tmp=new eHTMLTags[2*mCapacity];    nsCRT::zero(tmp,2*mCapacity*sizeof(eHTMLTag_html));    nsCRT::memcpy(tmp,mTags,mCapacity*sizeof(eHTMLTag_html));    delete mTags;    mTags=tmp;#else    NS_PRECONDITION(mCount<eStackSize,"TagStack Overflow: DEBUG VERSION!");#endif  }  mTags[mCount++]=aTag;}