Fix DEBUG Mac Build Bustage. Changed memset to nsCRT::memset

git-svn-id: svn://10.0.0.236/trunk@39729 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hangas%netscape.com 1999-07-16 19:11:43 +00:00
parent bd2dc83f16
commit f1ca98769e

View File

@ -18,6 +18,7 @@
#define PL_ARENA_CONST_ALIGN_MASK 7
#include "nslayout.h"
#include "nsDST.h"
#include "nsCRT.h"
/////////////////////////////////////////////////////////////////////////////
// Structure that represents a node in the DST
@ -75,7 +76,7 @@ void
nsDST::NodeArena::FreeNode(void* p)
{
#ifdef NS_DEBUG
memset(p, 0xde, sizeof(Node));
nsCRT::memset(p, 0xde, sizeof(Node));
#endif
// Add this node to the head of the free-list
((Node*)p)->mLeft = mFreeList;
@ -321,7 +322,7 @@ nsDST::Dump(FILE* out) const
int numNodes = 0;
int nodesPerLevel[maxLevels]; // count of the number of nodes at a given level
memset(&nodesPerLevel, 0, sizeof(int) * maxLevels);
nsCRT::memset(&nodesPerLevel, 0, sizeof(int) * maxLevels);
// Walk each node in the tree recording its node level
GatherStatistics(mRoot, 0, numNodes, nodesPerLevel);