57 |
# define CURRENT_DIR "c:\\" |
# define CURRENT_DIR "c:\\" |
58 |
# define POPEN _popen |
# define POPEN _popen |
59 |
# define PCLOSE _pclose |
# define PCLOSE _pclose |
60 |
|
#elif defined(SYMBIAN) |
61 |
|
# include <strings.h> |
62 |
|
# include <stdio.h> |
63 |
|
# include <stdlib.h> |
64 |
|
# include <unistd.h> |
65 |
|
# include <limits.h> |
66 |
|
# define FILESEPARATOR '\\' |
67 |
|
# define FILESEPARATOR2 '/' |
68 |
|
# define CURRENT_DIR "c:\\" |
69 |
|
# define POPEN popen |
70 |
|
# define PCLOSE pclose |
71 |
#elif defined(XP_UNIX) || defined(XP_BEOS) |
#elif defined(XP_UNIX) || defined(XP_BEOS) |
72 |
# include <strings.h> |
# include <strings.h> |
73 |
# include <stdio.h> |
# include <stdio.h> |
270 |
static JSBool |
static JSBool |
271 |
js_isAbsolute(const char *name) |
js_isAbsolute(const char *name) |
272 |
{ |
{ |
273 |
#if defined(XP_WIN) || defined(XP_OS2) |
#if defined(XP_WIN) || defined(XP_OS2) || defined(SYMBIAN) |
274 |
return *name && name[1] == ':'; |
return *name && name[1] == ':'; |
275 |
#else |
#else |
276 |
return (name[0] |
return (name[0] |
2192 |
JSString *str; |
JSString *str; |
2193 |
JSFile *file; |
JSFile *file; |
2194 |
|
|
2195 |
if (!(cx->fp->flags & JSFRAME_CONSTRUCTING)) { |
if (!JS_IsConstructing(cx)) { |
2196 |
/* Replace obj with a new File object. */ |
/* Replace obj with a new File object. */ |
2197 |
obj = JS_NewObject(cx, &js_FileClass, NULL, NULL); |
obj = JS_NewObject(cx, &js_FileClass, NULL, NULL); |
2198 |
if (!obj) |
if (!obj) |