Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Functions
proc.h File Reference
#include "mruby/irep.h"
#include "mruby/khash.h"
Include dependency graph for proc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  REnv
struct  RProc

Macros

#define MRB_ASPEC_REQ(a)   (((a) >> 18) & 0x1f)
#define MRB_ASPEC_OPT(a)   (((a) >> 13) & 0x1f)
#define MRB_ASPEC_REST(a)   ((a) & (1<<12))
#define MRB_ASPEC_POST(a)   (((a) >> 7) & 0x1f)
#define MRB_ASPEC_KEY(a)   (((a) >> 2) & 0x1f)
#define MRB_ASPEC_KDICT(a)   ((a) & (1<<1))
#define MRB_ASPEC_BLOCK(a)   ((a) & 1)
#define MRB_PROC_CFUNC   128
#define MRB_PROC_CFUNC_P(p)   (((p)->flags & MRB_PROC_CFUNC) != 0)
#define MRB_PROC_STRICT   256
#define MRB_PROC_STRICT_P(p)   (((p)->flags & MRB_PROC_STRICT) != 0)
#define mrb_proc_ptr(v)   ((struct RProc*)(mrb_ptr(v)))

Functions

struct RProcmrb_proc_new (mrb_state *, mrb_irep *)
struct RProcmrb_proc_new_cfunc (mrb_state *, mrb_func_t)
struct RProcmrb_closure_new (mrb_state *, mrb_irep *)
struct RProcmrb_closure_new_cfunc (mrb_state *mrb, mrb_func_t func, int nlocals)
void mrb_proc_copy (struct RProc *a, struct RProc *b)

Macro Definition Documentation

#define MRB_ASPEC_BLOCK (   a)    ((a) & 1)

Definition at line 40 of file proc.h.

#define MRB_ASPEC_KDICT (   a)    ((a) & (1<<1))

Definition at line 39 of file proc.h.

#define MRB_ASPEC_KEY (   a)    (((a) >> 2) & 0x1f)

Definition at line 38 of file proc.h.

#define MRB_ASPEC_OPT (   a)    (((a) >> 13) & 0x1f)

Definition at line 35 of file proc.h.

#define MRB_ASPEC_POST (   a)    (((a) >> 7) & 0x1f)

Definition at line 37 of file proc.h.

#define MRB_ASPEC_REQ (   a)    (((a) >> 18) & 0x1f)

Definition at line 34 of file proc.h.

#define MRB_ASPEC_REST (   a)    ((a) & (1<<12))

Definition at line 36 of file proc.h.

#define MRB_PROC_CFUNC   128

Definition at line 42 of file proc.h.

#define MRB_PROC_CFUNC_P (   p)    (((p)->flags & MRB_PROC_CFUNC) != 0)

Definition at line 43 of file proc.h.

#define mrb_proc_ptr (   v)    ((struct RProc*)(mrb_ptr(v)))

Definition at line 47 of file proc.h.

#define MRB_PROC_STRICT   256

Definition at line 44 of file proc.h.

#define MRB_PROC_STRICT_P (   p)    (((p)->flags & MRB_PROC_STRICT) != 0)

Definition at line 45 of file proc.h.

Function Documentation

struct RProc* mrb_closure_new ( mrb_state ,
mrb_irep  
)
read

Definition at line 49 of file proc.c.

Here is the call graph for this function:

struct RProc* mrb_closure_new_cfunc ( mrb_state mrb,
mrb_func_t  func,
int  nlocals 
)
read

Definition at line 70 of file proc.c.

Here is the call graph for this function:

void mrb_proc_copy ( struct RProc a,
struct RProc b 
)

Definition at line 79 of file proc.c.

struct RProc* mrb_proc_new ( mrb_state ,
mrb_irep  
)
read

Definition at line 17 of file proc.c.

Here is the call graph for this function:

Here is the caller graph for this function:

struct RProc* mrb_proc_new_cfunc ( mrb_state ,
mrb_func_t   
)
read

Definition at line 58 of file proc.c.

Here is the call graph for this function:

Here is the caller graph for this function: