#include <stdio.h>
#include <math.h>
#include <ruby.h>
#include <typelib/value.hh>
#include <test/test_cimport.1>
Go to the source code of this file.
Functions | |
static VALUE | check_B_c_value (VALUE self, VALUE rb) |
int | check_id_value (DEFINE_ID test_id, int check) |
int | check_opaque_value (OPAQUE_TYPE handler, int check) |
static VALUE | check_struct_A_value (VALUE self, VALUE ra) |
static bool | do_check_struct_A_value (A const &a) |
static void | do_set_B_c_value (B &b) |
static void | do_set_struct_A_value (A &a) |
static VALUE | fill_multi_dim_array (VALUE self, VALUE rb) |
void | generate_nand (double *value) |
void | generate_nanf (float *value) |
void | Init_libtest_ruby () |
static VALUE | set_B_c_value (VALUE self, VALUE rb) |
static VALUE | set_struct_A_value (VALUE self, VALUE ra) |
void | test_arg_input_output (int *value, INPUT_OUTPUT_MODE mode) |
void | test_enum_io_handling (INPUT_OUTPUT_MODE *mode) |
int | test_id_handling (DEFINE_ID *new_id, int check) |
int | test_immediate_to_pointer (double *value) |
void | test_modifies_argument (int *value) |
void | test_null_return_value (DEFINE_ID *test_id, int check) |
void | test_numeric_argument_passing (char a, short b, int c, long d, long long e, float f, double g) |
OPAQUE_TYPE | test_opaque_handling () |
void | test_pointer_argument (A *a) |
void | test_ptr_argument_changes (struct B *b) |
void | test_returns_argument (int *holder) |
char | test_returns_numeric_argument_char (char value) |
double | test_returns_numeric_argument_double (double value) |
float | test_returns_numeric_argument_float (float value) |
int | test_returns_numeric_argument_int (int value) |
int64_t | test_returns_numeric_argument_int64_t (int64_t value) |
long | test_returns_numeric_argument_long (long value) |
short | test_returns_numeric_argument_short (short value) |
struct A * | test_returns_pointer () |
void | test_simple_function_call () |
void | test_string_argument (char const *value) |
void | test_string_argument_modification (char *str, int buffer_length) |
void | test_string_as_array (char str[256]) |
const char * | test_string_return () |
void | test_void_argument (void *value, int check) |
Variables | |
DEFINE_STR | id |
static int | opaque_handler |
static const char * | static_string = "string_return" |
static VALUE check_B_c_value | ( | VALUE | self, |
VALUE | rb | ||
) | [static] |
Definition at line 51 of file test_rb_value.cc.
int check_id_value | ( | DEFINE_ID | test_id, |
int | check | ||
) |
Definition at line 200 of file test_rb_value.cc.
int check_opaque_value | ( | OPAQUE_TYPE | handler, |
int | check | ||
) |
Definition at line 177 of file test_rb_value.cc.
static VALUE check_struct_A_value | ( | VALUE | self, |
VALUE | ra | ||
) | [static] |
Definition at line 30 of file test_rb_value.cc.
static bool do_check_struct_A_value | ( | A const & | a | ) | [static] |
Definition at line 10 of file test_rb_value.cc.
static void do_set_B_c_value | ( | B & | b | ) | [static] |
Definition at line 63 of file test_rb_value.cc.
static void do_set_struct_A_value | ( | A & | a | ) | [static] |
Definition at line 19 of file test_rb_value.cc.
static VALUE fill_multi_dim_array | ( | VALUE | self, |
VALUE | rb | ||
) | [static] |
Definition at line 79 of file test_rb_value.cc.
void generate_nand | ( | double * | value | ) |
Definition at line 105 of file test_rb_value.cc.
void generate_nanf | ( | float * | value | ) |
Definition at line 107 of file test_rb_value.cc.
void Init_libtest_ruby | ( | ) |
Definition at line 94 of file test_rb_value.cc.
static VALUE set_B_c_value | ( | VALUE | self, |
VALUE | rb | ||
) | [static] |
Definition at line 69 of file test_rb_value.cc.
static VALUE set_struct_A_value | ( | VALUE | self, |
VALUE | ra | ||
) | [static] |
Definition at line 41 of file test_rb_value.cc.
void test_arg_input_output | ( | int * | value, |
INPUT_OUTPUT_MODE | mode | ||
) |
Definition at line 150 of file test_rb_value.cc.
void test_enum_io_handling | ( | INPUT_OUTPUT_MODE * | mode | ) |
Definition at line 160 of file test_rb_value.cc.
int test_id_handling | ( | DEFINE_ID * | new_id, |
int | check | ||
) |
Definition at line 195 of file test_rb_value.cc.
int test_immediate_to_pointer | ( | double * | value | ) |
Definition at line 145 of file test_rb_value.cc.
void test_modifies_argument | ( | int * | value | ) |
Definition at line 137 of file test_rb_value.cc.
void test_null_return_value | ( | DEFINE_ID * | test_id, |
int | check | ||
) |
Definition at line 206 of file test_rb_value.cc.
void test_numeric_argument_passing | ( | char | a, |
short | b, | ||
int | c, | ||
long | d, | ||
long long | e, | ||
float | f, | ||
double | g | ||
) |
Definition at line 109 of file test_rb_value.cc.
OPAQUE_TYPE test_opaque_handling | ( | ) |
Definition at line 174 of file test_rb_value.cc.
void test_pointer_argument | ( | A * | a | ) |
Definition at line 124 of file test_rb_value.cc.
void test_ptr_argument_changes | ( | struct B * | b | ) |
Definition at line 147 of file test_rb_value.cc.
void test_returns_argument | ( | int * | holder | ) |
Definition at line 121 of file test_rb_value.cc.
char test_returns_numeric_argument_char | ( | char | value | ) |
Definition at line 114 of file test_rb_value.cc.
double test_returns_numeric_argument_double | ( | double | value | ) |
Definition at line 120 of file test_rb_value.cc.
float test_returns_numeric_argument_float | ( | float | value | ) |
Definition at line 119 of file test_rb_value.cc.
int test_returns_numeric_argument_int | ( | int | value | ) |
Definition at line 116 of file test_rb_value.cc.
Definition at line 118 of file test_rb_value.cc.
long test_returns_numeric_argument_long | ( | long | value | ) |
Definition at line 117 of file test_rb_value.cc.
short test_returns_numeric_argument_short | ( | short | value | ) |
Definition at line 115 of file test_rb_value.cc.
struct A* test_returns_pointer | ( | ) | [read] |
Definition at line 130 of file test_rb_value.cc.
void test_simple_function_call | ( | ) |
Definition at line 103 of file test_rb_value.cc.
void test_string_argument | ( | char const * | value | ) |
Definition at line 180 of file test_rb_value.cc.
void test_string_argument_modification | ( | char * | str, |
int | buffer_length | ||
) |
Definition at line 189 of file test_rb_value.cc.
void test_string_as_array | ( | char | str[256] | ) |
Definition at line 191 of file test_rb_value.cc.
const char* test_string_return | ( | ) |
Definition at line 187 of file test_rb_value.cc.
void test_void_argument | ( | void * | value, |
int | check | ||
) |
Definition at line 211 of file test_rb_value.cc.
DEFINE_STR id |
Definition at line 194 of file test_rb_value.cc.
int opaque_handler [static] |
Definition at line 173 of file test_rb_value.cc.
const char* static_string = "string_return" [static] |
Definition at line 186 of file test_rb_value.cc.