Backed out time()

git-svn-id: svn://10.0.0.236/trunk@74229 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rogerl%netscape.com
2000-07-14 01:46:14 +00:00
parent 30fe01caa1
commit 3b8f784bce
2 changed files with 6 additions and 2 deletions

View File

@@ -171,6 +171,7 @@ static JSValue load(Context *cx, const JSValues &argv)
return result;
}
#if 0 // need a XP version of this, rip off from Monkey?
#include <sys/timeb.h>
static JSValue time(Context *cx, const JSValues &argv)
{
@@ -179,6 +180,7 @@ static JSValue time(Context *cx, const JSValues &argv)
return JSValue((double)timebuffer.time * 1000 + timebuffer.millitm);
}
#endif
static void readEvalPrint(FILE *in, World &world)
{
@@ -189,7 +191,7 @@ static void readEvalPrint(FILE *in, World &world)
global.defineNativeFunction(world.identifiers[widenCString("print")], print);
global.defineNativeFunction(world.identifiers[widenCString("dump")], dump);
global.defineNativeFunction(world.identifiers[widenCString("load")], load);
global.defineNativeFunction(world.identifiers[widenCString("time")], time);
// global.defineNativeFunction(world.identifiers[widenCString("time")], time);
String buffer;
string line;