ruby-changes:44029
From: akr <ko1@a...>
Date: Thu, 8 Sep 2016 13:57:56 +0900 (JST)
Subject: [ruby-changes:44029] akr:r56102 (trunk): replace fixnum by integer in documents.
akr 2016-09-08 13:57:49 +0900 (Thu, 08 Sep 2016) New Revision: 56102 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56102 Log: replace fixnum by integer in documents. Modified files: trunk/array.c trunk/error.c trunk/file.c trunk/gc.c trunk/hash.c trunk/io.c trunk/object.c trunk/proc.c trunk/process.c trunk/range.c trunk/re.c trunk/signal.c trunk/string.c trunk/struct.c trunk/time.c Index: string.c =================================================================== --- string.c (revision 56101) +++ string.c (revision 56102) @@ -2954,7 +2954,7 @@ rb_str_hash_cmp(VALUE str1, VALUE str2) https://github.com/ruby/ruby/blob/trunk/string.c#L2954 /* * call-seq: - * str.hash -> fixnum + * str.hash -> integer * * Return a hash based on the string's length, content and encoding. * @@ -3245,8 +3245,8 @@ rb_strseq_index(VALUE str, VALUE sub, lo https://github.com/ruby/ruby/blob/trunk/string.c#L3245 /* * call-seq: - * str.index(substring [, offset]) -> fixnum or nil - * str.index(regexp [, offset]) -> fixnum or nil + * str.index(substring [, offset]) -> integer or nil + * str.index(regexp [, offset]) -> integer or nil * * Returns the index of the first occurrence of the given <i>substring</i> or * pattern (<i>regexp</i>) in <i>str</i>. Returns <code>nil</code> if not @@ -3409,8 +3409,8 @@ rb_str_rindex(VALUE str, VALUE sub, long https://github.com/ruby/ruby/blob/trunk/string.c#L3409 /* * call-seq: - * str.rindex(substring [, fixnum]) -> fixnum or nil - * str.rindex(regexp [, fixnum]) -> fixnum or nil + * str.rindex(substring [, integer]) -> integer or nil + * str.rindex(regexp [, integer]) -> integer or nil * * Returns the index of the last occurrence of the given <i>substring</i> or * pattern (<i>regexp</i>) in <i>str</i>. Returns <code>nil</code> if not @@ -3486,7 +3486,7 @@ rb_str_rindex_m(int argc, VALUE *argv, V https://github.com/ruby/ruby/blob/trunk/string.c#L3486 /* * call-seq: - * str =~ obj -> fixnum or nil + * str =~ obj -> integer or nil * * Match---If <i>obj</i> is a <code>Regexp</code>, use it as a pattern to match * against <i>str</i>,and returns the position the match starts, or @@ -4411,11 +4411,11 @@ rb_str_aset(VALUE str, VALUE indx, VALUE https://github.com/ruby/ruby/blob/trunk/string.c#L4411 /* * call-seq: - * str[fixnum] = new_str - * str[fixnum, fixnum] = new_str + * str[integer] = new_str + * str[integer, integer] = new_str * str[range] = aString * str[regexp] = new_str - * str[regexp, fixnum] = new_str + * str[regexp, integer] = new_str * str[regexp, name] = new_str * str[other_str] = new_str * @@ -4485,8 +4485,8 @@ rb_str_insert(VALUE str, VALUE idx, VALU https://github.com/ruby/ruby/blob/trunk/string.c#L4485 /* * call-seq: - * str.slice!(fixnum) -> new_str or nil - * str.slice!(fixnum, fixnum) -> new_str or nil + * str.slice!(integer) -> new_str or nil + * str.slice!(integer, integer) -> new_str or nil * str.slice!(range) -> new_str or nil * str.slice!(regexp) -> new_str or nil * str.slice!(other_str) -> new_str or nil @@ -5194,8 +5194,8 @@ str_byte_aref(VALUE str, VALUE indx) https://github.com/ruby/ruby/blob/trunk/string.c#L5194 /* * call-seq: - * str.byteslice(fixnum) -> new_str or nil - * str.byteslice(fixnum, fixnum) -> new_str or nil + * str.byteslice(integer) -> new_str or nil + * str.byteslice(integer, integer) -> new_str or nil * str.byteslice(range) -> new_str or nil * * Byte Reference---If passed a single <code>Fixnum</code>, returns a @@ -6942,7 +6942,7 @@ rb_str_tr_s(VALUE str, VALUE src, VALUE https://github.com/ruby/ruby/blob/trunk/string.c#L6942 /* * call-seq: - * str.count([other_str]+) -> fixnum + * str.count([other_str]+) -> integer * * Each +other_str+ parameter defines a set of characters to count. The * intersection of these sets defines the characters to count in +str+. Any @@ -7552,7 +7552,7 @@ rb_str_enumerate_bytes(VALUE str, int wa https://github.com/ruby/ruby/blob/trunk/string.c#L7552 /* * call-seq: - * str.each_byte {|fixnum| block } -> str + * str.each_byte {|integer| block } -> str * str.each_byte -> an_enumerator * * Passes each byte in <i>str</i> to the given block, or returns an @@ -9601,7 +9601,7 @@ sym_casecmp(VALUE sym, VALUE other) https://github.com/ruby/ruby/blob/trunk/string.c#L9601 /* * call-seq: - * sym =~ obj -> fixnum or nil + * sym =~ obj -> integer or nil * * Returns <code>sym.to_s =~ obj</code>. */ Index: object.c =================================================================== --- object.c (revision 56101) +++ object.c (revision 56102) @@ -145,7 +145,7 @@ rb_obj_equal(VALUE obj1, VALUE obj2) https://github.com/ruby/ruby/blob/trunk/object.c#L145 #if 0 /* * call-seq: - * obj.hash -> fixnum + * obj.hash -> integer * * Generates a Fixnum hash value for this object. This function must have the * property that <code>a.eql?(b)</code> implies <code>a.hash == b.hash</code>. Index: io.c =================================================================== --- io.c (revision 56101) +++ io.c (revision 56102) @@ -1980,8 +1980,8 @@ rb_io_fdatasync(VALUE io) https://github.com/ruby/ruby/blob/trunk/io.c#L1980 /* * call-seq: - * ios.fileno -> fixnum - * ios.to_i -> fixnum + * ios.fileno -> integer + * ios.to_i -> integer * * Returns an integer representing the numeric file descriptor for * <em>ios</em>. @@ -2004,7 +2004,7 @@ rb_io_fileno(VALUE io) https://github.com/ruby/ruby/blob/trunk/io.c#L2004 /* * call-seq: - * ios.pid -> fixnum + * ios.pid -> integer * * Returns the process ID of a child process associated with * <em>ios</em>. This will be set by <code>IO.popen</code>. @@ -3842,7 +3842,7 @@ rb_io_readchar(VALUE io) https://github.com/ruby/ruby/blob/trunk/io.c#L3842 /* * call-seq: - * ios.getbyte -> fixnum or nil + * ios.getbyte -> integer or nil * * Gets the next 8-bit byte (0..255) from <em>ios</em>. Returns * <code>nil</code> if called at end of file. @@ -3879,7 +3879,7 @@ rb_io_getbyte(VALUE io) https://github.com/ruby/ruby/blob/trunk/io.c#L3879 /* * call-seq: - * ios.readbyte -> fixnum + * ios.readbyte -> integer * * Reads a byte as with <code>IO#getbyte</code>, but raises an * <code>EOFError</code> on end of file. @@ -6438,7 +6438,7 @@ rb_io_s_open(int argc, VALUE *argv, VALU https://github.com/ruby/ruby/blob/trunk/io.c#L6438 /* * call-seq: - * IO.sysopen(path, [mode, [perm]]) -> fixnum + * IO.sysopen(path, [mode, [perm]]) -> integer * * Opens the given path, returning the underlying file descriptor as a * <code>Fixnum</code>. @@ -10021,8 +10021,8 @@ io_s_write(int argc, VALUE *argv, int bi https://github.com/ruby/ruby/blob/trunk/io.c#L10021 /* * call-seq: - * IO.write(name, string, [offset] ) => fixnum - * IO.write(name, string, [offset], open_args ) => fixnum + * IO.write(name, string, [offset] ) => integer + * IO.write(name, string, [offset], open_args ) => integer * * Opens the file, optionally seeks to the given <i>offset</i>, writes * <i>string</i>, then returns the length written. @@ -10044,7 +10044,7 @@ io_s_write(int argc, VALUE *argv, int bi https://github.com/ruby/ruby/blob/trunk/io.c#L10044 * specifies mode argument for open(). it should start with "w" or "a" or "r+" * otherwise it would cause error. * - * perm: fixnum + * perm: integer * * specifies perm argument for open(). * @@ -10066,8 +10066,8 @@ rb_io_s_write(int argc, VALUE *argv, VAL https://github.com/ruby/ruby/blob/trunk/io.c#L10066 /* * call-seq: - * IO.binwrite(name, string, [offset] ) => fixnum - * IO.binwrite(name, string, [offset], open_args ) => fixnum + * IO.binwrite(name, string, [offset] ) => integer + * IO.binwrite(name, string, [offset], open_args ) => integer * * Same as <code>IO.write</code> except opening the file in binary mode * and ASCII-8BIT encoding ("wb:ASCII-8BIT"). @@ -11067,8 +11067,8 @@ argf_rewind(VALUE argf) https://github.com/ruby/ruby/blob/trunk/io.c#L11067 /* * call-seq: - * ARGF.fileno -> fixnum - * ARGF.to_i -> fixnum + * ARGF.fileno -> integer + * ARGF.to_i -> integer * * Returns an integer representing the numeric file descriptor for * the current file. Raises an +ArgumentError+ if there isn't a current file. Index: process.c =================================================================== --- process.c (revision 56101) +++ process.c (revision 56102) @@ -405,7 +405,7 @@ parent_redirect_close(int fd) https://github.com/ruby/ruby/blob/trunk/process.c#L405 /* * call-seq: - * Process.pid -> fixnum + * Process.pid -> integer * * Returns the process id of this process. Not available on all * platforms. @@ -422,7 +422,7 @@ get_pid(void) https://github.com/ruby/ruby/blob/trunk/process.c#L422 /* * call-seq: - * Process.ppid -> fixnum + * Process.ppid -> integer * * Returns the process id of the parent of this process. Returns * untrustworthy value on Win32/64. Not available on all platforms. @@ -498,8 +498,8 @@ rb_last_status_clear(void) https://github.com/ruby/ruby/blob/trunk/process.c#L498 /* * call-seq: - * stat.to_i -> fixnum - * stat.to_int -> fixnum + * stat.to_i -> integer + * stat.to_int -> integer * * Returns the bits in _stat_ as a <code>Fixnum</code>. Poking * around in these bits is platform dependent. @@ -519,7 +519,7 @@ pst_to_i(VALUE st) https://github.com/ruby/ruby/blob/trunk/process.c#L519 /* * call-seq: - * stat.pid -> fixnum + * stat.pid -> integer * * Returns the process ID that this status object represents. * @@ -646,7 +646,7 @@ pst_equal(VALUE st1, VALUE st2) https://github.com/ruby/ruby/blob/trunk/process.c#L646 /* * call-seq: - * stat & num -> fixnum + * stat & num -> integer * * Logical AND of the bits in _stat_ with <em>num</em>. * @@ -667,7 +667,7 @@ pst_bitand(VALUE st1, VALUE st2) https://github.com/ruby/ruby/blob/trunk/process.c#L667 /* * call-seq: - * stat >> num -> fixnum + * stat >> num -> integer * * Shift the bits in _stat_ right <em>num</em> places. * @@ -709,7 +709,7 @@ pst_wifstopped(VALUE st) https://github.com/ruby/ruby/blob/trunk/process.c#L709 /* * call-seq: - * stat.stopsig -> fixnum or nil + * stat.stopsig -> integer or nil * * Returns the number of the signal that caused _stat_ to stop * (or +nil+ if self is not stopped). @@ -748,7 +748,7 @@ pst_wifsignaled(VALUE st) https://github.com/ruby/ruby/blob/trunk/process.c#L748 /* * call-seq: - * stat.termsig -> fixnum or nil + * stat.termsig -> integer or nil * * Returns the number of the signal that caused _stat_ to * terminate (or +nil+ if self was not terminated by an @@ -789,7 +789,7 @@ pst_wifexited(VALUE st) https://github.com/ruby/ruby/blob/trunk/process.c#L789 /* * call-seq: - * stat.exitstatus -> fixnum or nil + * stat.exitstatus -> integer or nil * * Returns the least significant eight bits of the return code of * _stat_. Only available if <code>exited?</code> is @@ -936,9 +936,9 @@ rb_waitpid(rb_pid_t pid, int *st, int fl https://github.com/ruby/ruby/blob/trunk/process.c#L936 /* * call-seq: - * Process.wait() -> fixnum - * Process.wait(pid=-1, flags=0) -> fixnum - * Process.waitpid(pid=-1, flags=0) -> fixnum + * Process.wait() -> integer + * Process.wait(pid=-1, flags=0) -> integer + * Process.waitpid(pid=-1, flags=0) -> integer * * Waits for a child process to exit, returns its process id, and * sets <code>$?</code> to a <code>Process::Status</code> object @@ -3646,8 +3646,8 @@ rb_fork_ruby(int *status) https://github.com/ruby/ruby/blob/trunk/process.c#L3646 #if defined(HAVE_WORKING_FORK) && !defined(CANNOT_FORK_WITH_PTHREAD) /* * call-seq: - * Kernel.fork [{ block }] -> fixnum or nil - * Process.fork [{ block }] -> fixnum or nil + * Kernel.fork [{ block }] -> integer or nil + * Process.fork [{ block }] -> integer or nil * * Creates a subprocess. If a block is specified, that block is run * in the subprocess, and the subprocess terminates with a status of @@ -4188,7 +4188,7 @@ rb_f_system(int argc, VALUE *argv) https://github.com/ruby/ruby/blob/trunk/process.c#L4188 * * pid = spawn(command, :umask=>077) * - * The :in, :out, :err, a fixnum, an IO and an array key specifies a redirection. + * The :in, :out, :err, a integer, an IO and an array key specifies a redirection. * The redirection maps a file descriptor in the child process. * * For example, stderr can be merged into stdout as follows: @@ -4346,7 +4346,7 @@ rb_f_spawn(int argc, VALUE *argv) https://github.com/ruby/ruby/blob/trunk/process.c#L4346 /* * call-seq: - * sleep([duration]) -> fixnum + * sleep([duration]) -> integer * * Suspends the current thread for _duration_ seconds (which may be any number, * including a +Float+ with fractional seconds). Returns the actual number of @@ -4529,7 +4529,7 @@ static rb_pid_t ruby_setsid(void); https://github.com/ruby/ruby/blob/trunk/process.c#L4529 #endif /* * call-seq: - * Process.setsid -> fixnum + * Process.setsid -> integer * * Establishes this process as a new session and process group * leader, with no controlling tty. Returns the session id. Not @@ -4583,7 +4583,7 @@ ruby_setsid(void) https://github.com/ruby/ruby/blob/trunk/process.c#L4583 #ifdef HAVE_GETPRIORITY /* * call-seq: - * Process.getpriority(kind, integer) -> fixnum + * Process.getpriority(kind, integer) -> integer * * Gets the scheduling priority for specified process, process group, * or user. <em>kind</em> indicates the kind of entity to find: one @@ -5274,9 +5274,9 @@ p_sys_setresuid(VALUE obj, VALUE rid, VA https://github.com/ruby/ruby/blob/trunk/process.c#L5274 /* * call-seq: - * Process.uid -> fixnum - * Process::UID.rid -> fixnum - * Process::Sys.getuid -> fixnum + * Process.uid -> integer + * Process::UID.rid -> integer + * Process::Sys.getuid -> integer * * Returns the (real) user ID of this process. * @@ -5360,7 +5360,7 @@ setreuid(rb_uid_t ruid, rb_uid_t euid) https://github.com/ruby/ruby/blob/trunk/process.c#L5360 /* * call-seq: - * Process::UID.change_privilege(user) -> fixnum + * Process::UID.change_privilege(user) -> integer * * Change the current process's real and effective user ID to that * specified by _user_. Returns the new user ID. Not @@ -5681,9 +5681,9 @@ p_sys_issetugid(VALUE obj) https://github.com/ruby/ruby/blob/trunk/process.c#L5681 /* * call-seq: - * Process.gid -> fixnum - * Process::GID.rid -> fixnum - * Process::Sys.getgid -> fixnum + * Process.gid -> integer + * Process::GID.rid -> integer + * Process::Sys.getgid -> integer * * Returns the (real) group ID for this process. * @@ -5701,7 +5701,7 @@ proc_getgid(VALUE obj) https://github.com/ruby/ruby/blob/trunk/process.c#L5701 #if defined(HAVE_SETRESGID) || defined(HAVE_SETREGID) || defined(HAVE_SETRGID) || defined(HAVE_SETGID) /* * call-seq: - * Process.gid= fixnum -> fixnum + * Process.gid= integer -> integer * * Sets the group ID for this process. */ @@ -5909,7 +5909,7 @@ proc_initgroups(VALUE obj, VALUE uname, https://github.com/ruby/ruby/blob/trunk/process.c#L5909 #if defined(_SC_NGROUPS_MAX) || defined(NGROUPS_MAX) /* * call-seq: - * Process.maxgroups -> fixnum + * Process.maxgroups -> integer * * Returns the maximum number of gids allowed in the supplemental * group access list. @@ -5929,7 +5929,7 @@ proc_getmaxgroups(VALUE obj) https://github.com/ruby/ruby/blob/trunk/process.c#L5929 #ifdef HAVE_SETGROUPS /* * call-seq: - * Process.maxgroups= fixnum -> fixnum + * Process.maxgroups= integer -> integer * * Sets the maximum number of gids allowed in the supplemental group * access list. @@ -6064,7 +6064,7 @@ setregid(rb_gid_t rgid, rb_gid_t egid) https://github.com/ruby/ruby/blob/trunk/process.c#L6064 /* * call-seq: - * Process::GID.change_privilege(group) -> fixnum + * Process::GID.change_privilege(group) -> integer * * Change the current process's real and effective group ID to that * specified by _group_. Returns the new group ID. Not @@ -6233,9 +6233,9 @@ p_gid_change_privilege(VALUE obj, VALUE https://github.com/ruby/ruby/blob/trunk/process.c#L6233 /* * call-seq: - * Process.euid -> fixnum - * Process::UID.eid -> fixnum - * Process::Sys.geteuid -> fixnum + * Process.euid -> integer + * Process::UID.eid -> integer + * Process::Sys.geteuid -> integer * * Returns the effective user ID for this process. * @@ -6334,8 +6334,8 @@ rb_seteuid_core(rb_uid_t euid) https://github.com/ruby/ruby/blob/trunk/process.c#L6334 /* * call-seq: - * Process::UID.grant_privilege(user) -> fixnum - * Process::UID.eid= user -> fixnum + * Process::UID.grant_privilege(user) -> integer + * Process::UID.eid= user -> integer * * Set the effective user ID, and if possible, the saved user ID of * the process to the given _user_. Returns the new @@ -6356,9 +6356,9 @@ p_uid_grant_privilege(VALUE obj, VALUE i https://github.com/ruby/ruby/blob/trunk/process.c#L6356 /* * call-seq: - * Process.egid -> fixnum - * Process::GID.eid -> fixnum - * Process::Sys.geteid -> fixnum + * Process.egid -> integer + * Process::GID.eid -> integer + * Process::Sys.geteid -> integer * * Returns the effective group ID for this process. Not available on * all platforms. @@ -6377,7 +6377,7 @@ proc_getegid(VALUE obj) https://github.com/ruby/ruby/blob/trunk/process.c#L6377 #if defined(HAVE_SETRESGID) || defined(HAVE_SETREGID) || defined(HAVE_SETEGID) || defined(HAVE_SETGID) || defined(_POSIX_SAVED_IDS) /* * call-seq: - * Process.egid = fixnum -> fixnum + * Process.egid = integer -> integer * * Sets the effective group ID for this process. Not available on all * platforms. @@ -6464,8 +6464,8 @@ rb_setegid_core(rb_gid_t egid) https://github.com/ruby/ruby/blob/trunk/process.c#L6464 /* * call-seq: - * Process::GID.grant_privilege(group) -> fixnum - * Process::GID.eid = group -> fixnum + * Process::GID.grant_privilege(group) -> integer + * Process::GID.eid = group -> integer * * Set the effective group ID, and if possible, the saved group ID of * the process to the given _group_. Returns the new @@ -6508,7 +6508,7 @@ p_uid_exchangeable(void) https://github.com/ruby/ruby/blob/trunk/process.c#L6508 /* * call-seq: - * Process::UID.re_exchange -> fixnum + * Process::UID.re_exchange -> integer * * Exchange real and effective user IDs and return the new effective * user ID. Not available on all platforms. @@ -6570,7 +6570,7 @@ p_gid_exchangeable(void) https://github.com/ruby/ruby/blob/trunk/process.c#L6570 /* * call-seq: - * Process::GID.re_exchange -> fixnum + * Process::GID.re_exchange -> integer * * Exchange real and effective group IDs and return the new effective * group ID. Not available on all platforms. @@ -6641,7 +6641,7 @@ p_uid_sw_ensure(rb_uid_t id) https://github.com/ruby/ruby/blob/trunk/process.c#L6641 /* * call-seq: - * Process::UID.switch -> fixnum + * Process::UID.switch -> integer * Process::UID.switch {|| block} -> object * * Switch the effective and real user IDs of (... truncated) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/