Update of /cvsroot/compbench/CompBenchmarks++/System
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv4167
Modified Files:
System.cpp System.h
Log Message:
Changes in packages' handling.
Index: System.cpp
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/System/System.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** System.cpp 3 Jan 2007 22:03:09 -0000 1.15
--- System.cpp 4 Jan 2007 18:53:05 -0000 1.16
***************
*** 108,111 ****
--- 108,112 ----
sprintf(c, "%d", (int) getpid());
tmp=c;
+ packageList();
return(store("lockfile.pid",
tmp));
***************
*** 177,183 ****
}
! char *CBMSystem::packageGet(int index)
{
! return((char*) packages[index].c_str());
}
--- 178,184 ----
}
! CBMPackage *CBMSystem::Package(int index)
{
! return(Package(packages[index]));
}
Index: System.h
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/System/System.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** System.h 3 Jan 2007 22:03:09 -0000 1.15
--- System.h 4 Jan 2007 18:53:05 -0000 1.16
***************
*** 128,132 ****
virtual int packageNumber(void);
! virtual char *packageGet(int index);
virtual class CBMPackage *Package(std::string pid);
--- 128,132 ----
virtual int packageNumber(void);
! virtual class CBMPackage *Package(int index);
virtual class CBMPackage *Package(std::string pid);
|