Groonga 3.0.9 Source Code Document
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
groonga
vendor
mruby-eeac4be
mrbgems
mruby-sprintf
src
kernel.c
Go to the documentation of this file.
1
/*
2
** kernel.c - Kernel module suppliment
3
**
4
** See Copyright Notice in mruby.h
5
*/
6
7
#include "
mruby.h
"
8
9
mrb_value
mrb_f_sprintf
(
mrb_state
*mrb,
mrb_value
obj);
/* in sprintf.c */
10
11
void
12
mrb_mruby_sprintf_gem_init
(
mrb_state
* mrb)
13
{
14
struct
RClass
*krn;
15
16
if
(mrb->
kernel_module
== NULL) {
17
mrb->
kernel_module
=
mrb_define_module
(mrb,
"Kernel"
);
/* Might be PARANOID. */
18
}
19
krn = mrb->
kernel_module
;
20
21
mrb_define_method
(mrb, krn,
"sprintf"
,
mrb_f_sprintf
,
MRB_ARGS_ANY
());
22
mrb_define_method
(mrb, krn,
"format"
,
mrb_f_sprintf
,
MRB_ARGS_ANY
());
23
}
24
25
void
26
mrb_mruby_sprintf_gem_final
(
mrb_state
* mrb)
27
{
28
/* nothing to do. */
29
}
30
Generated on Sun Nov 10 2013 09:49:05 for Groonga 3.0.9 Source Code Document by
1.8.1.2