Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Functions
struct.c File Reference
#include <string.h>
#include <stdarg.h>
#include "mruby.h"
#include "mruby/array.h"
#include "mruby/class.h"
#include "mruby/data.h"
#include "mruby/variable.h"
Include dependency graph for struct.c:

Go to the source code of this file.

Macros

#define RSTRUCT_ARY(st)   mrb_ary_ptr(st)
#define RSTRUCT_LEN(st)   RSTRUCT_ARY(st)->len
#define RSTRUCT_PTR(st)   RSTRUCT_ARY(st)->ptr
#define numberof(array)   (int)(sizeof(array) / sizeof((array)[0]))
#define N_REF_FUNC   numberof(ref_func)
#define is_notop_id(id)   (id)
#define is_local_id(id)   (is_notop_id(id))
#define is_const_id(id)   (is_notop_id(id))

Functions

mrb_value mrb_struct_iv_get (mrb_state *mrb, mrb_value c, const char *name)
mrb_value mrb_struct_s_members (mrb_state *mrb, mrb_value klass)
mrb_value mrb_struct_members (mrb_state *mrb, mrb_value s)
mrb_value mrb_struct_getmember (mrb_state *mrb, mrb_value obj, mrb_sym id)
mrb_sym mrb_id_attrset (mrb_state *mrb, mrb_sym id)
int mrb_is_local_id (mrb_sym id)
int mrb_is_const_id (mrb_sym id)
mrb_value mrb_struct_define (mrb_state *mrb, const char *name,...)
mrb_value mrb_struct_initialize (mrb_state *mrb, mrb_value self, mrb_value values)
mrb_value mrb_struct_init_copy (mrb_state *mrb, mrb_value copy)
mrb_value mrb_struct_aref_n (mrb_state *mrb, mrb_value s, mrb_value idx)
mrb_value mrb_struct_aref (mrb_state *mrb, mrb_value s)
mrb_value mrb_struct_aset (mrb_state *mrb, mrb_value s)
void mrb_mruby_struct_gem_init (mrb_state *mrb)
void mrb_mruby_struct_gem_final (mrb_state *mrb)

Macro Definition Documentation

#define is_const_id (   id)    (is_notop_id(id))

Definition at line 228 of file struct.c.

#define is_local_id (   id)    (is_notop_id(id))

Definition at line 221 of file struct.c.

#define is_notop_id (   id)    (id)

Definition at line 220 of file struct.c.

#define N_REF_FUNC   numberof(ref_func)

Definition at line 150 of file struct.c.

#define numberof (   array)    (int)(sizeof(array) / sizeof((array)[0]))

Definition at line 149 of file struct.c.

#define RSTRUCT_ARY (   st)    mrb_ary_ptr(st)

Definition at line 16 of file struct.c.

#define RSTRUCT_LEN (   st)    RSTRUCT_ARY(st)->len

Definition at line 17 of file struct.c.

#define RSTRUCT_PTR (   st)    RSTRUCT_ARY(st)->ptr

Definition at line 18 of file struct.c.

Function Documentation

mrb_sym mrb_id_attrset ( mrb_state mrb,
mrb_sym  id 
)

Definition at line 166 of file struct.c.

Here is the call graph for this function:

int mrb_is_const_id ( mrb_sym  id)

Definition at line 230 of file struct.c.

int mrb_is_local_id ( mrb_sym  id)

Definition at line 223 of file struct.c.

void mrb_mruby_struct_gem_final ( mrb_state mrb)

Definition at line 816 of file struct.c.

void mrb_mruby_struct_gem_init ( mrb_state mrb)

Definition at line 797 of file struct.c.

Here is the call graph for this function:

mrb_value mrb_struct_aref ( mrb_state mrb,
mrb_value  s 
)

Definition at line 600 of file struct.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_struct_aref_n ( mrb_state mrb,
mrb_value  s,
mrb_value  idx 
)

Definition at line 570 of file struct.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_struct_aset ( mrb_state mrb,
mrb_value  s 
)

Definition at line 656 of file struct.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_struct_define ( mrb_state mrb,
const char *  name,
  ... 
)

Definition at line 285 of file struct.c.

Here is the call graph for this function:

mrb_value mrb_struct_getmember ( mrb_state mrb,
mrb_value  obj,
mrb_sym  id 
)

Definition at line 113 of file struct.c.

Here is the call graph for this function:

mrb_value mrb_struct_init_copy ( mrb_state mrb,
mrb_value  copy 
)

Definition at line 507 of file struct.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_struct_initialize ( mrb_state mrb,
mrb_value  self,
mrb_value  values 
)

Definition at line 437 of file struct.c.

mrb_value mrb_struct_iv_get ( mrb_state mrb,
mrb_value  c,
const char *  name 
)

Definition at line 44 of file struct.c.

Here is the call graph for this function:

mrb_value mrb_struct_members ( mrb_state mrb,
mrb_value  s 
)

Definition at line 64 of file struct.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_struct_s_members ( mrb_state mrb,
mrb_value  klass 
)

Definition at line 50 of file struct.c.

Here is the call graph for this function:

Here is the caller graph for this function: