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

Go to the source code of this file.

Data Structures

struct  grn_timeval
struct  grn_db_obj
struct  grn_cache_statistics

Macros

#define GRN_API_ENTER
#define GRN_API_RETURN(r)
#define GRN_OP_T0LVL   0
#define GRN_OP_ERR0   1
#define GRN_EMERG   GRN_LOG_EMERG
#define GRN_ALERT   GRN_LOG_ALERT
#define GRN_CRIT   GRN_LOG_CRIT
#define GRN_ERROR   GRN_LOG_ERROR
#define GRN_WARN   GRN_LOG_WARNING
#define GRN_OK   GRN_LOG_NOTICE
#define ERRCLR(ctx)
#define BACKTRACE(ctx)
#define LOGTRACE(ctx, msg)
#define ERRSET(ctx, lvl, r,...)
#define ERRP(ctx, lvl)   (((ctx) && ((grn_ctx *)(ctx))->errlvl <= (lvl)) || (grn_gctx.errlvl <= (lvl)))
#define QLERR(...)
#define QLASSERT(expr)
#define ERR(rc,...)   ERRSET(ctx, GRN_ERROR, (rc), __VA_ARGS__)
#define WARN(rc,...)   ERRSET(ctx, GRN_WARN, (rc), __VA_ARGS__)
#define MERR(...)   ERRSET(ctx, GRN_ALERT, GRN_NO_MEMORY_AVAILABLE, __VA_ARGS__)
#define ALERT(...)   ERRSET(ctx, GRN_ALERT, GRN_SUCCESS, __VA_ARGS__)
#define SERR(str)
#define GERR(rc,...)   ERRSET(&grn_gctx, GRN_ERROR, (rc), __VA_ARGS__)
#define GMERR(...)   ERRSET(&grn_gctx, GRN_ALERT, GRN_NO_MEMORY_AVAILABLE, __VA_ARGS__)
#define GRN_MALLOC(s)   grn_malloc(ctx,s,__FILE__,__LINE__,__FUNCTION__)
#define GRN_CALLOC(s)   grn_calloc(ctx,s,__FILE__,__LINE__,__FUNCTION__)
#define GRN_REALLOC(p, s)   grn_realloc(ctx,p,s,__FILE__,__LINE__,__FUNCTION__)
#define GRN_STRDUP(s)   grn_strdup(ctx,s,__FILE__,__LINE__,__FUNCTION__)
#define GRN_GMALLOC(s)   grn_malloc(&grn_gctx,s,__FILE__,__LINE__,__FUNCTION__)
#define GRN_GCALLOC(s)   grn_calloc(&grn_gctx,s,__FILE__,__LINE__,__FUNCTION__)
#define GRN_GREALLOC(p, s)   grn_realloc(&grn_gctx,p,s,__FILE__,__LINE__,__FUNCTION__)
#define GRN_GSTRDUP(s)   grn_strdup(&grn_gctx,s,__FILE__,__LINE__,__FUNCTION__)
#define GRN_FREE(p)   grn_free(ctx,p,__FILE__,__LINE__,__FUNCTION__)
#define GRN_MALLOCN(t, n)   ((t *)(GRN_MALLOC(sizeof(t) * (n))))
#define GRN_GFREE(p)   grn_free(&grn_gctx,p,__FILE__,__LINE__,__FUNCTION__)
#define GRN_GMALLOCN(t, n)   ((t *)(GRN_GMALLOC(sizeof(t) * (n))))
#define GRN_ASSERT(s)
#define GRN_CTX_ALLOC(ctx, s)   grn_ctx_calloc(ctx,s,__FILE__,__LINE__,__FUNCTION__)
#define GRN_CTX_FREE(ctx, p)   grn_ctx_free(ctx,p,__FILE__,__LINE__,__FUNCTION__)
#define GRN_CTX_ALLOC_L(ctx, s)   grn_ctx_alloc_lifo(ctx,s,f,__FILE__,__LINE__,__FUNCTION__)
#define GRN_CTX_FREE_L(ctx, p)   grn_ctx_free_lifo(ctx,p,__FILE__,__LINE__,__FUNCTION__)
#define grn_malloc   grn_malloc_default
#define grn_calloc   grn_calloc_default
#define grn_realloc   grn_realloc_default
#define grn_strdup   grn_strdup_default
#define grn_free   grn_free_default
#define GRN_CTX_ALLOCATED   (0x80)
#define GRN_CTX_TEMPORARY_DISABLE_II_RESOLVE_SEL_AND   (0x40)
#define GRN_TIMEVAL_STR_SIZE   0x100
#define GRN_TIMEVAL_STR_FORMAT   "%04d-%02d-%02d %02d:%02d:%02d.%06d"
#define GRN_TIME_NSEC_PER_SEC   1000000000
#define GRN_TIME_NSEC_PER_SEC_F   1000000000.0
#define GRN_TIME_NSEC_PER_USEC   (GRN_TIME_NSEC_PER_SEC / GRN_TIME_USEC_PER_SEC)
#define GRN_TIME_NSEC_TO_USEC(nsec)   ((nsec) / GRN_TIME_NSEC_PER_USEC)
#define GRN_TIME_USEC_TO_NSEC(usec)   ((usec) * GRN_TIME_NSEC_PER_USEC)
#define GRN_OBJ_ALLOCATED   (0x01<<2) /* allocated by ctx */
#define GRN_OBJ_EXPRVALUE   (0x01<<3) /* value allocated by grn_expr */
#define GRN_OBJ_EXPRCONST   (0x01<<4) /* constant allocated by grn_expr */
#define GRN_DB_OBJ_SET_TYPE(db_obj, obj_type)

Typedefs

typedef struct _grn_hook grn_hook

Functions

GRN_API void grn_ctx_impl_err (grn_ctx *ctx)
GRN_API grn_bool grn_ctx_impl_should_log (grn_ctx *ctx)
GRN_API void grn_ctx_impl_set_current_error_message (grn_ctx *ctx)
void * grn_ctx_alloc (grn_ctx *ctx, size_t size, int flags, const char *file, int line, const char *func)
void * grn_ctx_malloc (grn_ctx *ctx, size_t size, const char *file, int line, const char *func)
void * grn_ctx_calloc (grn_ctx *ctx, size_t size, const char *file, int line, const char *func)
void * grn_ctx_realloc (grn_ctx *ctx, void *ptr, size_t size, const char *file, int line, const char *func)
char * grn_ctx_strdup (grn_ctx *ctx, const char *s, const char *file, int line, const char *func)
void grn_ctx_free (grn_ctx *ctx, void *ptr, const char *file, int line, const char *func)
void * grn_ctx_alloc_lifo (grn_ctx *ctx, size_t size, const char *file, int line, const char *func)
void grn_ctx_free_lifo (grn_ctx *ctx, void *ptr, const char *file, int line, const char *func)
GRN_API void * grn_malloc_default (grn_ctx *ctx, size_t size, const char *file, int line, const char *func)
void * grn_calloc_default (grn_ctx *ctx, size_t size, const char *file, int line, const char *func)
void * grn_realloc_default (grn_ctx *ctx, void *ptr, size_t size, const char *file, int line, const char *func)
GRN_API char * grn_strdup_default (grn_ctx *ctx, const char *s, const char *file, int line, const char *func)
GRN_API void grn_free_default (grn_ctx *ctx, void *ptr, const char *file, int line, const char *func)
void grn_assert (grn_ctx *ctx, int cond, const char *file, int line, const char *func)
GRN_API grn_rc grn_timeval_now (grn_ctx *ctx, grn_timeval *tv)
GRN_API grn_rc grn_timeval2str (grn_ctx *ctx, grn_timeval *tv, char *buf)
grn_rc grn_str2timeval (const char *str, uint32_t str_len, grn_timeval *tv)
GRN_API void grn_ctx_log (grn_ctx *ctx, const char *fmt,...) GRN_ATTRIBUTE_PRINTF(2)
void grn_ctx_qe_fin (grn_ctx *ctx)
void grn_ctx_loader_clear (grn_ctx *ctx)
void grn_log_reopen (grn_ctx *ctx)
GRN_API grn_rc grn_ctx_sendv (grn_ctx *ctx, int argc, char **argv, int flags)
GRN_API void grn_ctx_set_next_expr (grn_ctx *ctx, grn_obj *expr)
int grn_alloc_count (void)
grn_content_type grn_get_ctype (grn_obj *var)
void grn_cache_init (void)
grn_objgrn_cache_fetch (grn_ctx *ctx, grn_cache *cache, const char *str, uint32_t str_size)
void grn_cache_unref (grn_ctx *ctx, grn_cache *cache, const char *str, uint32_t str_size)
void grn_cache_update (grn_ctx *ctx, grn_cache *cache, const char *str, uint32_t str_size, grn_obj *value)
void grn_cache_expire (grn_cache *cache, int32_t size)
void grn_cache_fin (void)
void grn_cache_get_statistics (grn_ctx *ctx, grn_cache *cache, grn_cache_statistics *statistics)
void grn_ctx_concat_func (grn_ctx *ctx, int flags, void *dummy)
GRN_API void grn_ctx_stream_out_func (grn_ctx *c, int flags, void *stream)
grn_rc grn_db_init_builtin_procs (grn_ctx *ctx)

Variables

GRN_VAR grn_ctx grn_gctx
int grn_pagesize
grn_critical_section grn_glock
uint32_t grn_gtick
grn_timeval grn_starttime

Macro Definition Documentation

#define ALERT (   ...)    ERRSET(ctx, GRN_ALERT, GRN_SUCCESS, __VA_ARGS__)

Definition at line 152 of file ctx.h.

#define BACKTRACE (   ctx)

Definition at line 95 of file ctx.h.

#define ERR (   rc,
  ... 
)    ERRSET(ctx, GRN_ERROR, (rc), __VA_ARGS__)

Definition at line 149 of file ctx.h.

#define ERRCLR (   ctx)
Value:
do {\
if (ctx) {\
((grn_ctx *)ctx)->errlvl = GRN_OK;\
((grn_ctx *)ctx)->rc = GRN_SUCCESS;\
}\
errno = 0;\
grn_gctx.errlvl = GRN_OK;\
grn_gctx.rc = GRN_SUCCESS;\
} while (0)

Definition at line 82 of file ctx.h.

#define ERRP (   ctx,
  lvl 
)    (((ctx) && ((grn_ctx *)(ctx))->errlvl <= (lvl)) || (grn_gctx.errlvl <= (lvl)))

Definition at line 134 of file ctx.h.

#define ERRSET (   ctx,
  lvl,
  r,
  ... 
)
Value:
do {\
grn_ctx *ctx_ = (grn_ctx *)ctx;\
ctx_->errlvl = (lvl);\
ctx_->rc = (r);\
ctx_->errfile = __FILE__;\
ctx_->errline = __LINE__;\
ctx_->errfunc = __FUNCTION__;\
grn_ctx_impl_err(ctx);\
grn_ctx_log(ctx, __VA_ARGS__);\
grn_ctx_impl_set_current_error_message(ctx);\
GRN_LOG(ctx, lvl, __VA_ARGS__);\
BACKTRACE(ctx);\
if (lvl <= GRN_LOG_ERROR) { LOGTRACE(ctx, lvl); }\
}\
} while (0)

Definition at line 117 of file ctx.h.

#define GERR (   rc,
  ... 
)    ERRSET(&grn_gctx, GRN_ERROR, (rc), __VA_ARGS__)

Definition at line 286 of file ctx.h.

#define GMERR (   ...)    ERRSET(&grn_gctx, GRN_ALERT, GRN_NO_MEMORY_AVAILABLE, __VA_ARGS__)

Definition at line 287 of file ctx.h.

#define GRN_ALERT   GRN_LOG_ALERT

Definition at line 76 of file ctx.h.

#define GRN_API_ENTER
Value:
do {\
if ((ctx)->seqno & 1) {\
(ctx)->subno++;\
} else {\
(ctx)->errlvl = GRN_OK;\
(ctx)->rc = GRN_SUCCESS;\
(ctx)->seqno++;\
}\
GRN_TEST_YIELD();\
} while (0)

Definition at line 48 of file ctx.h.

#define GRN_API_RETURN (   r)
Value:
do {\
if (ctx->subno) {\
ctx->subno--;\
} else {\
ctx->seqno++;\
}\
GRN_TEST_YIELD();\
return r;\
} while (0)

Definition at line 60 of file ctx.h.

#define GRN_ASSERT (   s)

Definition at line 305 of file ctx.h.

#define GRN_CALLOC (   s)    grn_calloc(ctx,s,__FILE__,__LINE__,__FUNCTION__)

Definition at line 290 of file ctx.h.

#define grn_calloc   grn_calloc_default

Definition at line 354 of file ctx.h.

#define GRN_CRIT   GRN_LOG_CRIT

Definition at line 77 of file ctx.h.

#define GRN_CTX_ALLOC (   ctx,
 
)    grn_ctx_calloc(ctx,s,__FILE__,__LINE__,__FUNCTION__)

Definition at line 308 of file ctx.h.

#define GRN_CTX_ALLOC_L (   ctx,
 
)    grn_ctx_alloc_lifo(ctx,s,f,__FILE__,__LINE__,__FUNCTION__)

Definition at line 310 of file ctx.h.

#define GRN_CTX_ALLOCATED   (0x80)

Definition at line 383 of file ctx.h.

#define GRN_CTX_FREE (   ctx,
 
)    grn_ctx_free(ctx,p,__FILE__,__LINE__,__FUNCTION__)

Definition at line 309 of file ctx.h.

#define GRN_CTX_FREE_L (   ctx,
 
)    grn_ctx_free_lifo(ctx,p,__FILE__,__LINE__,__FUNCTION__)

Definition at line 311 of file ctx.h.

#define GRN_CTX_TEMPORARY_DISABLE_II_RESOLVE_SEL_AND   (0x40)

Definition at line 384 of file ctx.h.

#define GRN_DB_OBJ_SET_TYPE (   db_obj,
  obj_type 
)
Value:
do {\
(db_obj)->obj.header.type = (obj_type);\
(db_obj)->obj.header.impl_flags = 0;\
(db_obj)->obj.header.flags = 0;\
(db_obj)->obj.id = GRN_ID_NIL;\
(db_obj)->obj.user_data.ptr = NULL;\
(db_obj)->obj.finalizer = NULL;\
(db_obj)->obj.hooks[0] = NULL;\
(db_obj)->obj.hooks[1] = NULL;\
(db_obj)->obj.hooks[2] = NULL;\
(db_obj)->obj.hooks[3] = NULL;\
(db_obj)->obj.hooks[4] = NULL;\
(db_obj)->obj.source = NULL;\
(db_obj)->obj.source_size = 0;\
} while (0)

Definition at line 450 of file ctx.h.

#define GRN_EMERG   GRN_LOG_EMERG

Definition at line 75 of file ctx.h.

#define GRN_ERROR   GRN_LOG_ERROR

Definition at line 78 of file ctx.h.

#define GRN_FREE (   p)    grn_free(ctx,p,__FILE__,__LINE__,__FUNCTION__)

Definition at line 297 of file ctx.h.

#define grn_free   grn_free_default

Definition at line 357 of file ctx.h.

#define GRN_GCALLOC (   s)    grn_calloc(&grn_gctx,s,__FILE__,__LINE__,__FUNCTION__)

Definition at line 294 of file ctx.h.

#define GRN_GFREE (   p)    grn_free(&grn_gctx,p,__FILE__,__LINE__,__FUNCTION__)

Definition at line 299 of file ctx.h.

#define GRN_GMALLOC (   s)    grn_malloc(&grn_gctx,s,__FILE__,__LINE__,__FUNCTION__)

Definition at line 293 of file ctx.h.

#define GRN_GMALLOCN (   t,
 
)    ((t *)(GRN_GMALLOC(sizeof(t) * (n))))

Definition at line 300 of file ctx.h.

#define GRN_GREALLOC (   p,
 
)    grn_realloc(&grn_gctx,p,s,__FILE__,__LINE__,__FUNCTION__)

Definition at line 295 of file ctx.h.

#define GRN_GSTRDUP (   s)    grn_strdup(&grn_gctx,s,__FILE__,__LINE__,__FUNCTION__)

Definition at line 296 of file ctx.h.

#define GRN_MALLOC (   s)    grn_malloc(ctx,s,__FILE__,__LINE__,__FUNCTION__)

Definition at line 289 of file ctx.h.

#define grn_malloc   grn_malloc_default

Definition at line 353 of file ctx.h.

#define GRN_MALLOCN (   t,
 
)    ((t *)(GRN_MALLOC(sizeof(t) * (n))))

Definition at line 298 of file ctx.h.

#define GRN_OBJ_ALLOCATED   (0x01<<2) /* allocated by ctx */

Definition at line 425 of file ctx.h.

#define GRN_OBJ_EXPRCONST   (0x01<<4) /* constant allocated by grn_expr */

Definition at line 427 of file ctx.h.

#define GRN_OBJ_EXPRVALUE   (0x01<<3) /* value allocated by grn_expr */

Definition at line 426 of file ctx.h.

#define GRN_OK   GRN_LOG_NOTICE

Definition at line 80 of file ctx.h.

#define GRN_OP_ERR0   1

Definition at line 73 of file ctx.h.

#define GRN_OP_T0LVL   0

Definition at line 72 of file ctx.h.

#define GRN_REALLOC (   p,
 
)    grn_realloc(ctx,p,s,__FILE__,__LINE__,__FUNCTION__)

Definition at line 291 of file ctx.h.

#define grn_realloc   grn_realloc_default

Definition at line 355 of file ctx.h.

#define GRN_STRDUP (   s)    grn_strdup(ctx,s,__FILE__,__LINE__,__FUNCTION__)

Definition at line 292 of file ctx.h.

#define grn_strdup   grn_strdup_default

Definition at line 356 of file ctx.h.

#define GRN_TIME_NSEC_PER_SEC   1000000000

Definition at line 399 of file ctx.h.

#define GRN_TIME_NSEC_PER_SEC_F   1000000000.0

Definition at line 400 of file ctx.h.

#define GRN_TIME_NSEC_PER_USEC   (GRN_TIME_NSEC_PER_SEC / GRN_TIME_USEC_PER_SEC)

Definition at line 401 of file ctx.h.

#define GRN_TIME_NSEC_TO_USEC (   nsec)    ((nsec) / GRN_TIME_NSEC_PER_USEC)

Definition at line 402 of file ctx.h.

#define GRN_TIME_USEC_TO_NSEC (   usec)    ((usec) * GRN_TIME_NSEC_PER_USEC)

Definition at line 403 of file ctx.h.

#define GRN_TIMEVAL_STR_FORMAT   "%04d-%02d-%02d %02d:%02d:%02d.%06d"

Definition at line 397 of file ctx.h.

#define GRN_TIMEVAL_STR_SIZE   0x100

Definition at line 394 of file ctx.h.

#define GRN_WARN   GRN_LOG_WARNING

Definition at line 79 of file ctx.h.

#define LOGTRACE (   ctx,
  msg 
)

Definition at line 114 of file ctx.h.

#define MERR (   ...)    ERRSET(ctx, GRN_ALERT, GRN_NO_MEMORY_AVAILABLE, __VA_ARGS__)

Definition at line 151 of file ctx.h.

#define QLASSERT (   expr)
Value:
do {\
if (!(expr)) { QLERR("syntax error"); }\
} while (0)

Definition at line 142 of file ctx.h.

#define QLERR (   ...)
Value:
do {\
ERRSET(ctx, GRN_WARN, GRN_INVALID_ARGUMENT, __VA_ARGS__);\
return F;\
} while (0)

Definition at line 137 of file ctx.h.

#define SERR (   str)

Definition at line 236 of file ctx.h.

#define WARN (   rc,
  ... 
)    ERRSET(ctx, GRN_WARN, (rc), __VA_ARGS__)

Definition at line 150 of file ctx.h.

Typedef Documentation

typedef struct _grn_hook grn_hook

Definition at line 429 of file ctx.h.

Function Documentation

int grn_alloc_count ( void  )

Definition at line 2724 of file ctx.c.

void grn_assert ( grn_ctx ctx,
int  cond,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2819 of file ctx.c.

void grn_cache_expire ( grn_cache cache,
int32_t  size 
)

Definition at line 2210 of file ctx.c.

grn_obj* grn_cache_fetch ( grn_ctx ctx,
grn_cache cache,
const char *  str,
uint32_t  str_size 
)

Definition at line 2119 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void grn_cache_fin ( void  )

Definition at line 2221 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void grn_cache_get_statistics ( grn_ctx ctx,
grn_cache cache,
grn_cache_statistics statistics 
)

Definition at line 2096 of file ctx.c.

void grn_cache_init ( void  )

Definition at line 2070 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void grn_cache_unref ( grn_ctx ctx,
grn_cache cache,
const char *  str,
uint32_t  str_size 
)

Definition at line 2151 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void grn_cache_update ( grn_ctx ctx,
grn_cache cache,
const char *  str,
uint32_t  str_size,
grn_obj value 
)

Definition at line 2164 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void* grn_calloc_default ( grn_ctx ctx,
size_t  size,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2658 of file ctx.c.

void* grn_ctx_alloc ( grn_ctx ctx,
size_t  size,
int  flags,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2234 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void* grn_ctx_alloc_lifo ( grn_ctx ctx,
size_t  size,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2443 of file ctx.c.

Here is the call graph for this function:

void* grn_ctx_calloc ( grn_ctx ctx,
size_t  size,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2318 of file ctx.c.

Here is the call graph for this function:

void grn_ctx_concat_func ( grn_ctx ctx,
int  flags,
void *  dummy 
)

Definition at line 1935 of file ctx.c.

Here is the call graph for this function:

void grn_ctx_free ( grn_ctx ctx,
void *  ptr,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2358 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void grn_ctx_free_lifo ( grn_ctx ctx,
void *  ptr,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2498 of file ctx.c.

Here is the call graph for this function:

GRN_API void grn_ctx_impl_err ( grn_ctx ctx)

Definition at line 525 of file ctx.c.

Here is the caller graph for this function:

GRN_API void grn_ctx_impl_set_current_error_message ( grn_ctx ctx)

Definition at line 561 of file ctx.c.

GRN_API grn_bool grn_ctx_impl_should_log ( grn_ctx ctx)

Definition at line 546 of file ctx.c.

void grn_ctx_loader_clear ( grn_ctx ctx)

Definition at line 401 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

GRN_API void grn_ctx_log ( grn_ctx ctx,
const char *  fmt,
  ... 
)

Definition at line 2810 of file ctx.c.

void* grn_ctx_malloc ( grn_ctx ctx,
size_t  size,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2311 of file ctx.c.

Here is the call graph for this function:

void grn_ctx_qe_fin ( grn_ctx ctx)
void* grn_ctx_realloc ( grn_ctx ctx,
void *  ptr,
size_t  size,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2325 of file ctx.c.

Here is the call graph for this function:

GRN_API grn_rc grn_ctx_sendv ( grn_ctx ctx,
int  argc,
char **  argv,
int  flags 
)

Definition at line 1769 of file ctx.c.

Here is the call graph for this function:

GRN_API void grn_ctx_set_next_expr ( grn_ctx ctx,
grn_obj expr 
)

Definition at line 519 of file ctx.c.

char* grn_ctx_strdup ( grn_ctx ctx,
const char *  s,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2345 of file ctx.c.

Here is the call graph for this function:

GRN_API void grn_ctx_stream_out_func ( grn_ctx c,
int  flags,
void *  stream 
)

Definition at line 1944 of file ctx.c.

grn_rc grn_db_init_builtin_procs ( grn_ctx ctx)
GRN_API void grn_free_default ( grn_ctx ctx,
void *  ptr,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2681 of file ctx.c.

grn_content_type grn_get_ctype ( grn_obj var)

Definition at line 1492 of file ctx.c.

void grn_log_reopen ( grn_ctx ctx)

Definition at line 1186 of file ctx.c.

Here is the call graph for this function:

GRN_API void* grn_malloc_default ( grn_ctx ctx,
size_t  size,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2636 of file ctx.c.

void* grn_realloc_default ( grn_ctx ctx,
void *  ptr,
size_t  size,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2696 of file ctx.c.

grn_rc grn_str2timeval ( const char *  str,
uint32_t  str_len,
grn_timeval tv 
)

Definition at line 152 of file ctx.c.

Here is the call graph for this function:

Here is the caller graph for this function:

GRN_API char* grn_strdup_default ( grn_ctx ctx,
const char *  s,
const char *  file,
int  line,
const char *  func 
)

Definition at line 2730 of file ctx.c.

GRN_API grn_rc grn_timeval2str ( grn_ctx ctx,
grn_timeval tv,
char *  buf 
)

Definition at line 131 of file ctx.c.

Here is the caller graph for this function:

GRN_API grn_rc grn_timeval_now ( grn_ctx ctx,
grn_timeval tv 
)

Definition at line 88 of file ctx.c.

Here is the caller graph for this function:

Variable Documentation

GRN_VAR grn_ctx grn_gctx

Definition at line 378 of file ctx.h.

grn_critical_section grn_glock

Definition at line 55 of file ctx.c.

uint32_t grn_gtick

Definition at line 56 of file ctx.c.

int grn_pagesize

Definition at line 54 of file ctx.c.

grn_timeval grn_starttime

Definition at line 730 of file ctx.c.