Data Structures | Functions | Variables

ext/fiddle/closure.c File Reference

#include <fiddle.h>
Include dependency graph for closure.c:

Go to the source code of this file.

Data Structures

struct  fiddle_closure

Functions

static void dealloc (void *ptr)
static size_t closure_memsize (const void *ptr)
void callback (ffi_cif *cif, void *resp, void **args, void *ctx)
static VALUE allocate (VALUE klass)
static VALUE initialize (int rbargc, VALUE argv[], VALUE self)
static VALUE to_i (VALUE self)
void Init_fiddle_closure ()

Variables

VALUE cFiddleClosure
const rb_data_type_t closure_data_type

Function Documentation

static VALUE allocate ( VALUE  klass  )  [static]
void callback ( ffi_cif *  cif,
void *  resp,
void **  args,
void *  ctx 
)
static size_t closure_memsize ( const void *  ptr  )  [static]

Definition at line 32 of file closure.c.

References fiddle_closure::argv, fiddle_closure::cif, and size.

static void dealloc ( void *  ptr  )  [static]

Definition at line 18 of file closure.c.

References fiddle_closure::argv, fiddle_closure::cif, fiddle_closure::pcl, and xfree().

void Init_fiddle_closure (  ) 
static VALUE initialize ( int  rbargc,
VALUE  argv[],
VALUE  self 
) [static]
static VALUE to_i ( VALUE  self  )  [static]

Definition at line 214 of file closure.c.

References fiddle_closure::code, PTR2NUM, and TypedData_Get_Struct.

Referenced by Init_fiddle_closure().


Variable Documentation

Definition at line 3 of file closure.c.

Referenced by Init_fiddle_closure().

Initial value:
 {
    "fiddle/closure",
    0, dealloc, closure_memsize,
}

Definition at line 48 of file closure.c.