Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 32 lines (23 sloc) 0.628 kb
515a9b1 @mattn ooops.
authored
1 #ifndef _V8WRAP_H_
a53e948 @cwc Support passing of regex and functions to Go
cwc authored
2 #define _V8WRAP_H_
3
515a9b1 @mattn ooops.
authored
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
a53e948 @cwc Support passing of regex and functions to Go
cwc authored
7
3ce90e7 @mattn export function. but not fixed.
authored
8 extern void v8_init(void*);
515a9b1 @mattn ooops.
authored
9 extern void* v8_create();
10 extern void v8_release(void* ctx);
11 extern char* v8_execute(void* ctx, char* str);
12 extern char* v8_error(void* ctx);
13
a53e948 @cwc Support passing of regex and functions to Go
cwc authored
14 typedef enum {
dd1dead @mattn Add support for Object/Array.
authored
15 v8boolean, v8number, v8string, v8function, v8regexp, v8array, v8object
a53e948 @cwc Support passing of regex and functions to Go
cwc authored
16 } v8type;
17
18 typedef struct {
19 v8type obj_type;
20 char* repr; // String representation of object
21 } v8data;
22
2cb8574 @mattn fix windows build.
authored
23 typedef char* (*v8wrap_callback)(unsigned int, char*, v8data*, int);
a53e948 @cwc Support passing of regex and functions to Go
cwc authored
24
25 extern v8data v8_get_array_item(v8data* array, int index);
26
515a9b1 @mattn ooops.
authored
27 #ifdef __cplusplus
28 }
29 #endif
a53e948 @cwc Support passing of regex and functions to Go
cwc authored
30
515a9b1 @mattn ooops.
authored
31 #endif /* _V8WRAP_H_ */
Something went wrong with that request. Please try again.