Adding a first version of the js File object. Developped and (slightly) tested on win32 only.

This commit is contained in:
henrit 1998-04-28 11:36:17 +00:00
parent 236b78b66f
commit 41a4919a46
4 changed files with 1808 additions and 0 deletions

View File

@ -54,6 +54,10 @@
#include "jsscript.h"
#include "jsstr.h"
#include "jsfile.h"
#define JS_TEST_FILE 1
#if defined(JS_PARANOID_REQUEST) && defined(JS_THREADSAFE)
#define CHECK_REQUEST(cx) PR_ASSERT(cx->requestDepth)
#else
@ -640,6 +644,9 @@ JS_InitStandardClasses(JSContext *cx, JSObject *obj)
#endif
#if JS_HAS_SCRIPT_OBJECT
js_InitScriptClass(cx, obj) &&
#endif
#if JS_TEST_FILE
js_InitFileClass(cx, obj) &&
#endif
js_InitDateClass(cx, obj);
}

1788
js/src/jsfile.c Normal file

File diff suppressed because it is too large Load Diff

12
js/src/jsfile.h Normal file
View File

@ -0,0 +1,12 @@
#ifndef _jsfile_h__
#define _jsfile_h__
#define TEST_WITH_FILE 1
JSObject* js_InitFileMgrClass(JSContext *cx, JSObject* obj);
JSObject* js_InitFileClass(JSContext *cx, JSObject* obj);
#endif /* _jsfile_h__ */

View File

@ -82,6 +82,7 @@ OBJS = \
.\$(OBJDIR)\jsscript.obj \
.\$(OBJDIR)\jsstr.obj \
.\$(OBJDIR)\jsxdrapi.obj \
.\$(OBJDIR)\jsfile.obj \
$(NULL)
#//------------------------------------------------------------------------