Progress.

git-svn-id: svn://10.0.0.236/trunk@1189 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gagan
1998-05-06 20:29:20 +00:00
parent d67c10164b
commit b949d65ee3
12 changed files with 150 additions and 55 deletions

View File

@@ -16,9 +16,13 @@
* Reserved.
*/
#include <xp_core.h>
#include <xp_str.h>
#include "nsCacheModule.h"
#include "nsCacheTrace.h"
/*
* nsCacheModule
*
@@ -55,10 +59,12 @@ nsCacheModule::~nsCacheModule()
const char* nsCacheModule::Trace() const
{
char linebuffer[128];
char* total = 0;
char* total;
sprintf(linebuffer, "nsCacheModule: Objects = %d\n", Entries());
APPEND(linebuffer);
total = new char[strlen(linebuffer) + 1];
strcpy(total, linebuffer);
return total;
}