changeset 1134:80c1d74f2c7f draft

change the scope of id_count to member variables
author kazz <kazz@cr.ie.u-ryukyu.ac.jp>
date Thu, 17 Feb 2011 09:13:27 +0900
parents bb17a03bab60
children 8142e652ea4c
files Renderer/Engine/Makefile.def Renderer/Engine/TextureHash.cc Renderer/Engine/TextureHash.h TaskManager/Makefile.def
diffstat 4 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Renderer/Engine/Makefile.def	Wed Feb 16 02:08:17 2011 +0900
+++ b/Renderer/Engine/Makefile.def	Thu Feb 17 09:13:27 2011 +0900
@@ -5,7 +5,7 @@
 ABIBIT = 64 
 ABI = -m$(ABIBIT)
 CC      = g++
-OPT	=  -O9 
+OPT	=  -g 
 CFLAGS  = -Wall $(ABI) $(OPT)  #  -DDEBUG
 
 INCLUDE = -I$(CERIUM)/include/TaskManager -I.
--- a/Renderer/Engine/TextureHash.cc	Wed Feb 16 02:08:17 2011 +0900
+++ b/Renderer/Engine/TextureHash.cc	Thu Feb 17 09:13:27 2011 +0900
@@ -2,12 +2,10 @@
 #include <stdlib.h>
 #include "TextureHash.h"
 
-static int id_count;
-
 TextureHash::TextureHash(void)
 {
+	id_count = 0;
     int size = sizeof(hashtable)*TABLE_SIZE;
-
 #if defined(__SPU__) || ! defined(HAS_POSIX_MEMALIGN)
         table =  (hashtable*)malloc(size);
 #else
--- a/Renderer/Engine/TextureHash.h	Wed Feb 16 02:08:17 2011 +0900
+++ b/Renderer/Engine/TextureHash.h	Thu Feb 17 09:13:27 2011 +0900
@@ -10,6 +10,7 @@
 
 class TextureHash {
 public:
+	int id_count;
     hashtable *table;
 
     TextureHash(void);
--- a/TaskManager/Makefile.def	Wed Feb 16 02:08:17 2011 +0900
+++ b/TaskManager/Makefile.def	Thu Feb 17 09:13:27 2011 +0900
@@ -29,7 +29,7 @@
 
 ABIBIT = 64
 
-OPT = -O9  -DMAIL_QUEUE
+OPT = -g  -DMAIL_QUEUE
 # -DEARLY_TOUCH
 # -g -DTASK_LIST_MAIL -O9