Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Typedefs | Functions
symbol.c File Reference
#include <ctype.h>
#include <limits.h>
#include <string.h>
#include "mruby.h"
#include "mruby/khash.h"
Include dependency graph for symbol.c:

Go to the source code of this file.

Data Structures

struct  symbol_name

Macros

#define sym_hash_equal(mrb, a, b)   (a.len == b.len && memcmp(a.name, b.name, a.len) == 0)
#define SIGN_EXTEND_CHAR(c)   ((((unsigned char)(c)) ^ 128) - 128)
#define is_identchar(c)   (SIGN_EXTEND_CHAR(c)!=-1&&(ISALNUM(c) || (c) == '_'))
#define lesser(a, b)   (((a)>(b))?(b):(a))

Typedefs

typedef struct symbol_name symbol_name

Functions

mrb_sym mrb_intern2 (mrb_state *mrb, const char *name, size_t len)
mrb_sym mrb_intern_cstr (mrb_state *mrb, const char *name)
mrb_sym mrb_intern_str (mrb_state *mrb, mrb_value str)
mrb_value mrb_check_intern (mrb_state *mrb, const char *name, size_t len)
mrb_value mrb_check_intern_cstr (mrb_state *mrb, const char *name)
mrb_value mrb_check_intern_str (mrb_state *mrb, mrb_value str)
const char * mrb_sym2name_len (mrb_state *mrb, mrb_sym sym, size_t *lenp)
void mrb_free_symtbl (mrb_state *mrb)
void mrb_init_symtbl (mrb_state *mrb)
mrb_value mrb_sym_to_s (mrb_state *mrb, mrb_value sym)
mrb_value mrb_sym2str (mrb_state *mrb, mrb_sym sym)
const char * mrb_sym2name (mrb_state *mrb, mrb_sym sym)
void mrb_init_symbol (mrb_state *mrb)

Macro Definition Documentation

#define is_identchar (   c)    (SIGN_EXTEND_CHAR(c)!=-1&&(ISALNUM(c) || (c) == '_'))

Definition at line 252 of file symbol.c.

#define lesser (   a,
 
)    (((a)>(b))?(b):(a))

Definition at line 410 of file symbol.c.

#define SIGN_EXTEND_CHAR (   c)    ((((unsigned char)(c)) ^ 128) - 128)

Definition at line 250 of file symbol.c.

#define sym_hash_equal (   mrb,
  a,
 
)    (a.len == b.len && memcmp(a.name, b.name, a.len) == 0)

Definition at line 32 of file symbol.c.

Typedef Documentation

typedef struct symbol_name symbol_name

Function Documentation

mrb_value mrb_check_intern ( mrb_state mrb,
const char *  name,
size_t  len 
)

Definition at line 76 of file symbol.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_check_intern_cstr ( mrb_state mrb,
const char *  name 
)

Definition at line 93 of file symbol.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_check_intern_str ( mrb_state mrb,
mrb_value  str 
)

Definition at line 99 of file symbol.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mrb_free_symtbl ( mrb_state mrb)

Definition at line 126 of file symbol.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mrb_init_symbol ( mrb_state mrb)

Definition at line 443 of file symbol.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void mrb_init_symtbl ( mrb_state mrb)

Definition at line 137 of file symbol.c.

Here is the caller graph for this function:

mrb_sym mrb_intern2 ( mrb_state mrb,
const char *  name,
size_t  len 
)

Definition at line 38 of file symbol.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_sym mrb_intern_cstr ( mrb_state mrb,
const char *  name 
)

Definition at line 64 of file symbol.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_sym mrb_intern_str ( mrb_state mrb,
mrb_value  str 
)

Definition at line 70 of file symbol.c.

Here is the call graph for this function:

Here is the caller graph for this function:

const char* mrb_sym2name ( mrb_state mrb,
mrb_sym  sym 
)

Definition at line 395 of file symbol.c.

Here is the call graph for this function:

Here is the caller graph for this function:

const char* mrb_sym2name_len ( mrb_state mrb,
mrb_sym  sym,
size_t *  lenp 
)

Definition at line 106 of file symbol.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_sym2str ( mrb_state mrb,
mrb_sym  sym 
)

Definition at line 380 of file symbol.c.

Here is the call graph for this function:

Here is the caller graph for this function:

mrb_value mrb_sym_to_s ( mrb_state mrb,
mrb_value  sym 
)

Definition at line 209 of file symbol.c.

Here is the call graph for this function:

Here is the caller graph for this function: