Changeset 20475
- Timestamp:
- 10/02/08 12:21:51 (5 years ago)
- Location:
- lang/cplusplus/llv8call/branches/stdlib
- Files:
-
- 4 modified
-
Sconstruct (modified) (3 diffs)
-
ext/nspr/nspr.cc (modified) (1 diff)
-
src/env.cc (modified) (1 diff)
-
v8ext/v8ext.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/cplusplus/llv8call/branches/stdlib/Sconstruct
r20166 r20475 7 7 env = Environment(options=opts) 8 8 conf = Configure(env) 9 10 if os.path.exists("vendor/v8/SConstruct"):11 os.system("cd vendor/v8; scons library=shared")12 9 13 10 def GuessOS(): … … 21 18 else: 22 19 return None 20 OS_GUESS = GuessOS() 21 22 if os.path.exists("vendor/v8/SConstruct"): 23 if not OS_GUESS == 'win32': 24 os.system("cd vendor/v8; scons library=shared") 25 else: 26 os.chdir("vendor/v8") 27 os.system("scons library=shared") 28 os.chdir("../..") 23 29 24 30 def GuessToolchain(): … … 30 36 else: 31 37 return None 32 33 OS_GUESS = GuessOS()34 38 35 39 env.Append( -
lang/cplusplus/llv8call/branches/stdlib/ext/nspr/nspr.cc
r19912 r20475 7 7 8 8 void setup_io(v8::Handle<v8::Object> global); 9 void setup_curl(v8::Handle<v8::Object> global);10 void setup_sqlite3(v8::Handle<v8::Object> global);11 9 void setup_dir(v8::Handle<v8::Object> global); 12 10 void setup_process(v8::Handle<v8::Object> global); -
lang/cplusplus/llv8call/branches/stdlib/src/env.cc
r20019 r20475 13 13 String::Utf8Value val(value); 14 14 if (*key && *val) { 15 #ifndef _WIN32 15 16 setenv(*key, *val, 1); 17 #else 18 char* envstr = (char*) malloc(key.length() + val.length() + 2); 19 sprintf(envstr, "%s=%s", (char*) *key, (char*) *val); 20 putenv(envstr); 21 free(envstr); 22 #endif 16 23 return Undefined(); 17 24 } else { -
lang/cplusplus/llv8call/branches/stdlib/v8ext/v8ext.cc
r20173 r20475 25 25 #include <cassert> 26 26 #include "v8ext.h" 27 #include <dlfcn.h> 27 #ifndef _WIN32 28 # include <dlfcn.h> 29 #else 30 # include <windows.h> 31 # include <errno.h> 32 # define dlopen(x,y) (void*)LoadLibrary(x) 33 # define dlsym(x,y) (void*)GetProcAddress((HMODULE)x,y) 34 # define dlclose(x) FreeLibrary((HMODULE)x) 35 const char* dlerror() { 36 static char szMsgBuf[256]; 37 ::FormatMessage( 38 FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, 39 NULL, 40 ::GetLastError(), 41 MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), 42 szMsgBuf, 43 sizeof szMsgBuf, 44 NULL); 45 return szMsgBuf; 46 } 47 #endif 28 48 29 49 #define assert_args(args, length) do { if ((args).Length() != (length)) { return v8::ThrowException(v8::String::New("Exception: missing args")); } } while (0)
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)