Ruby  2.0.0p648(2015-12-16revision53162)
Functions | Variables
stubs.c File Reference
#include "ruby.h"
#include "stubs.h"
#include <tcl.h>
#include <tk.h>

Go to the source code of this file.

Functions

static void _nativethread_consistency_check (Tcl_Interp *ip)
 
int ruby_open_tcl_dll (char *appname)
 
int ruby_open_tk_dll ()
 
int ruby_open_tcltk_dll (char *appname)
 
int tcl_stubs_init_p ()
 
int tk_stubs_init_p ()
 
Tcl_Interp * ruby_tcl_create_ip_and_stubs_init (int *st)
 
int ruby_tcl_stubs_init ()
 
int ruby_tk_stubs_init (Tcl_Interp *tcl_ip)
 
int ruby_tk_stubs_safeinit (Tcl_Interp *tcl_ip)
 
int ruby_tcltk_stubs ()
 

Variables

static int nativethread_checked = 0
 
static int open_tcl_dll = 0
 
static int call_tk_stubs_init = 0
 

Function Documentation

◆ _nativethread_consistency_check()

static void _nativethread_consistency_check ( Tcl_Interp *  ip)
static

Definition at line 42 of file stubs.c.

References nativethread_checked, NULL, rb_warn(), and rb_warning().

Referenced by ruby_tcl_create_ip_and_stubs_init().

◆ ruby_open_tcl_dll()

int ruby_open_tcl_dll ( char *  appname)

◆ ruby_open_tcltk_dll()

int ruby_open_tcltk_dll ( char *  appname)

Definition at line 484 of file stubs.c.

References ruby_open_tcl_dll(), and ruby_open_tk_dll().

◆ ruby_open_tk_dll()

int ruby_open_tk_dll ( )

Definition at line 470 of file stubs.c.

References open_tcl_dll, rb_argv0, RSTRING_PTR, ruby_open_tcl_dll(), and TCLTK_STUBS_OK.

Referenced by ruby_open_tcltk_dll().

◆ ruby_tcl_create_ip_and_stubs_init()

Tcl_Interp* ruby_tcl_create_ip_and_stubs_init ( int *  st)

◆ ruby_tcl_stubs_init()

int ruby_tcl_stubs_init ( )

Definition at line 531 of file stubs.c.

References TCLTK_STUBS_OK.

Referenced by ip_init(), and tcl_stubs_check().

◆ ruby_tcltk_stubs()

int ruby_tcltk_stubs ( )

Definition at line 585 of file stubs.c.

References rb_argv0, and RSTRING_PTR.

◆ ruby_tk_stubs_init()

int ruby_tk_stubs_init ( Tcl_Interp *  tcl_ip)

Definition at line 540 of file stubs.c.

References call_tk_stubs_init, FAIL_Tk_Init, and TCLTK_STUBS_OK.

Referenced by ip_init(), and tcltkip_init_tk().

◆ ruby_tk_stubs_safeinit()

int ruby_tk_stubs_safeinit ( Tcl_Interp *  tcl_ip)

Definition at line 561 of file stubs.c.

References call_tk_stubs_init, FAIL_Tk_Init, and TCLTK_STUBS_OK.

Referenced by tcltkip_init_tk().

◆ tcl_stubs_init_p()

int tcl_stubs_init_p ( )

Definition at line 492 of file stubs.c.

Referenced by tcl_stubs_check().

◆ tk_stubs_init_p()

int tk_stubs_init_p ( )

Variable Documentation

◆ call_tk_stubs_init

int call_tk_stubs_init = 0
static

Definition at line 449 of file stubs.c.

Referenced by ruby_tk_stubs_init(), ruby_tk_stubs_safeinit(), and tk_stubs_init_p().

◆ nativethread_checked

int nativethread_checked = 0
static

Definition at line 39 of file stubs.c.

Referenced by _nativethread_consistency_check().

◆ open_tcl_dll

int open_tcl_dll = 0
static

Definition at line 448 of file stubs.c.

Referenced by ruby_open_tcl_dll(), ruby_open_tk_dll(), and ruby_tcl_create_ip_and_stubs_init().