Ruby  2.5.0dev(2017-10-22revision60238)
Macros | Functions | Variables
fiddle.c File Reference
#include <fiddle.h>

Go to the source code of this file.

Macros

#define TYPE_SSIZE_T   TYPE_INT
 
#define TYPE_SIZE_T   (-1*SIGNEDNESS_OF_SIZE_T*TYPE_SSIZE_T)
 
#define TYPE_PTRDIFF_T   TYPE_INT
 
#define TYPE_INTPTR_T   TYPE_INT
 
#define TYPE_UINTPTR_T   (-TYPE_INTPTR_T)
 

Functions

void Init_fiddle_pointer (void)
 
VALUE rb_fiddle_free (VALUE self, VALUE addr)
 
VALUE rb_fiddle_ptr2value (VALUE self, VALUE addr)
 
void Init_fiddle_handle (void)
 
void Init_fiddle (void)
 

Variables

VALUE mFiddle
 
VALUE rb_eFiddleError
 

Macro Definition Documentation

◆ TYPE_INTPTR_T

#define TYPE_INTPTR_T   TYPE_INT

Definition at line 29 of file fiddle.c.

Referenced by Init_fiddle().

◆ TYPE_PTRDIFF_T

#define TYPE_PTRDIFF_T   TYPE_INT

Definition at line 19 of file fiddle.c.

Referenced by Init_fiddle().

◆ TYPE_SIZE_T

#define TYPE_SIZE_T   (-1*SIGNEDNESS_OF_SIZE_T*TYPE_SSIZE_T)

Definition at line 15 of file fiddle.c.

Referenced by Init_fiddle().

◆ TYPE_SSIZE_T

#define TYPE_SSIZE_T   TYPE_INT

Definition at line 8 of file fiddle.c.

Referenced by Init_fiddle().

◆ TYPE_UINTPTR_T

#define TYPE_UINTPTR_T   (-TYPE_INTPTR_T)

Definition at line 36 of file fiddle.c.

Referenced by Init_fiddle().

Function Documentation

◆ Init_fiddle()

void Init_fiddle ( void  )

◆ Init_fiddle_handle()

void Init_fiddle_handle ( void  )

Definition at line 378 of file handle.c.

References mFiddle, rb_cHandle, rb_cObject, rb_define_alloc_func(), and rb_define_class_under().

◆ Init_fiddle_pointer()

void Init_fiddle_pointer ( void  )

Definition at line 678 of file pointer.c.

◆ rb_fiddle_free()

VALUE rb_fiddle_free ( VALUE  self,
VALUE  addr 
)

Definition at line 77 of file fiddle.c.

References NUM2PTR, Qnil, and ruby_xfree().

◆ rb_fiddle_ptr2value()

VALUE rb_fiddle_ptr2value ( VALUE  self,
VALUE  addr 
)

Definition at line 102 of file fiddle.c.

References NUM2PTR.

Variable Documentation

◆ mFiddle

VALUE mFiddle

◆ rb_eFiddleError

VALUE rb_eFiddleError

Definition at line 4 of file fiddle.c.

Referenced by Init_fiddle().