Ruby  1.9.3p448(2013-06-27revision41675)
Functions | Variables
dl.c File Reference
#include <ruby/ruby.h>
#include <ruby/io.h>
#include <ctype.h>
#include "dl.h"

Go to the source code of this file.

Functions

VALUE rb_dl_dlopen (int argc, VALUE argv[], VALUE self)
 
VALUE rb_dl_malloc (VALUE self, VALUE size)
 
VALUE rb_dl_realloc (VALUE self, VALUE addr, VALUE size)
 
VALUE rb_dl_free (VALUE self, VALUE addr)
 
VALUE rb_dl_ptr2value (VALUE self, VALUE addr)
 
VALUE rb_dl_value2ptr (VALUE self, VALUE val)
 
static void rb_dl_init_callbacks (VALUE dl)
 
void Init_dl (void)
 

Variables

VALUE rb_mDL
 
VALUE rb_eDLError
 
VALUE rb_eDLTypeError
 
ID rbdl_id_cdecl
 
ID rbdl_id_stdcall
 

Function Documentation

void Init_dl ( void  )
VALUE rb_dl_dlopen ( int  argc,
VALUE  argv[],
VALUE  self 
)

Definition at line 21 of file dl.c.

References rb_cDLHandle, and rb_class_new_instance().

Referenced by Init_dl().

VALUE rb_dl_free ( VALUE  self,
VALUE  addr 
)

Definition at line 65 of file dl.c.

References NUM2PTR, ptr_data::ptr, Qnil, rb_secure(), and ruby_xfree().

Referenced by Init_dl().

static void rb_dl_init_callbacks ( VALUE  dl)
static

Definition at line 88 of file dl.c.

References rb_autoload(), and rb_intern_const.

Referenced by Init_dl().

VALUE rb_dl_malloc ( VALUE  self,
VALUE  size 
)

Definition at line 33 of file dl.c.

References NUM2INT, ptr_data::ptr, PTR2NUM, rb_secure(), and ruby_xmalloc().

Referenced by Init_dl().

VALUE rb_dl_ptr2value ( VALUE  self,
VALUE  addr 
)

Definition at line 75 of file dl.c.

References NUM2PTR, and rb_secure().

Referenced by Init_dl().

VALUE rb_dl_realloc ( VALUE  self,
VALUE  addr,
VALUE  size 
)

Definition at line 50 of file dl.c.

References NUM2INT, NUM2PTR, ptr_data::ptr, PTR2NUM, rb_secure(), and ruby_xrealloc().

Referenced by Init_dl().

VALUE rb_dl_value2ptr ( VALUE  self,
VALUE  val 
)

Definition at line 82 of file dl.c.

References PTR2NUM.

Referenced by Init_dl().

Variable Documentation

VALUE rb_eDLError
VALUE rb_eDLTypeError

Definition at line 15 of file dl.c.

Referenced by Init_dl(), and rb_dlcfunc_call().

VALUE rb_mDL

Definition at line 13 of file dl.c.

Referenced by Init_dl(), Init_dlcfunc(), Init_dlhandle(), and Init_dlptr().

ID rbdl_id_cdecl

Definition at line 17 of file dl.c.

Referenced by Init_dl().

ID rbdl_id_stdcall

Definition at line 18 of file dl.c.

Referenced by Init_dl().