/[jscoverage]/trunk/js/jsfile.cpp
ViewVC logotype

Diff of /trunk/js/jsfile.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 332 by siliconforks, Thu Oct 23 19:03:33 2008 UTC revision 460 by siliconforks, Sat Sep 26 23:15:22 2009 UTC
# Line 57  Line 57 
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>
# Line 259  Line 270 
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]
# Line 2181  Line 2192 
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)

Legend:
Removed from v.332  
changed lines
  Added in v.460

  ViewVC Help
Powered by ViewVC 1.1.24