diff options
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | README.EXT | 38 | ||||
-rw-r--r-- | README.EXT.ja | 36 | ||||
-rw-r--r-- | README.ja | 8 |
4 files changed, 42 insertions, 42 deletions
@@ -128,7 +128,7 @@ See the file COPYING. * The Author -Feel free to send comments and bug reports to the author. Here is the +Feel free to send comments and bug reports to the author. Here is the author's latest mail address: diff --git a/README.EXT b/README.EXT index de63f54699..9a6eeb0d04 100644 --- a/README.EXT +++ b/README.EXT @@ -149,7 +149,7 @@ To convert C data to Ruby values: cast to VALUE. -You can determine whether a VALUE is pointer or not by checking its LSB. +You can determine whether a VALUE is pointer or not by checking its LSB. Notice Ruby does not allow arbitrary pointer values to be a VALUE. They should be pointers to the structures which Ruby knows about. The known @@ -215,9 +215,9 @@ listed below: rb_str_cat2(str, rb_vsprintf(format, ap)), respectively. rb_enc_str_new(const char *ptr, long len, rb_encoding *enc) - + Creates a new Ruby string with the specified encoding. - + rb_usascii_str_new(const char *ptr, long len) rb_usascii_str_new_cstr(const char *ptr) @@ -315,17 +315,17 @@ To define nested classes or modules, use the functions below: To define methods or singleton methods, use these functions: - void rb_define_method(VALUE klass, const char *name, + void rb_define_method(VALUE klass, const char *name, VALUE (*func)(), int argc) - void rb_define_singleton_method(VALUE object, const char *name, + void rb_define_singleton_method(VALUE object, const char *name, VALUE (*func)(), int argc) The `argc' represents the number of the arguments to the C function, which must be less than 17. But I doubt you'll need that many. If `argc' is negative, it specifies the calling sequence, not number of -the arguments. +the arguments. If argc is -1, the function will be called as: @@ -345,14 +345,14 @@ actual arguments. There are some more functions to define methods. One takes an ID as the name of method to be defined. See 2.2.2 for IDs. - void rb_define_method_id(VALUE klass, ID name, + void rb_define_method_id(VALUE klass, ID name, VALUE (*func)(ANYARGS), int argc) There are two functions to define private/protected methods: - void rb_define_private_method(VALUE klass, const char *name, + void rb_define_private_method(VALUE klass, const char *name, VALUE (*func)(), int argc) - void rb_define_protected_method(VALUE klass, const char *name, + void rb_define_protected_method(VALUE klass, const char *name, VALUE (*func)(), int argc) At last, rb_define_module_function defines a module functions, @@ -369,7 +369,7 @@ or To define module functions, use: - void rb_define_module_function(VALUE module, const char *name, + void rb_define_module_function(VALUE module, const char *name, VALUE (*func)(), int argc) In addition, function-like methods, which are private methods defined @@ -418,7 +418,7 @@ evaluate the string as Ruby program. This function will do the job: Evaluation is done under the current context, thus current local variables of the innermost method (which is defined by Ruby) can be accessed. -Note that the evaluation can raise an exception. There is a safer +Note that the evaluation can raise an exception. There is a safer function: VALUE rb_eval_string_protect(const char *str, int *state) @@ -582,7 +582,7 @@ Data_Get_Struct(). A pointer to the structure will be assigned to the variable sval. -See the example below for details. +See the example below for details. 4. Example - Creating dbm extension @@ -640,7 +640,7 @@ Init_dbm(void) } -- -The dbm extension wraps the dbm struct in the C environment using +The dbm extension wraps the dbm struct in the C environment using Data_Make_Struct. -- @@ -869,7 +869,7 @@ utility functions ruby interpreter implementation dmyext.c - dmydln.c + dmydln.c dmyencoding.c id.c inits.c @@ -905,7 +905,7 @@ class library rational.c : Rational re.c : Regexp, MatchData signal.c : Signal - sprintf.c : + sprintf.c : string.c : String struct.c : Struct time.c : Time @@ -920,7 +920,7 @@ multilingualization enc/trans/* : codepoint mapping tables goruby interpreter implementation - + goruby.c golf_prelude.rb : goruby specific libraries. -> golf_prelude.c : automatically generated @@ -968,7 +968,7 @@ sval, and returns the DATA encapsulating the pointer to memory region. Data_Get_Struct(data, type, sval) This macro retrieves the pointer value from DATA, and assigns it to -the variable sval. +the variable sval. ** Checking data types @@ -1055,7 +1055,7 @@ The getter function must return the value for the access. void rb_define_hooked_variable(const char *name, VALUE *var, VALUE (*getter)(), VALUE (*setter)()) -Defines hooked variable. It's a virtual variable with a C variable. +Defines hooked variable. It's a virtual variable with a C variable. The getter is called as VALUE getter(ID id, VALUE *var) @@ -1213,7 +1213,7 @@ arguments. Calls the function func1, supplying func2 as the block. func1 will be called with the argument arg1. func2 receives the value from yield as the first argument, arg2 as the second argument. - + When rb_iterate is used in 1.9, func1 has to call some Ruby-level method. This function is obsolete since 1.9; use rb_block_call instead. diff --git a/README.EXT.ja b/README.EXT.ja index f2d7609ff5..9e0a7a2cb0 100644 --- a/README.EXT.ja +++ b/README.EXT.ja @@ -115,9 +115,9 @@ FIXNUM��NIL�˴ؤ��ƤϤ���®��Ƚ�̥ޥ������Ѱդ���Ƥ��ޤ��� (�������Ѵ��Ǥ��ʤ����ˤ��㳰��ȯ������)��Ʊ�ͤ˥����å�̵ �ǻȤ����Ѵ��ޥ�����double����Ф���NUM2DBL()�פ�����ޤ��� -char* ����Ф���硤 StringValue() �� StringValuePtr() +char* ����Ф���硤 StringValue() �� StringValuePtr() ��Ȥ��ޤ��� -StringValue(var) �� var �� String +StringValue(var) �� var �� String �Ǥ���в��⤻���������Ǥʤ���� var �� var.to_str() �η�� ���֤�������ޥ�����StringValuePtr(var) ��Ʊ�ͤ� var �� String ���֤������Ƥ��� var �ΥХ�����ɽ�����Ф��� char* �� @@ -242,9 +242,9 @@ Ruby���Ѱդ��Ƥ���ؿ����Ѥ��Ƥ��������� rb_str_cat2(str, rb_vsprintf(format, ap)) ��Ʊ���Ǥ��롥 rb_enc_str_new(const char *ptr, long len, rb_encoding *enc) - + ���ꤵ�줿�����ǥ���Ruby��ʸ�������������. - + rb_usascii_str_new(const char *ptr, long len) rb_usascii_str_new_cstr(const char *ptr) @@ -352,10 +352,10 @@ Ruby������Ƥ���ؿ���Ȥ���Ruby���ץ�˿�������ǽ ��åɤ��ðۥ�åɤ��������ˤϰʲ��δؿ���Ȥ��ޤ��� - void rb_define_method(VALUE klass, const char *name, + void rb_define_method(VALUE klass, const char *name, VALUE (*func)(), int argc) - void rb_define_singleton_method(VALUE object, const char *name, + void rb_define_singleton_method(VALUE object, const char *name, VALUE (*func)(), int argc) @@ -377,14 +377,14 @@ argc��-1�λ��ϰ����������������Ϥ���ޤ���argc��-2�λ��ϰ� ��åɤ��������ؿ��Ϥޤ������Ĥ�����ޤ�. �ҤȤĤϥ�å� ̾�Ȥ���ID����ޤ�. ID�ˤĤ��Ƥ�2.2.2��. - void rb_define_method_id(VALUE klass, ID name, + void rb_define_method_id(VALUE klass, ID name, VALUE (*func)(ANYARGS), int argc) private/protected�ʥ�åɤ��������դ��Ĥδؿ�������ޤ�. - void rb_define_private_method(VALUE klass, const char *name, + void rb_define_private_method(VALUE klass, const char *name, VALUE (*func)(), int argc) - void rb_define_protected_method(VALUE klass, const char *name, + void rb_define_protected_method(VALUE klass, const char *name, VALUE (*func)(), int argc) private��åɤȤϴؿ������Ǥ����ƤӽФ����Ȥν���ʤ���� @@ -405,7 +405,7 @@ private��åɤǤ⤢���ΤǤ���������Math�⥸�塼�� �Ȥ��������Ǥ�Ȥ��ޤ����⥸�塼��ؿ����������ؿ��ϰʲ��� �̤�Ǥ��� - void rb_define_module_function(VALUE module, const char *name, + void rb_define_module_function(VALUE module, const char *name, VALUE (*func)(), int argc) �ؿ�Ū��å�(Kernel�⥸�塼���private method)��������뤿 @@ -1005,7 +1005,7 @@ Ruby���ޥ�ɤμ��� rational.c : Rational re.c : Regexp, MatchData signal.c : Signal - sprintf.c : + sprintf.c : string.c : String struct.c : Struct time.c : Time @@ -1020,7 +1020,7 @@ Ruby���ޥ�ɤμ��� enc/trans/* : �����ɥݥ�����б�ɽ goruby���ޥ�ɤμ��� - + goruby.c golf_prelude.rb : goruby��ͭ�Υ饤�֥�� -> golf_prelude.c : ��ư���� @@ -1180,12 +1180,12 @@ void rb_define_global_const(const char *name, VALUE val) rb_define_method(VALUE klass, const char *name, VALUE (*func)(), int argc) - ��åɤ�������롥argc��self����������ο���argc��-1�λ�, + ��åɤ�������롥argc��self����������ο���argc��-1�λ�, �ؿ��ˤϰ����ο�(self��ޤޤʤ�)����1����, �������������2 - �����Ȥ��������Ϳ������(��3������self)��argc��-2�λ�, + �����Ȥ��������Ϳ������(��3������self)��argc��-2�λ�, ��1������self, ��2������args(args�ϰ�����ޤ�Ruby������)�� ����������Ϳ�����롥 - + rb_define_private_method(VALUE klass, const char *name, VALUE (*func)(), int argc) private��åɤ�������롥������rb_define_method()��Ʊ���� @@ -1298,10 +1298,10 @@ VALUE rb_block_call(VALUE obj, ID mid, int argc, VALUE * argv, [OBSOLETE] VALUE rb_iterate(VALUE (*func1)(), VALUE arg1, VALUE (*func2)(), VALUE arg2) - func2��֥��å��Ȥ������ꤷ, func1�ƥ졼���Ȥ��ƸƤ֡� + func2��֥��å��Ȥ������ꤷ, func1�ƥ졼���Ȥ��ƸƤ֡� func1�ˤ� arg1�������Ȥ����Ϥ���, func2�ˤ���1�����˥��ƥ졼 ������Ϳ����줿��, ��2������arg2���Ϥ���롥 - + 1.9��rb_iterate��Ȥ�����, func1�����Ruby��٥�Υ�å� ��ƤӽФ��ʤ���Фʤ�ʤ�. 1.9��obsolete�Ȥʤä�. �����rb_block_call���Ѱդ��줿. @@ -1559,7 +1559,7 @@ dir_config(target[, default_include, default_lib]) pkg_config(pkg) - pkg-config���ޥ�ɤ���ѥå�����pkg�ξ�������롥 + pkg-config���ޥ�ɤ���ѥå�����pkg�ξ�������롥 pkg-config�μºݤΥ��ޥ��̾�ϡ�--with-pkg-config���ޥ�� �饤�ץ����ǻ����ǽ�� @@ -61,8 +61,8 @@ Ruby�Υ��ꥹ�Ȥ�����ޤ������ô�˾������ �ޤ���ʸ�� subscribe YourFirstName YourFamilyName - -�Ƚ����äƲ������� + +�Ƚ����äƲ������� Ruby��ȯ�Ը������ꥹ�Ȥ⤢��ޤ���������Ǥ�ruby�Υ� ��������λ��ͳ�ĥ�ʤɼ����������ˤĤ��Ƶ�������Ƥ��ޤ��� @@ -70,12 +70,12 @@ Ruby��ȯ�Ը������ꥹ�Ȥ⤢��ޤ���������Ǥ�ruby�Υ� -�ޤ�ruby-list��Ʊ�ͤ���ˡ�ǥ�뤷�Ƥ��������� +�ޤ�ruby-list��Ʊ�ͤ���ˡ�ǥ�뤷�Ƥ��������� Ruby��ĥ�⥸�塼��ˤĤ����ä��礦ruby-ext���ꥹ�Ȥ� ���شط�������ˤĤ����ä��礦ruby-math���ꥹ�Ȥ� �Ѹ���ä��礦ruby-talk���ꥹ�Ȥ⤢��ޤ���������ˡ -�Ϥɤ��Ʊ���Ǥ��� +�Ϥɤ��Ʊ���Ǥ��� * ����ѥ��롦���ȡ��� |