Skip to content

Commit

Permalink
* README*: remove trailing spaces.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
znz committed Aug 25, 2011
1 parent 5f55548 commit a6e30a8
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 42 deletions.
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -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:

matz@netlab.jp
Expand Down
38 changes: 19 additions & 19 deletions README.EXT
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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:

Expand All @@ -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,
Expand All @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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.

--
Expand Down Expand Up @@ -869,7 +869,7 @@ utility functions
ruby interpreter implementation

dmyext.c
dmydln.c
dmydln.c
dmyencoding.c
id.c
inits.c
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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.

Expand Down
36 changes: 18 additions & 18 deletions README.EXT.ja
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ FIXNUM
(�������Ѵ��Ǥ��ʤ����ˤ��㳰��ȯ������)��Ʊ�ͤ˥����å�̵
�ǻȤ����Ѵ��ޥ�����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* ��
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -352,10 +352,10 @@ 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)


Expand All @@ -377,14 +377,14 @@ argc
�᥽�åɤ��������ؿ��Ϥޤ������Ĥ�����ޤ�. �ҤȤĤϥ᥽�å�
̾�Ȥ���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�᥽�åɤȤϴؿ������Ǥ����ƤӽФ����Ȥν���ʤ��᥽��
Expand All @@ -405,7 +405,7 @@ private
�Ȥ��������Ǥ�Ȥ��ޤ����⥸�塼��ؿ����������ؿ��ϰʲ���
�̤�Ǥ���

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)��������뤿
Expand Down Expand Up @@ -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
Expand All @@ -1020,7 +1020,7 @@ Ruby
enc/trans/* : �����ɥݥ�����б�ɽ

goruby���ޥ�ɤμ���

goruby.c
golf_prelude.rb : goruby��ͭ�Υ饤�֥��
-> golf_prelude.c : ��ư����
Expand Down Expand Up @@ -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()��Ʊ����
Expand Down Expand Up @@ -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���Ѱդ��줿.
Expand Down Expand Up @@ -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���ޥ��
�饤�󥪥ץ����ǻ����ǽ��

Expand Down
8 changes: 4 additions & 4 deletions README.ja
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,21 @@ Ruby
�ޤ���ʸ��

subscribe YourFirstName YourFamilyName
�Ƚ񤤤����äƲ�������

�Ƚ񤤤����äƲ�������

Ruby��ȯ�Ը����᡼��󥰥ꥹ�Ȥ⤢��ޤ���������Ǥ�ruby�Υ�
��������λ��ͳ�ĥ�ʤɼ����������ˤĤ��Ƶ�������Ƥ��ޤ���
���ô�˾������

ruby-dev-ctl@ruby-lang.org

�ޤ�ruby-list��Ʊ�ͤ���ˡ�ǥ᡼�뤷�Ƥ���������
�ޤ�ruby-list��Ʊ�ͤ���ˡ�ǥ᡼�뤷�Ƥ���������

Ruby��ĥ�⥸�塼��ˤĤ����ä��礦ruby-ext�᡼��󥰥ꥹ�Ȥ�
���شط�������ˤĤ����ä��礦ruby-math�᡼��󥰥ꥹ�Ȥ�
�Ѹ���ä��礦ruby-talk�᡼��󥰥ꥹ�Ȥ⤢��ޤ���������ˡ
�Ϥɤ��Ʊ���Ǥ���
�Ϥɤ��Ʊ���Ǥ���


* ����ѥ��롦���󥹥ȡ���
Expand Down

0 comments on commit a6e30a8

Please sign in to comment.