[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kjs [POSSIBLY UNSAFE]
From: Zack Rusin <zack () kde ! org>
Date: 2003-11-05 16:06:50
[Download RAW message or body]
CVS commit by zrusin:
Compile fixes for kjs when KJS_DEBUG_MEM is on.
M +2 -0 collector.h 1.22
M +1 -1 nodes.cpp 1.164 [POSSIBLY UNSAFE: printf]
M +1 -0 nodes.h 1.86
--- kdelibs/kjs/collector.h #1.21:1.22
@@ -27,4 +27,6 @@
#define KJS_MEM_LIMIT 500000
+#include "global.h"
+
#include <stdio.h> // for size_t
--- kdelibs/kjs/nodes.cpp #1.163:1.164
@@ -147,5 +147,5 @@ void Node::finalCheck()
return;
}
- fprintf( stderr, "Node::finalCheck(): list count : %d\n", (int)s_nodes.size() );
+ fprintf( stderr, "Node::finalCheck(): list count : %d\n", (int)s_nodes->size() );
std::list<Node *>::iterator it = s_nodes->begin();
for ( uint i = 0; it != s_nodes->end() ; ++it, ++i )
--- kdelibs/kjs/nodes.h #1.85:1.86
@@ -30,4 +30,5 @@
#ifndef NDEBUG
#include <list>
+#include <assert.h>
#endif
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic