Changeset 20563

Show
Ignore:
Timestamp:
10/03/08 11:41:57 (5 years ago)
Author:
mattn
Message:

win32ish

Location:
lang/cplusplus/llv8call/trunk
Files:
9 modified

Legend:

Unmodified
Added
Removed
  • lang/cplusplus/llv8call/trunk/ext/env/macros.h

    r20528 r20563  
    3030 * See the 'posix.cpp' module for examples. */ 
    3131#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 
    3235#define ARG_COUNT(c) do { \ 
    3336                if (args.Length() != c) { \ 
  • lang/cplusplus/llv8call/trunk/ext/fs/dir.cc

    r20530 r20563  
    1010#include <dirent.h> 
    1111#include <sys/stat.h> 
     12#else 
     13#include "dirent-win32.h" 
    1214#endif 
    1315#include <cstring> 
     
    1517#include <string> 
    1618#include "fs.h" 
     19#ifdef _WIN32 
     20#include "fs-win32.h" 
     21#endif 
    1722 
    1823// TODO: win32 support 
  • lang/cplusplus/llv8call/trunk/ext/fs/file.cc

    r20553 r20563  
    1414#include <string> 
    1515#include "fs.h" 
    16  
    17 // TODO: win32 support 
     16#ifdef _WIN32 
     17#include "fs-win32.h" 
     18#endif 
    1819 
    1920using namespace v8; 
    2021 
    2122#ifdef _WIN32 
    22 #define lstat(x, y) _stat(x, y) 
     23#define lstat(x, y) stat(x, y) 
    2324#endif 
    2425 
  • lang/cplusplus/llv8call/trunk/ext/fs/macros.h

    r20552 r20563  
    3030 * See the 'posix.cpp' module for examples. */ 
    3131#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 
    3235#define ARG_COUNT(c) do { \ 
    3336                if (args.Length() != c) { \ 
  • lang/cplusplus/llv8call/trunk/ext/gdome/macros.h

    r20527 r20563  
    3030 * See the 'posix.cpp' module for examples. */ 
    3131#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 
    3235#define ARG_COUNT(c) do { \ 
    3336                if (args.Length() != c) { \ 
  • lang/cplusplus/llv8call/trunk/ext/libevent/macros.h

    r20552 r20563  
    3030 * See the 'posix.cpp' module for examples. */ 
    3131#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 
    3235#define ARG_COUNT(c) do { \ 
    3336                if (args.Length() != c) { \ 
  • lang/cplusplus/llv8call/trunk/ext/shttpd/macros.h

    r20554 r20563  
    3030 * See the 'posix.cpp' module for examples. */ 
    3131#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 
    3236#define ARG_COUNT(c) do { \ 
    3337                if (args.Length() != c) { \ 
  • lang/cplusplus/llv8call/trunk/ext/shttpd/shttpd.cc

    r20554 r20563  
    4141#define EXTERNAL_ARG() shttpd_arg * arg = handle<shttpd_arg>( args, 0 ); 
    4242 
    43 FUNCTION(_arg_print) 
     43FUNCTION_C(_arg_print) 
    4444    ARG_COUNT(1); 
    4545    EXTERNAL_ARG(); 
     
    4949END 
    5050 
    51 FUNCTION(_arg_set_flags) 
     51FUNCTION_C(_arg_set_flags) 
    5252    ARG_COUNT(1); 
    5353    EXTERNAL_ARG(); 
     
    5656END 
    5757 
    58 FUNCTION(_arg_get_env) 
     58FUNCTION_C(_arg_get_env) 
    5959    ARG_COUNT(1); 
    6060    EXTERNAL_ARG(); 
     
    6363END 
    6464 
    65 FUNCTION(_arg_get_var) 
     65FUNCTION_C(_arg_get_var) 
    6666    if (args.Length() != 1 && args.Length() != 2) { 
    6767        return ThrowException(String::New("Exception: arg.GetVar(name[, buflen])")); 
     
    7878END 
    7979 
    80 FUNCTION(_arg_get_header) 
     80FUNCTION_C(_arg_get_header) 
    8181    ARG_COUNT(1); 
    8282    EXTERNAL_ARG(); 
  • lang/cplusplus/llv8call/trunk/src/SConscript

    r20556 r20563  
    1414        env.Append(CCFLAGS = ['-DREADLINE_STATIC']) 
    1515 
    16 env.Program( 
     16prog = env.Program( 
    1717    "llv8call", 
    1818    Split("main.cc util.cc builtins.cc ../v8ext/v8ext.cc sys.cc "), 
     
    2020) 
    2121 
    22 env.Install(os.path.join("..", 'out', 'bin'), 'llv8call') 
     22env.Install(os.path.join("..", 'out', 'bin'), prog)