Changeset 20563
- Timestamp:
- 10/03/08 11:41:57 (5 years ago)
- Location:
- lang/cplusplus/llv8call/trunk
- Files:
-
- 9 modified
-
ext/env/macros.h (modified) (1 diff)
-
ext/fs/dir.cc (modified) (2 diffs)
-
ext/fs/file.cc (modified) (1 diff)
-
ext/fs/macros.h (modified) (1 diff)
-
ext/gdome/macros.h (modified) (1 diff)
-
ext/libevent/macros.h (modified) (1 diff)
-
ext/shttpd/macros.h (modified) (1 diff)
-
ext/shttpd/shttpd.cc (modified) (5 diffs)
-
src/SConscript (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/cplusplus/llv8call/trunk/ext/env/macros.h
r20528 r20563 30 30 * See the 'posix.cpp' module for examples. */ 31 31 #define FUNCTION(f) static v8::Handle<v8::Value> f(const v8::Arguments& args) { v8::HandleScope handlescope; 32 #ifdef _MSC_VER 33 # define __func__ __FUNCTION__ 34 #endif 32 35 #define ARG_COUNT(c) do { \ 33 36 if (args.Length() != c) { \ -
lang/cplusplus/llv8call/trunk/ext/fs/dir.cc
r20530 r20563 10 10 #include <dirent.h> 11 11 #include <sys/stat.h> 12 #else 13 #include "dirent-win32.h" 12 14 #endif 13 15 #include <cstring> … … 15 17 #include <string> 16 18 #include "fs.h" 19 #ifdef _WIN32 20 #include "fs-win32.h" 21 #endif 17 22 18 23 // TODO: win32 support -
lang/cplusplus/llv8call/trunk/ext/fs/file.cc
r20553 r20563 14 14 #include <string> 15 15 #include "fs.h" 16 17 // TODO: win32 support 16 #ifdef _WIN32 17 #include "fs-win32.h" 18 #endif 18 19 19 20 using namespace v8; 20 21 21 22 #ifdef _WIN32 22 #define lstat(x, y) _stat(x, y)23 #define lstat(x, y) stat(x, y) 23 24 #endif 24 25 -
lang/cplusplus/llv8call/trunk/ext/fs/macros.h
r20552 r20563 30 30 * See the 'posix.cpp' module for examples. */ 31 31 #define FUNCTION(f) static v8::Handle<v8::Value> f(const v8::Arguments& args) { v8::HandleScope handlescope; 32 #ifdef _MSC_VER 33 # define __func__ __FUNCTION__ 34 #endif 32 35 #define ARG_COUNT(c) do { \ 33 36 if (args.Length() != c) { \ -
lang/cplusplus/llv8call/trunk/ext/gdome/macros.h
r20527 r20563 30 30 * See the 'posix.cpp' module for examples. */ 31 31 #define FUNCTION(f) static v8::Handle<v8::Value> f(const v8::Arguments& args) { v8::HandleScope handlescope; 32 #ifdef _MSC_VER 33 # define __func__ __FUNCTION__ 34 #endif 32 35 #define ARG_COUNT(c) do { \ 33 36 if (args.Length() != c) { \ -
lang/cplusplus/llv8call/trunk/ext/libevent/macros.h
r20552 r20563 30 30 * See the 'posix.cpp' module for examples. */ 31 31 #define FUNCTION(f) static v8::Handle<v8::Value> f(const v8::Arguments& args) { v8::HandleScope handlescope; 32 #ifdef _MSC_VER 33 # define __func__ __FUNCTION__ 34 #endif 32 35 #define ARG_COUNT(c) do { \ 33 36 if (args.Length() != c) { \ -
lang/cplusplus/llv8call/trunk/ext/shttpd/macros.h
r20554 r20563 30 30 * See the 'posix.cpp' module for examples. */ 31 31 #define FUNCTION(f) static v8::Handle<v8::Value> f(const v8::Arguments& args) { v8::HandleScope handlescope; 32 #define FUNCTION_C(f) static v8::Handle<v8::Value> f(const v8::Arguments& args) { 33 #ifdef _MSC_VER 34 # define __func__ __FUNCTION__ 35 #endif 32 36 #define ARG_COUNT(c) do { \ 33 37 if (args.Length() != c) { \ -
lang/cplusplus/llv8call/trunk/ext/shttpd/shttpd.cc
r20554 r20563 41 41 #define EXTERNAL_ARG() shttpd_arg * arg = handle<shttpd_arg>( args, 0 ); 42 42 43 FUNCTION (_arg_print)43 FUNCTION_C(_arg_print) 44 44 ARG_COUNT(1); 45 45 EXTERNAL_ARG(); … … 49 49 END 50 50 51 FUNCTION (_arg_set_flags)51 FUNCTION_C(_arg_set_flags) 52 52 ARG_COUNT(1); 53 53 EXTERNAL_ARG(); … … 56 56 END 57 57 58 FUNCTION (_arg_get_env)58 FUNCTION_C(_arg_get_env) 59 59 ARG_COUNT(1); 60 60 EXTERNAL_ARG(); … … 63 63 END 64 64 65 FUNCTION (_arg_get_var)65 FUNCTION_C(_arg_get_var) 66 66 if (args.Length() != 1 && args.Length() != 2) { 67 67 return ThrowException(String::New("Exception: arg.GetVar(name[, buflen])")); … … 78 78 END 79 79 80 FUNCTION (_arg_get_header)80 FUNCTION_C(_arg_get_header) 81 81 ARG_COUNT(1); 82 82 EXTERNAL_ARG(); -
lang/cplusplus/llv8call/trunk/src/SConscript
r20556 r20563 14 14 env.Append(CCFLAGS = ['-DREADLINE_STATIC']) 15 15 16 env.Program(16 prog = env.Program( 17 17 "llv8call", 18 18 Split("main.cc util.cc builtins.cc ../v8ext/v8ext.cc sys.cc "), … … 20 20 ) 21 21 22 env.Install(os.path.join("..", 'out', 'bin'), 'llv8call')22 env.Install(os.path.join("..", 'out', 'bin'), prog)
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)