mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Adding a first version of the js File object. Developped and (slightly) tested on win32 only.
This commit is contained in:
parent
236b78b66f
commit
41a4919a46
@ -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
1788
js/src/jsfile.c
Normal file
File diff suppressed because it is too large
Load Diff
12
js/src/jsfile.h
Normal file
12
js/src/jsfile.h
Normal 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__ */
|
@ -82,6 +82,7 @@ OBJS = \
|
||||
.\$(OBJDIR)\jsscript.obj \
|
||||
.\$(OBJDIR)\jsstr.obj \
|
||||
.\$(OBJDIR)\jsxdrapi.obj \
|
||||
.\$(OBJDIR)\jsfile.obj \
|
||||
$(NULL)
|
||||
|
||||
#//------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user