diff options
author | Jari Vetoniemi <jari.vetoniemi@indooratlas.com> | 2020-03-16 18:49:26 +0900 |
---|---|---|
committer | Jari Vetoniemi <jari.vetoniemi@indooratlas.com> | 2020-03-30 00:39:06 +0900 |
commit | fcbf63e62c627deae76c1b8cb8c0876c536ed811 (patch) | |
tree | 64cb17de3f41a2b6fef2368028fbd00349946994 /jni/ruby/ext/tk/stubs.h |
Fresh start
Diffstat (limited to 'jni/ruby/ext/tk/stubs.h')
-rw-r--r-- | jni/ruby/ext/tk/stubs.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/jni/ruby/ext/tk/stubs.h b/jni/ruby/ext/tk/stubs.h new file mode 100644 index 0000000..b4a85db --- /dev/null +++ b/jni/ruby/ext/tk/stubs.h @@ -0,0 +1,33 @@ +#include <tcl.h> + +extern int ruby_open_tcl_dll(char *); +extern int ruby_open_tk_dll(void); +extern int ruby_open_tcltk_dll(char *); +extern int tcl_stubs_init_p(void); +extern int tk_stubs_init_p(void); +extern Tcl_Interp *ruby_tcl_create_ip_and_stubs_init(int*); +extern int ruby_tcl_stubs_init(void); +extern int ruby_tk_stubs_init(Tcl_Interp*); +extern int ruby_tk_stubs_safeinit(Tcl_Interp*); +extern int ruby_tcltk_stubs(void); + +/* no error */ +#define TCLTK_STUBS_OK (0) + +/* return value of ruby_open_tcl_dll() */ +#define NO_TCL_DLL (1) +#define NO_FindExecutable (2) + +/* return value of ruby_open_tk_dll() */ +#define NO_TK_DLL (-1) + +/* status value of ruby_tcl_create_ip_and_stubs_init(st) */ +#define NO_CreateInterp (3) +#define NO_DeleteInterp (4) +#define FAIL_CreateInterp (5) +#define FAIL_Tcl_InitStubs (6) + +/* return value of ruby_tk_stubs_init() */ +#define NO_Tk_Init (7) +#define FAIL_Tk_Init (8) +#define FAIL_Tk_InitStubs (9) |