mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
1169 lines
31 KiB
Text
1169 lines
31 KiB
Text
|
.\" README.EXT - -*- Text -*- created at: Mon Aug 7 16:45:54 JST 1995
|
|||
|
|
|||
|
Ruby<EFBFBD>γ<EFBFBD>ĥ<EFBFBD>饤<EFBFBD>֥<EFBFBD><EFBFBD><EFBFBD><EFBFBD>κ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
1<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>
|
|||
|
|
|||
|
C<EFBFBD><EFBFBD><EFBFBD>ѿ<EFBFBD><EFBFBD>ˤϷ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ꡤ<EFBFBD>ǡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˤϷ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD>Ǥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>顤<EFBFBD><EFBFBD>
|
|||
|
<EFBFBD>Ȥ<EFBFBD><EFBFBD>Хݥ<EFBFBD><EFBFBD><EFBFBD>int<EFBFBD><EFBFBD><EFBFBD>ѿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD>Ƽ<EFBFBD>
|
|||
|
<EFBFBD>갷<EFBFBD><EFBF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09>⥸<EFBFBD>塼<EFBFBD><E5A1BC>
|
|||
|
T_FLOAT <09><>ư<EFBFBD><C6B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
T_STRING ʸ<><CAB8><EFBFBD><EFBFBD>
|
|||
|
T_REGEXP <09><><EFBFBD><EFBFBD>ɽ<EFBFBD><C9BD>
|
|||
|
T_ARRAY <09><><EFBFBD><EFBFBD>
|
|||
|
T_FIXNUM Fixnum(31bitĹ<74><C4B9><EFBFBD><EFBFBD>)
|
|||
|
T_HASH Ϣ<><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
T_STRUCT (Ruby<62><79>)<29><>¤<EFBFBD><C2A4>
|
|||
|
T_BIGNUM ¿<><C2BF>Ĺ<EFBFBD><C4B9><EFBFBD><EFBFBD>
|
|||
|
T_FILE <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
T_TRUE <09><>
|
|||
|
T_FALSE <09><>
|
|||
|
T_DATA <09>ǡ<EFBFBD><C7A1><EFBFBD>
|
|||
|
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>¾<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʲ<EFBFBD><EFBFBD>Υ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>פ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
T_ICLASS
|
|||
|
T_MATCH
|
|||
|
T_VARMAP
|
|||
|
T_SCOPE
|
|||
|
T_NODE
|
|||
|
|
|||
|
<EFBFBD>ۤȤ<EFBFBD><EFBFBD>ɤΥ<EFBFBD><EFBFBD><EFBFBD><EFBF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FBD>ƽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˤϡ<EFBFBD>TYPE()<29><><EFBFBD>ͤ<EFBFBD>ʬ<EFBFBD><CAAC><EFBFBD><EFBFBD><EFBFBD>뤳<EFBFBD>Ȥˤʤ<CBA4><CAA4>ޤ<EFBFBD><DEA4><EFBFBD>
|
|||
|
|
|||
|
switch (TYPE(obj)) {
|
|||
|
case T_FIXNUM:
|
|||
|
/* FIXNUM<55>ν<EFBFBD><CEBD><EFBFBD> */
|
|||
|
break;
|
|||
|
case T_STRING:
|
|||
|
/* ʸ<><CAB8><EFBFBD><EFBFBD><EFBFBD>ν<EFBFBD><CEBD><EFBFBD> */
|
|||
|
break;
|
|||
|
case T_ARRAY:
|
|||
|
/* <20><><EFBFBD><EFBFBD><EFBFBD>ν<EFBFBD><CEBD><EFBFBD> */
|
|||
|
break;
|
|||
|
default:
|
|||
|
/* <20>㳰<EFBFBD><E3B3B0>ȯ<EFBFBD><C8AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|||
|
TypeError("not valid value");
|
|||
|
break;
|
|||
|
}
|
|||
|
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȥǡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>פ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>å<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ơ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㳰<EFBFBD><EFBFBD>ȯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD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><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥
|
|||
|
|
|||
|
rb_str_new2(char *ptr)
|
|||
|
|
|||
|
C<><43>ʸ<EFBFBD><CAB8><EFBFBD><EFBFBD>Ruby<62><79>ʸ<EFBFBD><CAB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥<EFBFBD><EBA1A5><EFBFBD>δؿ<CEB4><D8BF>ε<EFBFBD>ǽ<EFBFBD><C7BD>
|
|||
|
rb_str_new(ptr, strlen(ptr))<29><>Ʊ<EFBFBD><C6B1><EFBFBD>Ǥ<EFBFBD><C7A4>롥
|
|||
|
|
|||
|
rb_str_cat(VALUE str, char *ptr, int len)
|
|||
|
|
|||
|
Ruby<62><79>ʸ<EFBFBD><CAB8><EFBFBD><EFBFBD>str<74><72>len<65>Х<EFBFBD><D0A5>Ȥ<EFBFBD>ʸ<EFBFBD><CAB8><EFBFBD><EFBFBD>ptr<74><72><EFBFBD>ɲä<C9B2><C3A4>롥
|
|||
|
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ф<EFBFBD><D0A4><EFBFBD><EFBFBD>ؿ<EFBFBD>
|
|||
|
|
|||
|
rb_ary_new()
|
|||
|
|
|||
|
<20><><EFBFBD>Ǥ<EFBFBD>0<EFBFBD><30><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥
|
|||
|
|
|||
|
rb_ary_new2(int len)
|
|||
|
|
|||
|
<20><><EFBFBD>Ǥ<EFBFBD>0<EFBFBD><30><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥len<65><6E><EFBFBD><EFBFBD>ʬ<EFBFBD><CAAC><EFBFBD>ΰ<EFBFBD><CEB0>餫<F2A4A2A4><E9A4AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<20><><EFBFBD>ƤƤ<C6A4><C6A4><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
rb_ary_new3(int n, ...)
|
|||
|
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD>ǻ<EFBFBD><C7BB>ꤷ<EFBFBD><EAA4B7>n<EFBFBD><6E><EFBFBD>Ǥ<EFBFBD><C7A4>ޤ<EFBFBD><DEA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥
|
|||
|
|
|||
|
rb_ary_new4(int n, VALUE *elts)
|
|||
|
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϳ<EFBFBD><CDBF><EFBFBD><EFBFBD>n<EFBFBD><6E><EFBFBD>Ǥ<EFBFBD><C7A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥
|
|||
|
|
|||
|
rb_ary_push(VALUE ary, VALUE val)
|
|||
|
rb_ary_pop(VALUE ary)
|
|||
|
rb_ary_shift(VALUE ary)
|
|||
|
rb_ary_unshift(VALUE ary, VALUE val)
|
|||
|
rb_ary_entry(VALUE ary, int idx)
|
|||
|
|
|||
|
Array<61><79>Ʊ̾<C6B1>Υ<CEA5>åɤ<C3A5>Ʊ<EFBFBD><C6B1>Ư<EFBFBD><C6AF><EFBFBD><EFBFBD><F2A4B9A4>ؿ<EFBFBD><D8BF><EFBFBD><EFBFBD><EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɬ<EFBFBD><C9AC>
|
|||
|
<20><><EFBFBD><EFBFBD><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FBD>塼<EFBFBD><E5A1BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>饹<EFBFBD><EFBFBD><EFBFBD>⥸<EFBFBD>塼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>뤿<EFBFBD><EFBFBD><EFBFBD>ˤϡ<EFBFBD><EFBFBD>ʲ<EFBFBD><EFBFBD>δؿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
VALUE rb_define_class(char *name, VALUE super)
|
|||
|
VALUE rb_define_module(char *name)
|
|||
|
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>δؿ<EFBFBD><EFBFBD>Ͽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>줿<EFBFBD><EFBFBD><EFBFBD>饹<EFBFBD><EFBFBD><EFBFBD>⥸<EFBFBD>塼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD>åɤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͤ<EFBFBD>ɬ<EFBFBD>פʤΤǡ<EFBFBD><EFBFBD>ۤȤ<EFBFBD><EFBFBD>ɤξ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͤ<EFBFBD><EFBFBD>ѿ<EFBFBD><EFBFBD>˳<EFBFBD>Ǽ<EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><EFBFBD><EFBFBD>ɬ<EFBFBD>פ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǥ<EFBFBD><EFBFBD>礦<EFBFBD><EFBFBD>
|
|||
|
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>饹<EFBFBD><EFBFBD><EFBFBD>⥸<EFBFBD>塼<EFBFBD><EFBFBD><EFBFBD><EFBFBD>¾<EFBFBD>Υ<EFBFBD><EFBFBD>饹<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˥ͥ<EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD>ϰʲ<EFBFBD><EFBFBD>δؿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
VALUE rb_define_class(VALUE outer, char *name, VALUE super)
|
|||
|
VALUE rb_define_module(VALUE outer, char *name)
|
|||
|
|
|||
|
2.1.2 <20><EFBFBD>å<EFBFBD>/<2F>ðۥ<DBA5>å<EFBFBD><C3A5><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
<EFBFBD><EFBFBD>åɤ<EFBFBD><EFBFBD>ðۥ<EFBFBD>åɤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˤϰʲ<EFBFBD><EFBFBD>δؿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
void rb_define_method(VALUE class, char *name,
|
|||
|
VALUE (*func)(), int argc)
|
|||
|
|
|||
|
void rb_define_singleton_method(VALUE object, char *name,
|
|||
|
VALUE (*func)(), int argc)
|
|||
|
|
|||
|
|
|||
|
ǰ<EFBFBD>Τ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡ<EFBFBD><EFBFBD>ðۥ<EFBFBD>åɡפȤϡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Υ<EFBFBD><EFBFBD>֥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD>Ȥ<EFBFBD><EFBFBD>Ф<EFBFBD><EFBFBD>Ƥ<EFBFBD><EFBFBD><EFBFBD>ͭ<EFBFBD><EFBFBD><EFBFBD>ʥ<EFBFBD>åɤǤ<EFBFBD><EFBFBD><EFBFBD>Ruby<EFBFBD>ǤϤ褯Smalltalk<EFBFBD>ˤ<EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>륯<EFBFBD>饹<EFBFBD><EFBFBD>åɤȤ<EFBFBD><EFBFBD>ơ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>饹<EFBFBD><EFBFBD><EFBFBD>Ф<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ðۥ<EFBFBD>åɤ<EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>δؿ<EFBFBD><EFBFBD><EFBFBD> argc<67>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD><EFBFBD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BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؿ<EFBFBD><EFBFBD>Ϥ⤦<EFBFBD><EFBFBD><EFBFBD>Ĥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҤȤĤ<EFBFBD>private<EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>åɤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؿ<EFBFBD><EFBFBD>ǡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>rb_define_method()<29><>Ʊ<EFBFBD><C6B1><EFBFBD>Ǥ<EFBFBD><C7A4><EFBFBD>
|
|||
|
|
|||
|
void rb_define_private_method(VALUE class, char *name,
|
|||
|
VALUE (*func)(), int argc)
|
|||
|
|
|||
|
private<EFBFBD><EFBFBD>åɤȤϴؿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƤӽФ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥν<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD>ɤǤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
<EFBFBD>⤦<EFBFBD>ҤȤĤϥ⥸<EFBFBD>塼<EFBFBD><EFBFBD><EFBFBD>ؿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΤǤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥸<EFBFBD>塼<EFBFBD><EFBFBD><EFBFBD>ؿ<EFBFBD>
|
|||
|
<EFBFBD>Ȥ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<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
void rb_define_module_function(VALUE module, char *name,
|
|||
|
VALUE (*func)(), int argc)
|
|||
|
|
|||
|
<EFBFBD>ؿ<EFBFBD>Ū<EFBFBD><EFBFBD>å<EFBFBD>(Kernel<65>⥸<EFBFBD>塼<EFBFBD><E5A1BC><EFBFBD><EFBFBD>private method)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>뤿
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>δؿ<EFBFBD><EFBFBD>ϰʲ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>̤<EFBFBD><EFBFBD>Ǥ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
void rb_define_global_function(char *name, VALUE (*func)(), int argc)
|
|||
|
|
|||
|
|
|||
|
2.1.3 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
<EFBFBD><EFBFBD>ĥ<EFBFBD>饤<EFBFBD>֥<EFBFBD><EFBFBD>꤬ɬ<EFBFBD>פ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϥ<EFBFBD><EFBFBD>餫<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɤ<EFBFBD>
|
|||
|
<EFBFBD>Ǥ<EFBFBD><EFBFBD>礦<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
void rb_define_const(VALUE class, char *name, VALUE val)
|
|||
|
void rb_define_global_const(char *name, VALUE val)
|
|||
|
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>Ԥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Υ<EFBFBD><EFBFBD>饹/<2F>⥸<EFBFBD>塼<EFBFBD><E5A1BC><EFBFBD><EFBFBD>°<EFBFBD><C2B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ρ<EFBFBD><CEA1><EFBFBD>
|
|||
|
<EFBFBD>Ԥϥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Х<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΤǤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
2.2 Ruby<62>ε<EFBFBD>ǽ<EFBFBD><C7BD>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD>ƤӽФ<D3BD>
|
|||
|
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>ˡ<EFBFBD>1.5 Ruby<62>Υǡ<CEA5><C7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EEA4B9><EFBFBD>٤ǰ<D9A4><C7B0><EFBFBD><EFBFBD>Ҳ𤷤<D2B2><F0A4B7A4>褦<EFBFBD>ʴؿ<CAB4><D8BF><EFBFBD>
|
|||
|
<EFBFBD>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D>¾<EFBFBD>˰<EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㤦<EFBFBD>ʲ<EFBFBD><EFBFBD>δؿ<EFBFBD><EFBFBD>⤢<EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
VALUE rb_funcall2(VALUE recv, ID mid, int argc, VALUE *argv)
|
|||
|
VALUE rb_apply(VALUE recv, ID mid, VALUE args)
|
|||
|
|
|||
|
apply<EFBFBD>ˤϰ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD><EFBFBD>Ruby<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϳ<EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
2.2.4 <20>ѿ<EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
C<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥäƻ<EFBFBD><EFBFBD>ȡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Τϡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>Ǥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><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BFBD><EFBFBD><EFBFBD>Ĥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǥ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>hook<EFBFBD>դ<EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѿ<EFBFBD><EFBFBD>ϰʲ<EFBFBD><EFBFBD>δؿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>hook<EFBFBD>դ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѿ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD>ͤλ<EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>hook<EFBFBD>ǹԤ<EFBFBD>ɬ<EFBFBD>פ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
void rb_define_hooked_variable(char *name, VALUE *var,
|
|||
|
VALUE (*getter)(), VALUE (*setter)())
|
|||
|
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>δؿ<EFBFBD><EFBFBD><EFBFBD>C<EFBFBD>δؿ<EFBFBD><EFBFBD>ˤ<EFBFBD><EFBFBD>ä<EFBFBD>hook<EFBFBD>ΤĤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>줿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD>줿<EFBFBD><EFBFBD><EFBFBD>ˤϴؿ<EFBFBD>getter<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>åȤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˤϴؿ<EFBFBD>setter<EFBFBD><EFBFBD><EFBFBD>ƤФ<EFBFBD><EFBFBD>롥hook<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ꤷ<EFBFBD>ʤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>getter<EFBFBD><EFBFBD>
|
|||
|
setter<EFBFBD><EFBFBD>0<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ꤷ<EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
# getter<65><72>setter<65><72>0<EFBFBD>ʤ<EFBFBD><CAA4><EFBFBD>rb_define_variable()<29><>Ʊ<EFBFBD><C6B1><EFBFBD>ˤʤ롥
|
|||
|
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>줫<EFBFBD>顤C<EFBFBD>δؿ<EFBFBD><EFBFBD>ˤ<EFBFBD><EFBFBD>äƼ¸<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ruby<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD>ؿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
void rb_define_virtual_variable(char *name,
|
|||
|
VALUE (*getter)(), VALUE (*setter)())
|
|||
|
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>δؿ<EFBFBD><EFBFBD>ˤ<EFBFBD><EFBFBD>ä<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>줿Ruby<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD>줿<EFBFBD><EFBFBD><EFBFBD>ˤ<EFBFBD>
|
|||
|
getter<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>åȤ<EFBFBD><EFBFBD>줿<EFBFBD><EFBFBD><EFBFBD>ˤ<EFBFBD>setter<EFBFBD><EFBFBD><EFBFBD>ƤФ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
getter<EFBFBD><EFBFBD>setter<EFBFBD>λ<EFBFBD><EFBFBD>ͤϰʲ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>̤<EFBFBD><EFBFBD>Ǥ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
(*getter)(ID id, void *data, struct global_entry* entry);
|
|||
|
(*setter)(VALUE val, ID id, void *data, struct global_entry* entry);
|
|||
|
|
|||
|
3.3 C<>Υǡ<CEA5><C7A1><EFBFBD><EFBFBD><EFBFBD>Ruby<62><79><EFBFBD>֥<EFBF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BD><EFBFBD>Ԥ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>dbm.c<><63><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѥ<EFBFBD><D1A4>ޤ<EFBFBD><DEA4><EFBFBD>
|
|||
|
|
|||
|
--
|
|||
|
Init_dbm()
|
|||
|
{
|
|||
|
/* DBM<42><4D><EFBFBD>饹<EFBFBD><E9A5B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|||
|
cDBM = rb_define_class("DBM", rb_cObject);
|
|||
|
/* DBM<42><4D>Enumerate<74>⥸<EFBFBD>塼<EFBFBD><E5A1BC><EFBFBD>롼<F3A5AFA5>ɤ<EFBFBD><C9A4><EFBFBD> */
|
|||
|
rb_include_module(cDBM, rb_mEnumerable);
|
|||
|
|
|||
|
/* DBM<42><4D><EFBFBD>饹<EFBFBD>Υ<EFBFBD><CEA5>饹<EFBFBD><EFBFBD>å<EFBFBD>open(): <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD><C7BC><EFBFBD><EFBFBD><EFBFBD> */
|
|||
|
rb_define_singleton_method(cDBM, "open", fdbm_s_open, -1);
|
|||
|
|
|||
|
/* DBM<42><4D><EFBFBD>饹<EFBFBD>Υ<CEA5>å<EFBFBD>close(): <20><><EFBFBD><EFBFBD><EFBFBD>Ϥʤ<CFA4> */
|
|||
|
rb_define_method(cDBM, "close", fdbm_close, 0);
|
|||
|
/* DBM<42><4D><EFBFBD>饹<EFBFBD>Υ<CEA5>å<EFBFBD>[]: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>1<EFBFBD><31> */
|
|||
|
rb_define_method(cDBM, "[]", fdbm_fetch, 1);
|
|||
|
:
|
|||
|
|
|||
|
/* DBM<42>ǡ<EFBFBD><C7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD><C7BC><EFBFBD>륤<EFBFBD><EFBFBD><F3A5B9A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѿ<EFBFBD>̾<EFBFBD>Τ<EFBFBD><CEA4><EFBFBD><EFBFBD><EFBFBD>ID */
|
|||
|
id_dbm = rb_intern("dbm");
|
|||
|
}
|
|||
|
--
|
|||
|
|
|||
|
DBM<EFBFBD>饤<EFBFBD>֥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>dbm<EFBFBD>Υǡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD><EFBFBD><EFBFBD><EFBFBD>륪<EFBFBD>֥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥˤʤ<EFBFBD><EFBFBD>Ϥ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>顤C<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>dbm<EFBFBD><EFBFBD>Ruby<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɬ<EFBFBD>פ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
|
|||
|
dbm.c<>Ǥ<EFBFBD>Data_Make_Struct<63><74><EFBFBD>ʲ<EFBFBD><CAB2>Τ褦<CEA4>˻ȤäƤ<C3A4><C6A4>ޤ<EFBFBD><DEA4><EFBFBD>
|
|||
|
|
|||
|
--
|
|||
|
struct dbmdata {
|
|||
|
int di_size;
|
|||
|
DBM *di_dbm;
|
|||
|
};
|
|||
|
|
|||
|
|
|||
|
obj = Data_Make_Struct(class,struct dbmdata,0,free_dbm,dbmp);
|
|||
|
--
|
|||
|
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǥ<EFBFBD>dbmstruct<EFBFBD><EFBFBD>¤<EFBFBD>ΤؤΥݥ<EFBFBD><EFBFBD><EFBFBD>Data<EFBFBD>˥<EFBFBD><EFBFBD>ץ<EFBFBD><EFBFBD>벽<EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD>
|
|||
|
<EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>DBM*<2A><>ľ<EFBFBD>ܥ<EFBFBD><DCA5>ץ<EFBFBD><D7A5>벽<EFBFBD><EBB2BD><EFBFBD>ʤ<EFBFBD><CAA4>Τ<EFBFBD>close()<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ν<EFBFBD><CEBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>ƤΤ<EFBFBD><EFBFBD>ȤǤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
Data<EFBFBD><EFBFBD><EFBFBD>֥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD><EFBFBD>dbmstruct<EFBFBD><EFBFBD>¤<EFBFBD>ΤΥݥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ф<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD>˰ʲ<EFBFBD><EFBFBD>Υޥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȤäƤ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
--
|
|||
|
#define GetDBM(obj, dbmp) {\
|
|||
|
Data_Get_Stru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BD><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҤȤĤϰ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Τ<EFBFBD><EFBFBD>Τǡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD>delete<EFBFBD><EFBFBD>åɤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>delete<EFBFBD><EFBFBD>åɤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
fdbm_delete()<29>Ϥ<EFBFBD><CFA4>Τ褦<CEA4>ˤʤäƤ<C3A4><C6A4>ޤ<EFBFBD><DEA4><EFBFBD>
|
|||
|
|
|||
|
--
|
|||
|
static VALUE
|
|||
|
fdbm_delete(obj, keystr)
|
|||
|
VALUE obj, keystr;
|
|||
|
{
|
|||
|
:
|
|||
|
}
|
|||
|
--
|
|||
|
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Υ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>פ<EFBFBD><EFBFBD><EFBFBD>1<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>self<EFBFBD><EFBFBD><EFBFBD><EFBFBD>2<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹߤ<EF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EFBFBD><C6A4><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD>fdbm_s_open()<29>Ϥ<EFBFBD><CFA4><EFBFBD><EFBFBD>ʤäƤ<C3A4><C6A4>ޤ<EFBFBD><DEA4><EFBFBD>
|
|||
|
|
|||
|
--
|
|||
|
static VALUE
|
|||
|
fdbm_s_open(argc, argv, class)
|
|||
|
int argc;
|
|||
|
VALUE *argv;
|
|||
|
VALUE class;
|
|||
|
{
|
|||
|
:
|
|||
|
if (rb_scan_args(argc, argv, "11", &file, &vmode) == 1) {
|
|||
|
mode = 0666; /* default value */
|
|||
|
}
|
|||
|
:
|
|||
|
}
|
|||
|
--
|
|||
|
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>Υ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>פδؿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>1<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>줿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϳ<EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>줿<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>äƤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˤʤ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>self<EFBFBD><EFBFBD><EFBFBD><EFBFBD>3<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD><EFBFBD>Ϳ
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBF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EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
have_library(lib, func): <20>饤<EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD>¸<EFBFBD>ߥ<EFBFBD><DFA5><EFBFBD><EFBFBD>å<EFBFBD>
|
|||
|
have_func(func): <20>ؿ<EFBFBD><D8BF><EFBFBD>¸<EFBFBD>ߥ<EFBFBD><DFA5><EFBFBD><EFBFBD>å<EFBFBD>
|
|||
|
have_header(header): <20>إå<D8A5><C3A5>ե<EFBFBD><D5A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¸<EFBFBD>ߥ<EFBFBD><DFA5><EFBFBD><EFBFBD>å<EFBFBD>
|
|||
|
create_makefile(target): Makefile<6C><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
<EFBFBD>ʲ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD>Ǥ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
$CFLAGS: <20><><EFBFBD><EFBFBD><EFBFBD>ѥ<EFBFBD><D1A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɲ<EFBFBD>Ū<EFBFBD>˻<EFBFBD><CBBB>ꤹ<EFBFBD><EAA4B9><EFBFBD>ե饰(-I<>ʤ<EFBFBD>)
|
|||
|
$LDFLAGS: <20><><EFBFBD><EFBFBD><F3A5AFBB><EFBFBD><EFBFBD>ɲ<EFBFBD>Ū<EFBFBD>˻<EFBFBD><CBBB>ꤹ<EFBFBD><EAA4B9><EFBFBD>ե饰(-L<>ʤ<EFBFBD>)
|
|||
|
|
|||
|
<EFBFBD>饤<EFBFBD>֥<EFBFBD><EFBFBD><E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BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD>פ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
Ruby<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Υ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
class.c
|
|||
|
error.c
|
|||
|
eval.c
|
|||
|
gc.c
|
|||
|
object.c
|
|||
|
parse.y
|
|||
|
variable.c
|
|||
|
|
|||
|
<EFBFBD>桼<EFBFBD>ƥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƥ<EFBFBD><EFBFBD>ؿ<EFBFBD>
|
|||
|
|
|||
|
dln.c
|
|||
|
fnmatch.c
|
|||
|
glob.c
|
|||
|
regex.c
|
|||
|
st.c
|
|||
|
util.c
|
|||
|
|
|||
|
Ruby<EFBFBD><EFBFBD><EFBFBD>ޥ<EFBFBD><EFBFBD>ɤμ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
dmyext.c
|
|||
|
inits.c
|
|||
|
main.c
|
|||
|
ruby.c
|
|||
|
version.c
|
|||
|
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>饹<EFBFBD>饤<EFBFBD>֥<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
array.c
|
|||
|
bignum.c
|
|||
|
compar.c
|
|||
|
dir.c
|
|||
|
enum.c
|
|||
|
file.c
|
|||
|
hash.c
|
|||
|
io.c
|
|||
|
marshal.c
|
|||
|
math.c
|
|||
|
numeric.c
|
|||
|
pack.c
|
|||
|
process.c
|
|||
|
random.c
|
|||
|
range.c
|
|||
|
re.c
|
|||
|
signal.c
|
|||
|
sprintf.c
|
|||
|
string.c
|
|||
|
struct.c
|
|||
|
time.c
|
|||
|
|
|||
|
Appendix B. <20><>ĥ<EFBFBD>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BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><CAB8><EFBFBD>ˤ<EFBFBD><CBA4><EFBFBD>̾<EFBFBD><CCBE><EFBFBD>Υޥ<CEA5><DEA5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѱդ<D1B0><D5A4><EFBFBD><EFBFBD>Ƥ<EFBFBD><C6A4>롥
|
|||
|
|
|||
|
** <20>ѿ<EFBFBD><D1BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
Qnil
|
|||
|
|
|||
|
<20><><EFBFBD><EFBFBD>: nil<69><6C><EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
Qtrue
|
|||
|
|
|||
|
<20><><EFBFBD><EFBFBD>: true<75><65><EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><><EFBFBD>Υǥե<C7A5><D5A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
|||
|
|
|||
|
Qfalse
|
|||
|
|
|||
|
<20><><EFBFBD><EFBFBD>: false<73><65><EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
** C<>ǡ<EFBFBD><C7A1><EFBFBD><EFBFBD>Υ<EFBFBD><CEA5>ץ<EFBFBD><D7A5>벽
|
|||
|
|
|||
|
Data_Wrap_Struct(VALUE class, void (*mark)(), void (*free)(), void *sval)
|
|||
|
|
|||
|
C<><43>Ǥ<EFBFBD>դΥݥ<CEA5><DDA5>ץ<F2A5ABA5><D7A5>벽<EFBFBD><EBB2BD><EFBFBD><EFBFBD>Ruby<62><79><EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4>֤<EFBFBD><D6A4><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<20>Υݥ<CEA5><DDA5><EFBFBD>Ruby<62><79><EFBFBD>饢<EFBFBD><E9A5A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʤ<EFBFBD><CAA4>ʤä<CAA4><C3A4><EFBFBD><EFBFBD><EFBFBD>free<65>ǻ<EFBFBD><C7BB>ꤷ<EFBFBD><EAA4B7>
|
|||
|
<20>ؿ<EFBFBD><D8BF><EFBFBD><EFBFBD>ƤФ<C6A4><D0A4>롥<EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Υݥ<CEA5><DDA5>λؤ<CEBB><D8A4>ǡ<EFBFBD><C7A1><EFBFBD><EFBFBD><EFBFBD>¾<EFBFBD><C2BE>Ruby<62><79><EFBFBD><EFBFBD>
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4>ؤ<EFBFBD><D8A4>Ƥ<EFBFBD><C6A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>硤mark<72>˻<EFBFBD><CBBB>ꤹ<EFBFBD><EAA4B9><EFBFBD>ؿ<EFBFBD><D8BF>ǥޡ<C7A5><DEA1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɬ<EFBFBD><C9AC>
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD>롥
|
|||
|
|
|||
|
Data_Make_Struct(class, type, mark, free, sval)
|
|||
|
|
|||
|
type<70><65><EFBFBD>Υ<EFBFBD><CEA5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>malloc<6F><63><EFBFBD><EFBFBD><EFBFBD>ѿ<EFBFBD>sval<61><6C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>塤<EFBFBD><E5A1A4><EFBFBD><EFBFBD><EFBFBD>ץ<F2A5ABA5>
|
|||
|
<20>벽<EFBFBD><EBB2BD><EFBFBD><EFBFBD><EFBFBD>ǡ<EFBFBD><C7A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><D6A4>ޥ<EFBFBD><DEA5><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
Data_Get_Struct(data, type, sval)
|
|||
|
|
|||
|
data<74><61><EFBFBD><EFBFBD>type<70><65><EFBFBD>Υݥ<CEA5><DDA5><EFBFBD><F3A5BFA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ф<EFBFBD><D0A4>ѿ<EFBFBD>sval<61><6C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޥ<EFBFBD><DEA5><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
** <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>å<EFBFBD>
|
|||
|
|
|||
|
TYPE(value)
|
|||
|
FIXNUM_P(value)
|
|||
|
NIL_P(value)
|
|||
|
void Check_Type(VALUE value, int type)
|
|||
|
void Check_SafeStr(VALUE value)
|
|||
|
|
|||
|
** <20><><EFBFBD>Ѵ<EFBFBD>
|
|||
|
|
|||
|
FIX2INT(value)
|
|||
|
INT2FIX(i)
|
|||
|
NUM2INT(value)
|
|||
|
INT2NUM(i)
|
|||
|
NUM2DBL(value)
|
|||
|
rb_float_new(f)
|
|||
|
STR2CSTR(value)
|
|||
|
rb_str_new2(s)
|
|||
|
|
|||
|
** <20><><EFBFBD>饹/<2F>⥸<EFBFBD>塼<EFBFBD><E5A1BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
VALUE rb_define_class(char *name, VALUE super)
|
|||
|
|
|||
|
super<65>Υ<EFBFBD><CEA5>֥<EFBFBD><D6A5>饹<EFBFBD>Ȥ<EFBFBD><C8A4>ƿ<EFBFBD><C6BF><EFBFBD><EFBFBD><EFBFBD>Ruby<62><79><EFBFBD>饹<EFBFBD><E9A5B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥
|
|||
|
|
|||
|
VALUE rb_define_class_under(VALUE module, char *name, VALUE super)
|
|||
|
|
|||
|
super<65>Υ<EFBFBD><CEA5>֥<EFBFBD><D6A5>饹<EFBFBD>Ȥ<EFBFBD><C8A4>ƿ<EFBFBD><C6BF><EFBFBD><EFBFBD><EFBFBD>Ruby<62><79><EFBFBD>饹<EFBFBD><E9A5B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>module<6C><65>
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥
|
|||
|
|
|||
|
VALUE rb_define_module(char *name)
|
|||
|
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ruby<62>⥸<EFBFBD>塼<EFBFBD><E5A1BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥
|
|||
|
|
|||
|
VALUE rb_define_module_under(VALUE module, char *name, VALUE super)
|
|||
|
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ruby<62>⥸<EFBFBD>塼<EFBFBD><E5A1BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>module<6C><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥
|
|||
|
|
|||
|
void rb_include_module(VALUE class, VALUE module)
|
|||
|
|
|||
|
<20>⥸<EFBFBD>塼<EFBFBD><E5A1BC><EFBFBD>롼<F3A5AFA5>ɤ<EFBFBD><C9A4>롥class<73><73><EFBFBD><EFBFBD><EFBFBD>Ǥ<EFBFBD>module<6C><EFBFBD><F2A5A4A5><EFBFBD>
|
|||
|
<20>롼<EFBFBD>ɤ<EFBFBD><C9A4>Ƥ<EFBFBD><C6A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˤϲ<CBA4><CFB2>⤷<EFBFBD>ʤ<EFBFBD>(¿<>ť<EFBFBD><C5A5>롼<F3A5AFA5>ɤζػ<CEB6>)<29><>
|
|||
|
|
|||
|
void rb_extend_object(VALUE object, VALUE module)
|
|||
|
|
|||
|
<20><><EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4>⥸<EFBFBD>塼<EFBFBD><E5A1BC>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><C6A4><EFBFBD><EFBFBD><EFBFBD>å<EFBFBD>)<29>dz<EFBFBD>ĥ<EFBFBD><C4A5><EFBFBD>롥
|
|||
|
|
|||
|
** <20><><EFBFBD><EFBFBD><EFBFBD>ѿ<EFBFBD><D1BF><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
void rb_define_variable(char *name, VALUE *var)
|
|||
|
|
|||
|
Ruby<62><79>C<EFBFBD>ȤǶ<C8A4>ͭ<EFBFBD><CDAD><EFBFBD>륰<EFBFBD><EBA5B0><EFBFBD><EFBFBD><EFBFBD>Х<EFBFBD><D0A5>ѿ<EFBFBD><D1BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥<EFBFBD>ѿ<EFBFBD>̾<EFBFBD><CCBE>`$'<27><>
|
|||
|
<20>Ϥޤ<CFA4><DEA4>ʤ<EFBFBD><CAA4><EFBFBD><EFBFBD>ˤϼ<CBA4>ưŪ<C6B0><C5AA><EFBFBD>ɲä<C9B2><C3A4><EFBFBD><EFBFBD>롥name<6D>Ȥ<EFBFBD><C8A4><EFBFBD>Ruby<62>μ<EFBFBD><CEBC>̻<EFBFBD>
|
|||
|
<20>Ȥ<EFBFBD><C8A4>Ƶ<EFBFBD><C6B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʤ<EFBFBD>ʸ<EFBFBD><CAB8>(<28>㤨<EFBFBD><E3A4A8>` ')<29><><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˤ<EFBFBD>Ruby<62>ץ<EFBFBD><D7A5><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<20>फ<EFBFBD><E0A4AB><EFBFBD>ϸ<EFBFBD><CFB8><EFBFBD><EFBFBD>ʤ<EFBFBD><CAA4>ʤ롥
|
|||
|
|
|||
|
void rb_define_readonly_variable(char *name, VALUE *var)
|
|||
|
|
|||
|
Ruby<62><79>C<EFBFBD>ȤǶ<C8A4>ͭ<EFBFBD><CDAD><EFBFBD><EFBFBD>read only<6C>Υ<EFBFBD><CEA5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Х<EFBFBD><D0A5>ѿ<EFBFBD><D1BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥
|
|||
|
read only<6C>Ǥ<EFBFBD><C7A4>뤳<EFBFBD>Ȱʳ<C8B0><CAB3><EFBFBD>rb_define_variable()<29><>Ʊ<EFBFBD><C6B1><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
void rb_define_virtual_variable(char *name,
|
|||
|
VALUE (*getter)(), VALUE (*setter)())
|
|||
|
|
|||
|
<20>ؿ<EFBFBD><D8BF>ˤ<EFBFBD><CBA4>äƼ¸<C6BC><C2B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ruby<62>ѿ<EFBFBD><D1BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥<EFBFBD>ѿ<EFBFBD><D1BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4>줿
|
|||
|
<20><><EFBFBD>ˤ<EFBFBD>getter<65><72><EFBFBD><EFBFBD><EFBFBD>ѿ<EFBFBD><D1BF><EFBFBD><EFBFBD>ͤ<EFBFBD><CDA4><EFBFBD><EFBFBD>åȤ<C3A5><C8A4>줿<EFBFBD><ECA4BF><EFBFBD>ˤ<EFBFBD>setter<65><72><EFBFBD>ƤФ<C6A4>
|
|||
|
<20>롥
|
|||
|
|
|||
|
void rb_define_hooked_variable(char *name, VALUE *var,
|
|||
|
VALUE (*getter)(), VALUE (*setter)())
|
|||
|
|
|||
|
<20>ؿ<EFBFBD><D8BF>ˤ<EFBFBD><CBA4>ä<EFBFBD>hook<6F>ΤĤ<CEA4><C4A4><EFBFBD><EFBFBD>줿<EFBFBD><ECA4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Х<EFBFBD><D0A5>ѿ<EFBFBD><D1BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥<EFBFBD>ѿ<EFBFBD>
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4>줿<EFBFBD><ECA4BF><EFBFBD>ˤ<EFBFBD>getter<65><72><EFBFBD><EFBFBD><EFBFBD>ؿ<EFBFBD><D8BF><EFBFBD><EFBFBD>ͤ<EFBFBD><CDA4><EFBFBD><EFBFBD>åȤ<C3A5><C8A4>줿<EFBFBD><ECA4BF><EFBFBD>ˤ<EFBFBD>
|
|||
|
setter<65><72><EFBFBD>ƤФ<C6A4><D0A4>롥getter<65><72>setter<65><72>0<EFBFBD><30><EFBFBD><EFBFBD><EFBFBD>ꤷ<EFBFBD><EAA4B7><EFBFBD><EFBFBD><EFBFBD>ˤ<EFBFBD>hook<6F><6B>
|
|||
|
<20><><EFBFBD>ꤷ<EFBFBD>ʤ<EFBFBD><CAA4>Τ<EFBFBD>Ʊ<EFBFBD><C6B1><EFBFBD><EFBFBD><EFBFBD>ˤʤ롥
|
|||
|
|
|||
|
void rb_global_variable(VALUE *var)
|
|||
|
|
|||
|
GC<47>Τ<EFBFBD><CEA4>ᡤRuby<62>ץ<EFBFBD><D7A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>फ<EFBFBD><E0A4AB><EFBFBD>ϥ<EFBFBD><CFA5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʤ<EFBFBD><CAA4><EFBFBD>, Ruby<62><79><EFBFBD><EFBFBD>
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4>ޤ<EFBFBD><DEA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѿ<EFBFBD><D1BF><EFBFBD><EFBFBD>ޡ<EFBFBD><DEA1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥
|
|||
|
|
|||
|
** <20><><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
void rb_define_const(VALUE klass, char *name, VALUE val)
|
|||
|
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥
|
|||
|
|
|||
|
void rb_define_global_const(char *name, VALUE val)
|
|||
|
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥
|
|||
|
|
|||
|
rb_define_const(cKernal, name, val)
|
|||
|
|
|||
|
<20><>Ʊ<EFBFBD><C6B1><EFBFBD><EFBFBD>̣<EFBFBD><CCA3>
|
|||
|
|
|||
|
** <20><EFBFBD>å<EFBFBD><C3A5><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
rb_define_method(VALUE class, char *name, VALUE (*func)(), int argc)
|
|||
|
|
|||
|
<20><EFBFBD>åɤ<C3A5><C9A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥argc<67><63>self<6C><66><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD><CEBF><EFBFBD>argc<67><63>-1<>λ<EFBFBD>,
|
|||
|
<20>ؿ<EFBFBD><D8BF>ˤϰ<CBA4><CFB0><EFBFBD><EFBFBD>ο<EFBFBD>(self<6C><66><EFBFBD>ޤޤʤ<DEA4>)<29><><EFBFBD><EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϳ<EFBFBD><CDBF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><>3<EFBFBD><33><EFBFBD><EFBFBD><EFBFBD><EFBFBD>self)<29><>argc<67><63>-2<>λ<EFBFBD>,
|
|||
|
<20><>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD>self, <20><>2<EFBFBD><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD>args(args<67>ϰ<EFBFBD><CFB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD>Ruby<62><79><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)<29><>
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϳ<EFBFBD><CDBF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥
|
|||
|
|
|||
|
rb_define_private_method(VALUE class, char *name, VALUE (*func)(), int argc)
|
|||
|
|
|||
|
private<74><EFBFBD>åɤ<C3A5><C9A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥<EFBFBD><EBA1A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>rb_define_method()<29><>Ʊ<EFBFBD><C6B1><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
rb_define_singleton_method(VALUE class, char *name, VALUE (*func)(), int argc)
|
|||
|
|
|||
|
<20>ðۥ<DBA5>åɤ<C3A5><C9A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥<EFBFBD><EBA1A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>rb_define_method()<29><>Ʊ<EFBFBD><C6B1><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
rb_scan_args(int argc, VALUE *argv, char *fmt, ...)
|
|||
|
|
|||
|
argc,argv<67><76><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϳ<EFBFBD><CDBF><EFBFBD><EFBFBD><EFBFBD>줿<EFBFBD><ECA4BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʬ<EFBFBD>롥fmt<6D><74>ɬ<EFBFBD>ܰ<EFBFBD><DCB0><EFBFBD><EFBFBD>ο<EFBFBD>,
|
|||
|
<20>ղð<D5B2><C3B0><EFBFBD><EFBFBD>ο<EFBFBD>, <20>Ĥ<EFBFBD><C4A4>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>뤫<EFBFBD><EBA4AB><EFBFBD><EFBFBD><EFBFBD>ꤹ<EFBFBD><EAA4B9>ʸ<EFBFBD><CAB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, "<22><><EFBFBD><EFBFBD>
|
|||
|
<20><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F><EFBFBD>Qnil<69><6C>
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥
|
|||
|
|
|||
|
** Ruby<62><EFBFBD>åɸƤӽФ<D3BD>
|
|||
|
|
|||
|
VALUE rb_funcall(VALUE recv, ID mid, int narg, ...)
|
|||
|
|
|||
|
<20><EFBFBD>åɸƤӽФ<D3BD><D0A4><EFBFBD>ʸ<EFBFBD><CAB8><EFBFBD><EFBFBD>mid<69><64><EFBFBD><EFBFBD><EFBFBD>뤿<EFBFBD><EBA4BF><EFBFBD>ˤ<EFBFBD>rb_intern()<29><>
|
|||
|
<20>Ȥ<EFBFBD><C8A4><EFBFBD>
|
|||
|
|
|||
|
VALUE rb_funcall2(VALUE recv, ID mid, int argc, VALUE *argv)
|
|||
|
|
|||
|
<20><EFBFBD>åɸƤӽФ<D3BD><D0A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>argc,argv<67><76><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϥ<EFBFBD><CFA4><EFBFBD>
|
|||
|
|
|||
|
VALUE rb_eval_string(char *str)
|
|||
|
|
|||
|
ʸ<><CAB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ruby<62>ȥ<EFBFBD><C8A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ץȤ<D7A5><C8A4>ƥ<EFBFBD><C6A5><EFBFBD><EFBFBD>ѥ<EFBFBD><D1A5>롦<EFBFBD>¹Ԥ<C2B9><D4A4>롥
|
|||
|
|
|||
|
ID rb_intern(char *name)
|
|||
|
|
|||
|
ʸ<><CAB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD><D0B1><EFBFBD><EFBFBD><EFBFBD>ID<49><44><EFBFBD>֤<EFBFBD><D6A4><EFBFBD>
|
|||
|
|
|||
|
char *rb_id2name(ID id)
|
|||
|
|
|||
|
ID<49><44><EFBFBD>б<EFBFBD><D0B1><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><CAB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD>(<28>ǥХå<D0A5><C3A5><EFBFBD>)<29><>
|
|||
|
|
|||
|
char *rb_class2name(VALUE class)
|
|||
|
|
|||
|
class<73><73>̾<EFBFBD><CCBE><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD>(<28>ǥХå<D0A5><C3A5><EFBFBD>)<29><>class<73><73>̾<EFBFBD><CCBE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʤ<EFBFBD><CAA4><EFBFBD><EFBFBD>ˤ<EFBFBD>,
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̤ä<CCA4>̾<EFBFBD><CCBE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĥ<EFBFBD><C4A5>饹<EFBFBD><E9A5B9>̾<EFBFBD><CCBE><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><D6A4><EFBFBD>
|
|||
|
|
|||
|
** <20><><EFBFBD><EFBFBD><F3A5B9A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѿ<EFBFBD>
|
|||
|
|
|||
|
VALUE rb_iv_get(VALUE obj, char *name)
|
|||
|
|
|||
|
obj<62>Υ<EFBFBD><CEA5><EFBFBD><F3A5B9A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѿ<EFBFBD><D1BF><EFBFBD><EFBFBD>ͤ<EFBFBD><CDA4><EFBFBD><EFBFBD>롥`@'<27>ǻϤޤ<CFA4><DEA4>ʤ<EFBFBD><CAA4><EFBFBD><EFBFBD><EFBFBD><F3A5B9A5><EFBFBD>
|
|||
|
<20><><EFBFBD>ѿ<EFBFBD><D1BF><EFBFBD> Ruby<62>ץ<EFBFBD><D7A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>फ<EFBFBD>饢<EFBFBD><E9A5A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǥ<EFBFBD><C7A4>ʤ<EFBFBD><CAA4>ֱ<EFBFBD><D6B1>줿<EFBFBD>ץ<EFBFBD><D7A5><EFBFBD>
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѿ<EFBFBD><D1BF>ˤʤ롥<CAA4><EBA1A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><CAB8><EFBFBD><EFBFBD>̾<EFBFBD><CCBE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĥ<EFBFBD><C4A5>饹(<28>ޤ<EFBFBD><DEA4><EFBFBD>
|
|||
|
<20>⥸<EFBFBD>塼<EFBFBD><E5A1BC>)<29>Υ<EFBFBD><CEA5><EFBFBD><F3A5B9A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѿ<EFBFBD><D1BF>Ȥ<EFBFBD><C8A4>Ƽ<EFBFBD><C6BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><C6A4>롥
|
|||
|
|
|||
|
VALUE rb_iv_set(VALUE obj, char *name, VALUE val)
|
|||
|
|
|||
|
obj<62>Υ<EFBFBD><CEA5><EFBFBD><F3A5B9A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѿ<EFBFBD><D1BF><EFBFBD>val<61>˥<EFBFBD><CBA5>åȤ<C3A5><C8A4>롥
|
|||
|
|
|||
|
** <20><><EFBFBD>湽¤
|
|||
|
|
|||
|
VALUE rb_iterate(VALUE (*func1)(), void *arg1, VALUE (*func2)(), void *arg2)
|
|||
|
|
|||
|
func2<63><32><EFBFBD>֥<EFBFBD><D6A5>å<EFBFBD><C3A5>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ꤷ, func1<63>ƥ졼<C6A5><ECA1BC><EFBFBD>Ȥ<EFBFBD><C8A4>ƸƤ֡<C6A4>
|
|||
|
func1<63>ˤ<EFBFBD> arg1<67><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD>Ϥ<EFBFBD><CFA4><EFBFBD>, func2<63>ˤ<EFBFBD><CBA4><EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD>˥<EFBFBD><CBA5>ƥ졼
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϳ<EFBFBD><CDBF><EFBFBD><EFBFBD><EFBFBD>줿<EFBFBD><ECA4BF>, <20><>2<EFBFBD><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD>arg2<67><32><EFBFBD>Ϥ<EFBFBD><CFA4><EFBFBD><EFBFBD>롥
|
|||
|
|
|||
|
VALUE rb_yield(VALUE val)
|
|||
|
|
|||
|
val<61><6C><EFBFBD>ͤȤ<CDA4><C8A4>ƥ<EFBFBD><C6A5>ƥ졼<C6A5><ECA1BC><EFBFBD>֥<EFBFBD><D6A5>å<EFBFBD><C3A5><EFBFBD><EFBFBD>ƤӽФ<D3BD><D0A4><EFBFBD>
|
|||
|
|
|||
|
VALUE rb_rescue(VALUE (*func1)(), void *arg1, VALUE (*func2)(), void *arg2)
|
|||
|
|
|||
|
<20>ؿ<EFBFBD>func1<63><31>arg1<67><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˸ƤӽФ<D3BD><D0A4><EFBFBD>func1<63>μ¹<CEBC><C2B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㳰<EFBFBD><E3B3B0>ȯ<EFBFBD><C8AF>
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˤ<EFBFBD> func2<63><32>arg2<67><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4>ƸƤ֡<C6A4><D6A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͤ<EFBFBD><CDA4>㳰<EFBFBD><E3B3B0>ȯ<EFBFBD><C8AF>
|
|||
|
<20><><EFBFBD>ʤ<EFBFBD><CAA4>ä<EFBFBD><C3A4><EFBFBD><EFBFBD><EFBFBD>func1<63><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20>㳰<EFBFBD><E3B3B0>ȯ<EFBFBD><C8AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˤ<EFBFBD>func2<63><32><EFBFBD><EFBFBD>
|
|||
|
<20><><EFBFBD>ͤǤ<CDA4><C7A4>롥
|
|||
|
|
|||
|
VALUE rb_ensure(VALUE (*func1)(), void *arg1, void (*func2)(), void *arg2)
|
|||
|
|
|||
|
<20>ؿ<EFBFBD>func1<63><31>arg1<67><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4>Ƽ¹Ԥ<C2B9>, <20>¹Խ<C2B9>λ<EFBFBD><CEBB>(<28><><EFBFBD>Ȥ<EFBFBD><C8A4>㳰<EFBFBD><E3B3B0>
|
|||
|
ȯ<><C8AF><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD>) func2<63><32>arg2<67><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4>Ƽ¹Ԥ<C2B9><D4A4>롥<EFBFBD><EBA1A5><EFBFBD><EFBFBD><EFBFBD>ͤ<EFBFBD>func1
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͤǤ<CDA4><C7A4><EFBFBD>(<28>㳰<EFBFBD><E3B3B0>ȯ<EFBFBD><C8AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʤ<EFBFBD>)<29><>
|
|||
|
|
|||
|
** <20>㳰<EFBFBD><E3B3B0><EFBFBD><EFBFBD><EFBFBD>顼
|
|||
|
|
|||
|
void rb_warning(char *fmt, ...)
|
|||
|
|
|||
|
rb_verbose<73><65><EFBFBD><EFBFBD>ɸ<EFBFBD>२<EFBFBD>顼<EFBFBD><E9A1BC><EFBFBD>Ϥ˷ٹ<CBB7><D9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɽ<EFBFBD><C9BD><EFBFBD><EFBFBD><EFBFBD>롥<EFBFBD><EBA1A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
printf()<29><>Ʊ<EFBFBD><C6B1><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
void rb_raise(rb_eRuntimeError, char *fmt, ...)
|
|||
|
|
|||
|
RuntimeError<6F>㳰<EFBFBD><E3B3B0>ȯ<EFBFBD><C8AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥<EFBFBD><EBA1A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>printf()<29><>Ʊ<EFBFBD><C6B1><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
void rb_raise(VALUE exception, char *fmt, ...)
|
|||
|
|
|||
|
exception<6F>ǻ<EFBFBD><C7BB>ꤷ<EFBFBD><EAA4B7><EFBFBD>㳰<EFBFBD><E3B3B0>ȯ<EFBFBD><C8AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥fmt<6D>ʲ<EFBFBD><CAB2>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
printf()<29><>Ʊ<EFBFBD><C6B1><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
void rb_fatal(char *fmt, ...)
|
|||
|
|
|||
|
<20><>̿Ū<CCBF>㳰<EFBFBD><E3B3B0>ȯ<EFBFBD><C8AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥<EFBFBD>̾<EFBFB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><CEBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¹<EFBFBD>
|
|||
|
|
|||
|
Ruby<EFBFBD>ץꥱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˤϰʲ<EFBFBD><EFBFBD>Υ<EFBFBD><EFBFBD>ե<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>̾<EFBFBD><EFBFBD>γ<EFBFBD>ĥ<EFBFBD>饤<EFBFBD>֥<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˤ<EFBFBD>ɬ<EFBFBD>פʤ<EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
void ruby_init(int argc, char **argv, char **envp)
|
|||
|
|
|||
|
Ruby<62><79><EFBFBD>ץ<D7A5>ν<EFBFBD><CEBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ԥʤ<D4A4><CAA4><EFBFBD>
|
|||
|
|
|||
|
void ruby_run()
|
|||
|
|
|||
|
Ruby<62><79><EFBFBD>ץ<D7A5><EAA5BF><EFBFBD>¹Ԥ<C2B9><D4A4>롥
|
|||
|
|
|||
|
void ruby_script(char *name)
|
|||
|
|
|||
|
Ruby<62>Υ<EFBFBD><CEA5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ץ<EFBFBD>̾($0)<29><><EFBFBD><EFBFBD><EFBFBD>ꤹ<EFBFBD>롥
|
|||
|
|
|||
|
|
|||
|
Appendix B. extconf.rb<72>ǻȤ<C7BB><C8A4><EFBFBD><EFBFBD>ؿ<EFBFBD><D8BF><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
extconf.rb<72><62><EFBFBD><EFBFBD><EFBFBD>Ǥ<EFBFBD><C7A4><EFBFBD><EFBFBD>Ѳ<EFBFBD>ǽ<EFBFBD>ʥ<EFBFBD><CAA5><EFBFBD><EFBFBD>ѥ<EFBFBD><D1A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>å<EFBFBD><C3A5>δؿ<CEB4><D8BF>ϰ<EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̤<EFBFBD><EFBFBD>Ǥ<EFBFBD><EFBFBD>롥
|
|||
|
|
|||
|
have_library(lib, func)
|
|||
|
|
|||
|
<20>ؿ<EFBFBD>func<6E><63><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><C6A4><EFBFBD><EFBFBD>饤<EFBFBD>֥<EFBFBD><D6A5><EFBFBD>lib<69><62>¸<EFBFBD>ߤ<EFBFBD><DFA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>å<EFBFBD><C3A5><EFBFBD><EFBFBD>롥
|
|||
|
<20>饤<EFBFBD>֥<EFBFBD><D6A5>꤬¸<EAA4AC>ߤ<EFBFBD><DFA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>true<75><65><EFBFBD>֤<EFBFBD><D6A4><EFBFBD>
|
|||
|
|
|||
|
find_library(lib, func, path...)
|
|||
|
|
|||
|
<20>ؿ<EFBFBD>func<6E><63><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><C6A4><EFBFBD><EFBFBD>饤<EFBFBD>֥<EFBFBD><D6A5><EFBFBD>lib<69><62>¸<EFBFBD>ߤ<EFBFBD> -Lpath <20><><EFBFBD>ɲ<EFBFBD>
|
|||
|
<20><><EFBFBD>ʤ<EFBFBD><CAA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>å<EFBFBD><C3A5><EFBFBD><EFBFBD>롥<EFBFBD>饤<EFBFBD>֥<EFBFBD><D6A5>꤬<EFBFBD><EAA4AC><EFBFBD>դ<EFBFBD><D5A4>ä<EFBFBD><C3A4><EFBFBD><EFBFBD><EFBFBD>true<75><65><EFBFBD>֤<EFBFBD><D6A4><EFBFBD>
|
|||
|
<20><><EFBFBD>̤<CCA4><F2A5ADA5>å<EFBFBD><C3A5>夷<EFBFBD>ʤ<EFBFBD><CAA4><EFBFBD>
|
|||
|
|
|||
|
have_func(func)
|
|||
|
|
|||
|
<20>ؿ<EFBFBD>func<6E><63>¸<EFBFBD>ߤ<EFBFBD><DFA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>å<EFBFBD><C3A5><EFBFBD><EFBFBD>롥func<6E><63>ɸ<EFBFBD><C9B8><EFBFBD>Ǥϥ<C7A4><CFA5><EFBFBD><F3A5AFA4><EFBFBD><EFBFBD>ʤ<EFBFBD>
|
|||
|
<20>饤<EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Τ<EFBFBD><CEA4>ΤǤ<CEA4><C7A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˤ<EFBFBD><CBA4><EFBFBD><EFBFBD><EFBFBD>have_library<72>Ǥ<EFBFBD><C7A4>Υ饤<CEA5><E9A5A4>
|
|||
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>å<EFBFBD><C3A5><EFBFBD><EFBFBD>Ƥ<EFBFBD><C6A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؿ<EFBFBD><D8BF><EFBFBD>¸<EFBFBD>ߤ<EFBFBD><DFA4><EFBFBD><EFBFBD><EFBFBD>true<75><65><EFBFBD>֤<EFBFBD><D6A4><EFBFBD>
|
|||
|
|
|||
|
have_header(header)
|
|||
|
|
|||
|
<20>إå<D8A5><C3A5>ե<EFBFBD><D5A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¸<EFBFBD>ߤ<EFBFBD><DFA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>å<EFBFBD><C3A5><EFBFBD><EFBFBD>롥<EFBFBD>إå<D8A5><C3A5>ե<EFBFBD><D5A5><EFBFBD><EFBFBD>뤬¸<EBA4AC>ߤ<EFBFBD>
|
|||
|
<20><><EFBFBD><EFBFBD>true<75><65><EFBFBD>֤<EFBFBD><D6A4><EFBFBD>
|
|||
|
|
|||
|
find_header(header)
|
|||
|
|
|||
|
<20>إå<D8A5><C3A5>ե<EFBFBD><D5A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¸<EFBFBD>ߤ<EFBFBD> -Ipath <20><><EFBFBD>ɲä<C9B2><C3A4>ʤ<EFBFBD><CAA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>å<EFBFBD><C3A5><EFBFBD><EFBFBD>롥
|
|||
|
<20>إå<D8A5><C3A5>ե<EFBFBD><D5A5><EFBFBD><EFBFBD>뤬<EFBFBD><EBA4AC><EFBFBD>դ<EFBFBD><D5A4>ä<EFBFBD><C3A4><EFBFBD>true<75><65><EFBFBD>֤<EFBFBD><D6A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̤<CCA4><F2A5ADA5>å<EFBFBD><C3A5>夷
|
|||
|
<20>ʤ<EFBFBD><CAA4><EFBFBD>
|
|||
|
|
|||
|
create_makefile(target)
|
|||
|
|
|||
|
<20><>ĥ<EFBFBD>饤<EFBFBD>֥<EFBFBD><D6A5><EFBFBD><EFBFBD>Ѥ<EFBFBD>Makefile<6C><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>롥<EFBFBD><EBA1A5><EFBFBD>δؿ<CEB4><D8BF><EFBFBD><EFBFBD>ƤФʤ<D0A4><CAA4><EFBFBD>
|
|||
|
<20>Ф<EFBFBD><D0A4>Υ饤<CEA5>֥<EFBFBD><D6A5><EFBFBD><EFBFBD>ϥ<EFBFBD><CFA5><EFBFBD><EFBFBD>ѥ<EFBFBD><D1A5>뤵<EFBFBD><EBA4B5><EFBFBD>ʤ<EFBFBD><CAA4><EFBFBD>target<65>ϥ⥸<CFA5>塼<EFBFBD><E5A1BC>̾
|
|||
|
<20><>ɽ<EFBFBD><C9BD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
with_config(withval[, default=nil])
|
|||
|
|
|||
|
--with-<withval><3E>ǻ<EFBFBD><C7BB>ꤵ<EFBFBD>줿<EFBFBD><ECA4BF><EFBFBD>ץ<EFBFBD><D7A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͤ<EFBFBD><CDA4><EFBFBD><EFBFBD>롥
|
|||
|
|
|||
|
dir_config(target)
|
|||
|
|
|||
|
--with-<target>-dir, --with-<target>-include, --with-<target>-lib
|
|||
|
<20>Τ<EFBFBD><CEA4><EFBFBD><EFBFBD>줫<EFBFBD>ǻ<EFBFBD><C7BB>ꤵ<EFBFBD><EAA4B5><EFBFBD><EFBFBD><EFBFBD>ǥ<EFBFBD><C7A5>쥯<EFBFBD>ȥ<EFBFBD><C8A5><EFBFBD> $CFLAGS <20><> $LDFLAGS
|
|||
|
<20><><EFBFBD>ɲä<C9B2><C3A4>롥
|
|||
|
|
|||
|
/*
|
|||
|
* Local variables:
|
|||
|
* fill-column: 60
|
|||
|
* end:
|
|||
|
*/
|