mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix typos. Patch by k_takata.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
67964f299b
commit
edb98f8b91
62 changed files with 132 additions and 132 deletions
10
README.EXT
10
README.EXT
|
@ -760,7 +760,7 @@ various conditions.
|
|||
check_sizeof(type[, headers[, opts]]): check size of type
|
||||
check_signedness(type[, headers[, opts]]): check signedness of type
|
||||
convertible_int(type[, headers[, opts]]): find convertible integer type
|
||||
find_executable(bin[, path]): find excutable file path
|
||||
find_executable(bin[, path]): find executable file path
|
||||
create_header(header): generate configured header
|
||||
create_makefile(target[, target_prefix]): generate Makefile
|
||||
|
||||
|
@ -853,7 +853,7 @@ lex.c :: automatically generated from keywords
|
|||
eval_safe.c
|
||||
insns.def : definition of VM instructions
|
||||
iseq.c : implementation of VM::ISeq
|
||||
thread.c : thread management and context swiching
|
||||
thread.c : thread management and context switching
|
||||
thread_win32.c : thread implementation
|
||||
thread_pthread.c : ditto
|
||||
vm.c
|
||||
|
@ -882,7 +882,7 @@ lex.c :: automatically generated from keywords
|
|||
|
||||
== Utility Functions
|
||||
|
||||
debug.c :: debug symbols for C debuggger
|
||||
debug.c :: debug symbols for C debugger
|
||||
dln.c :: dynamic loading
|
||||
st.c :: general purpose hash table
|
||||
strftime.c :: formatting times
|
||||
|
@ -1312,12 +1312,12 @@ VALUE rb_ensure(VALUE (*func1)(), VALUE arg1, VALUE (*func2)(), VALUE arg2) ::
|
|||
|
||||
Calls the function func1 with arg1 as the argument, then calls func2
|
||||
with arg2 if execution terminated. The return value from
|
||||
rb_ensure() is that of func1 when no exception occured.
|
||||
rb_ensure() is that of func1 when no exception occurred.
|
||||
|
||||
VALUE rb_protect(VALUE (*func) (VALUE), VALUE arg, int *state) ::
|
||||
|
||||
Calls the function func with arg as the argument. If no exception
|
||||
occured during func, it returns the result of func and *state is zero.
|
||||
occurred during func, it returns the result of func and *state is zero.
|
||||
Otherwise, it returns Qnil and sets *state to nonzero. If state is
|
||||
NULL, it is not set in both cases.
|
||||
You have to clear the error info with rb_set_errinfo(Qnil) when
|
||||
|
|
|
@ -193,7 +193,7 @@ INT2NUM()は整数がFIXNUMの範囲に収まらない場合,Bignumに変換
|
|||
Rubyが用意している関数を用いてください.
|
||||
|
||||
ここではもっとも使われるであろう文字列と配列の生成/操作を行
|
||||
い関数をあげます(全部ではないです).
|
||||
う関数をあげます(全部ではないです).
|
||||
|
||||
=== 文字列に対する関数
|
||||
|
||||
|
|
2
bignum.c
2
bignum.c
|
@ -363,7 +363,7 @@ rb_int2inum(SIGNED_VALUE n)
|
|||
* is the sign bit: 1 means negative and 0 means zero or positive.
|
||||
*
|
||||
* If given size of buf (num_longs) is not enough to represent val,
|
||||
* higier words (including a sign bit) are ignored.
|
||||
* higher words (including a sign bit) are ignored.
|
||||
*/
|
||||
void
|
||||
rb_big_pack(VALUE val, unsigned long *buf, long num_longs)
|
||||
|
|
|
@ -3429,7 +3429,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
|
|||
redo_label, end_label);
|
||||
}
|
||||
else if (type == NODE_UNTIL) {
|
||||
/* untile */
|
||||
/* until */
|
||||
compile_branch_condition(iseq, ret, node->nd_cond,
|
||||
end_label, redo_label);
|
||||
}
|
||||
|
@ -4473,7 +4473,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
|
|||
}
|
||||
ADD_INSN1(args, line, newarray, INT2FIX(j));
|
||||
ADD_INSN (args, line, concatarray);
|
||||
/* argc is setteled at above */
|
||||
/* argc is settled at above */
|
||||
}
|
||||
else {
|
||||
int j;
|
||||
|
|
|
@ -13763,7 +13763,7 @@ Tue Apr 17 17:33:55 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
|||
|
||||
* eval.c (handle_rescue): use === to compare exception match.
|
||||
|
||||
* error.c (syserr_eqq): comparison between SytemCallErrors should
|
||||
* error.c (syserr_eqq): comparison between SystemCallErrors should
|
||||
based on their error numbers.
|
||||
|
||||
Tue Apr 17 16:54:39 2001 K.Kosako <kosako@sofnec.co.jp>
|
||||
|
|
|
@ -14297,7 +14297,7 @@ Thu Jun 10 09:10:08 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
|
|||
|
||||
Wed Jun 9 22:51:50 2010 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* time.c (find_time_t): always outerpolate from past.
|
||||
* time.c (find_time_t): always extrapolate from past.
|
||||
[ruby-core:30672] reported by Benoit Daloze.
|
||||
|
||||
Wed Jun 9 22:13:08 2010 Tanaka Akira <akr@fsij.org>
|
||||
|
@ -76939,7 +76939,7 @@ Sat May 28 16:39:21 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
|||
Sat May 28 05:15:44 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||
|
||||
* ext/openssl/ossl_x509store.c (ossl_x509stctx_set_time): should
|
||||
not set internal flag directry.
|
||||
not set internal flag directory.
|
||||
|
||||
Sat May 28 02:00:11 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||
|
||||
|
|
10
eval.c
10
eval.c
|
@ -40,7 +40,7 @@ VALUE rb_eSysStackError;
|
|||
|
||||
/* Initializes the Ruby VM and builtin libraries.
|
||||
* @retval 0 if succeeded.
|
||||
* @retval non-zero an error occured.
|
||||
* @retval non-zero an error occurred.
|
||||
*/
|
||||
int
|
||||
ruby_setup(void)
|
||||
|
@ -69,7 +69,7 @@ ruby_setup(void)
|
|||
|
||||
/* Calls ruby_setup() and check error.
|
||||
*
|
||||
* Prints errors and calls exit(3) if an error occured.
|
||||
* Prints errors and calls exit(3) if an error occurred.
|
||||
*/
|
||||
void
|
||||
ruby_init(void)
|
||||
|
@ -84,7 +84,7 @@ ruby_init(void)
|
|||
/*! Processes command line arguments and compiles the Ruby source to execute.
|
||||
*
|
||||
* This function does:
|
||||
* \li Processses the given command line flags and arguments for ruby(1)
|
||||
* \li Processes the given command line flags and arguments for ruby(1)
|
||||
* \li compiles the source code from the given argument, -e or stdin, and
|
||||
* \li returns the compiled source as an opaque pointer to an internal data structure
|
||||
*
|
||||
|
@ -151,7 +151,7 @@ ruby_finalize(void)
|
|||
* resources used by the VM.
|
||||
*
|
||||
* @param ex Default value to the return value.
|
||||
* @return If an error occured returns a non-zero. If otherwise, returns the
|
||||
* @return If an error occurred returns a non-zero. If otherwise, returns the
|
||||
* given ex.
|
||||
* @note This function does not raise any exception.
|
||||
*/
|
||||
|
@ -297,7 +297,7 @@ ruby_executable_node(void *n, int *status)
|
|||
}
|
||||
|
||||
/*! Runs the given compiled source and exits this process.
|
||||
* @retval 0 if successfully run thhe source
|
||||
* @retval 0 if successfully run the source
|
||||
* @retval non-zero if an error occurred.
|
||||
*/
|
||||
int
|
||||
|
|
|
@ -2553,7 +2553,7 @@ BigDecimal_sign(VALUE self)
|
|||
/*
|
||||
* call-seq: BigDecimal.save_exception_mode { ... }
|
||||
*
|
||||
* Excecute the provided block, but preserve the exception mode
|
||||
* Execute the provided block, but preserve the exception mode
|
||||
*
|
||||
* BigDecimal.save_exception_mode do
|
||||
* BigDecimal.mode(BigDecimal::EXCEPTION_OVERFLOW, false)
|
||||
|
@ -2582,7 +2582,7 @@ BigDecimal_save_exception_mode(VALUE self)
|
|||
/*
|
||||
* call-seq: BigDecimal.save_rounding_mode { ... }
|
||||
*
|
||||
* Excecute the provided block, but preserve the rounding mode
|
||||
* Execute the provided block, but preserve the rounding mode
|
||||
*
|
||||
* BigDecimal.save_exception_mode do
|
||||
* BigDecimal.mode(BigDecimal::ROUND_MODE, :up)
|
||||
|
@ -2607,7 +2607,7 @@ BigDecimal_save_rounding_mode(VALUE self)
|
|||
/*
|
||||
* call-seq: BigDecimal.save_limit { ... }
|
||||
*
|
||||
* Excecute the provided block, but preserve the precision limit
|
||||
* Execute the provided block, but preserve the precision limit
|
||||
*
|
||||
* BigDecimal.limit(100)
|
||||
* puts BigDecimal.limit
|
||||
|
@ -3266,7 +3266,7 @@ static int gfCheckVal = 1; /* Value checking flag in VpNmlz() */
|
|||
|
||||
static Real *VpConstOne; /* constant 1.0 */
|
||||
static Real *VpPt5; /* constant 0.5 */
|
||||
#define maxnr 100UL /* Maximum iterations for calcurating sqrt. */
|
||||
#define maxnr 100UL /* Maximum iterations for calculating sqrt. */
|
||||
/* used in VpSqrt() */
|
||||
|
||||
/* ETC */
|
||||
|
@ -3690,7 +3690,7 @@ VpNumOfChars(Real *vp,const char *pszFmt)
|
|||
* [Input]
|
||||
* BaseVal: Base value(assigned to BASE) for Vp calculation.
|
||||
* It must be the form BaseVal=10**n.(n=1,2,3,...)
|
||||
* If Base <= 0L,then the BASE will be calcurated so
|
||||
* If Base <= 0L,then the BASE will be calculated so
|
||||
* that BASE is as large as possible satisfying the
|
||||
* relation MaxVal <= BASE*(BASE+1). Where the value
|
||||
* MaxVal is the largest value which can be represented
|
||||
|
@ -4415,7 +4415,7 @@ VpSetPTR(Real *a, Real *b, Real *c, size_t *a_pos, size_t *b_pos, size_t *c_pos,
|
|||
}
|
||||
|
||||
/*
|
||||
* Return number og significant digits
|
||||
* Return number of significant digits
|
||||
* c = a * b , Where a = a0a1a2 ... an
|
||||
* b = b0b1b2 ... bm
|
||||
* c = c0c1c2 ... cl
|
||||
|
@ -4651,7 +4651,7 @@ VpDivd(Real *c, Real *r, Real *a, Real *b)
|
|||
}
|
||||
/* The first few word digits of r and b is the same and */
|
||||
/* the first different word digit of w is greater than that */
|
||||
/* of b, so quotinet is 1 and just subtract b from r. */
|
||||
/* of b, so quotient is 1 and just subtract b from r. */
|
||||
borrow = 0; /* quotient=1, then just r-b */
|
||||
ind_b = b->Prec - 1;
|
||||
ind_r = ind_c + ind_b;
|
||||
|
@ -4853,7 +4853,7 @@ VpComp(Real *a, Real *b)
|
|||
goto Exit;
|
||||
}
|
||||
|
||||
/* a and b have same sign, && signe!=0,then compare exponent */
|
||||
/* a and b have same sign, && sign!=0,then compare exponent */
|
||||
if (a->exponent > b->exponent) {
|
||||
val = VpGetSign(a);
|
||||
goto Exit;
|
||||
|
@ -4936,7 +4936,7 @@ VPrint(FILE *fp, const char *cntl_chr, Real *a)
|
|||
j = 0;
|
||||
nd = nc = 0; /* nd : number of digits in fraction part(every 10 digits, */
|
||||
/* nd<=10). */
|
||||
/* nc : number of caracters printed */
|
||||
/* nc : number of characters printed */
|
||||
ZeroSup = 1; /* Flag not to print the leading zeros as 0.00xxxxEnn */
|
||||
while (*(cntl_chr + j)) {
|
||||
if (*(cntl_chr + j) == '%' && *(cntl_chr + j + 1) != '%') {
|
||||
|
@ -5710,9 +5710,9 @@ Exit:
|
|||
VP_EXPORT int
|
||||
VpMidRound(Real *y, unsigned short f, ssize_t nf)
|
||||
/*
|
||||
* Round reletively from the decimal point.
|
||||
* Round relatively from the decimal point.
|
||||
* f: rounding mode
|
||||
* nf: digit location to round from the the decimal point.
|
||||
* nf: digit location to round from the decimal point.
|
||||
*/
|
||||
{
|
||||
/* fracf: any positive digit under rounding position? */
|
||||
|
@ -5782,7 +5782,7 @@ VpMidRound(Real *y, unsigned short f, ssize_t nf)
|
|||
*/
|
||||
|
||||
/* now check all the remaining BDIGITS for zero-ness a whole BDIGIT at a time.
|
||||
if we spot any non-zeroness, that means that we foudn a positive digit under
|
||||
if we spot any non-zeroness, that means that we found a positive digit under
|
||||
rounding position, and we also found a positive digit under one further than
|
||||
the rounding position, so both searches (to see if any such non-zero digit exists)
|
||||
can stop */
|
||||
|
|
|
@ -97,7 +97,7 @@ extern VALUE rb_cBigDecimal;
|
|||
#define VP_EXCEPTION_OVERFLOW ((unsigned short)0x0001) /* 0x0008) */
|
||||
#define VP_EXCEPTION_ZERODIVIDE ((unsigned short)0x0010)
|
||||
|
||||
/* Following 2 exceptions cann't controlled by user */
|
||||
/* Following 2 exceptions can't controlled by user */
|
||||
#define VP_EXCEPTION_OP ((unsigned short)0x0020)
|
||||
#define VP_EXCEPTION_MEMORY ((unsigned short)0x0040)
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
* maintainers:
|
||||
* - Takaaki Tateishi (ttate@kt.jaist.ac.jp)
|
||||
*
|
||||
* doumentation:
|
||||
* documentation:
|
||||
* - Vincent Batts (vbatts@hashbangbash.com)
|
||||
*/
|
||||
|
||||
|
@ -465,7 +465,7 @@ curses_beep(VALUE obj)
|
|||
/*
|
||||
* Document-method: Curses.flash
|
||||
*
|
||||
* Flashs the screen, for visual alarm on the terminal, if possible;
|
||||
* Flashes the screen, for visual alarm on the terminal, if possible;
|
||||
* otherwise it sounds the alert.
|
||||
*
|
||||
* see also Curses.beep
|
||||
|
@ -1129,7 +1129,7 @@ curses_init_color(VALUE obj, VALUE color, VALUE r, VALUE g, VALUE b)
|
|||
/*
|
||||
* Document-method: Curses.has_colors?
|
||||
*
|
||||
* Returns +true+ or +false+ depending on whether the terminal has color capbilities.
|
||||
* Returns +true+ or +false+ depending on whether the terminal has color capabilities.
|
||||
*/
|
||||
static VALUE
|
||||
curses_has_colors(VALUE obj)
|
||||
|
@ -1478,7 +1478,7 @@ window_s_allocate(VALUE class)
|
|||
* Document-method: Curses::Window.new
|
||||
* call-seq: new(height, width, top, left)
|
||||
*
|
||||
* Contruct a new Curses::Window with constraints of
|
||||
* Construct a new Curses::Window with constraints of
|
||||
* +height+ lines, +width+ columns, begin at +top+ line, and begin +left+ most column.
|
||||
*
|
||||
* A new window using full screen is called as
|
||||
|
@ -1506,7 +1506,7 @@ window_initialize(VALUE obj, VALUE h, VALUE w, VALUE top, VALUE left)
|
|||
* Document-method: Curses::Window.subwin
|
||||
* call-seq: subwin(height, width, top, left)
|
||||
*
|
||||
* Contruct a new subwindow with constraints of
|
||||
* Construct a new subwindow with constraints of
|
||||
* +height+ lines, +width+ columns, begin at +top+ line, and begin +left+ most column.
|
||||
*
|
||||
*/
|
||||
|
@ -2352,7 +2352,7 @@ window_bkgd(VALUE obj, VALUE ch)
|
|||
/*
|
||||
* Document-method: Curses::Window.getbkgd
|
||||
*
|
||||
* Returns an Interer (+ch+) for the character property in the current window.
|
||||
* Returns an Integer (+ch+) for the character property in the current window.
|
||||
*/
|
||||
static VALUE
|
||||
window_getbkgd(VALUE obj)
|
||||
|
@ -2501,7 +2501,7 @@ window_timeout(VALUE obj, VALUE delay)
|
|||
* call-seq:
|
||||
* new(height, width)
|
||||
*
|
||||
* Contruct a new Curses::Pad with constraints of +height+ lines, +width+
|
||||
* Construct a new Curses::Pad with constraints of +height+ lines, +width+
|
||||
* columns
|
||||
*
|
||||
*/
|
||||
|
@ -2530,7 +2530,7 @@ pad_initialize(VALUE obj, VALUE h, VALUE w)
|
|||
* call-seq:
|
||||
* subpad(height, width, begin_x, begin_y)
|
||||
*
|
||||
* Contruct a new subpad with constraints of +height+ lines, +width+ columns,
|
||||
* Construct a new subpad with constraints of +height+ lines, +width+ columns,
|
||||
* begin at +begin_x+ line, and +begin_y+ columns on the pad.
|
||||
*
|
||||
*/
|
||||
|
@ -3581,10 +3581,10 @@ Init_curses(void)
|
|||
#endif
|
||||
#ifdef KEY_SR
|
||||
/* Document-const: KEY_SR
|
||||
* Scroll 1 line backware (reverse)
|
||||
* Scroll 1 line backward (reverse)
|
||||
*/
|
||||
/* Document-const: SR
|
||||
* Scroll 1 line backware (reverse)
|
||||
* Scroll 1 line backward (reverse)
|
||||
*/
|
||||
rb_curses_define_const(KEY_SR);
|
||||
rb_define_const(mKey, "SR", INT2NUM(KEY_SR));
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* ext/dl/dl.c
|
||||
*
|
||||
* doumentation:
|
||||
* documentation:
|
||||
* - Vincent Batts (vbatts@hashbangbash.com)
|
||||
*
|
||||
*/
|
||||
|
|
|
@ -421,7 +421,7 @@ ossl_sslctx_session_new_cb(SSL *ssl, SSL_SESSION *sess)
|
|||
}
|
||||
|
||||
/*
|
||||
* return 0 which means to OpenSSL that the the session is still
|
||||
* return 0 which means to OpenSSL that the session is still
|
||||
* valid (since we created Ruby Session object) and was not freed by us
|
||||
* with SSL_SESSION_free(). Call SSLContext#remove_session(sess) in
|
||||
* session_get_cb block if you don't want OpenSSL to cache the session
|
||||
|
|
|
@ -1155,7 +1155,7 @@ path_unlink(VALUE self)
|
|||
* Creates a new Pathname object from the given string, +path+, and returns
|
||||
* pathname object.
|
||||
*
|
||||
* In order to use this constuctor, you must first require the Pathname
|
||||
* In order to use this constructor, you must first require the Pathname
|
||||
* standard library extension.
|
||||
*
|
||||
* require 'pathname'
|
||||
|
|
|
@ -1089,7 +1089,7 @@ typedef struct yaml_parser_s {
|
|||
yaml_error_type_t error;
|
||||
/** Error description. */
|
||||
const char *problem;
|
||||
/** The byte about which the problem occured. */
|
||||
/** The byte about which the problem occurred. */
|
||||
size_t problem_offset;
|
||||
/** The problematic value (@c -1 is none). */
|
||||
int problem_value;
|
||||
|
|
|
@ -302,7 +302,7 @@ readline_get(VALUE prompt)
|
|||
* 1. stdin is not tty.
|
||||
* 2. stdin was closed. (errno is EBADF after called isatty(2).)
|
||||
*
|
||||
* This method supports thread. Switchs the thread context when waits
|
||||
* This method supports thread. Switches the thread context when waits
|
||||
* inputting line.
|
||||
*
|
||||
* Supports line edit when inputs line. Provides VI and Emacs editing mode.
|
||||
|
|
|
@ -156,7 +156,7 @@ sdbm_open(register char *file, register int flags, register int mode)
|
|||
if (file == NULL || !*file)
|
||||
return errno = EINVAL, (DBM *) NULL;
|
||||
/*
|
||||
* need space for two seperate filenames
|
||||
* need space for two separate filenames
|
||||
*/
|
||||
n = strlen(file) * 2 + strlen(DIRFEXT) + strlen(PAGFEXT) + 2;
|
||||
|
||||
|
@ -392,7 +392,7 @@ makroom(register DBM *db, long int hash, int need)
|
|||
newp = (hash & db->hmask) | (db->hmask + 1);
|
||||
debug(("newp: %ld\n", newp));
|
||||
/*
|
||||
* write delay, read avoidence/cache shuffle:
|
||||
* write delay, read avoidance/cache shuffle:
|
||||
* select the page for incoming pair: if key is to go to the new page,
|
||||
* write out the previous one, and copy the new one over, thus making
|
||||
* it the current page. If not, simply write the new page, and we are
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
If you want to use Ruby/Tk (tk.rb and so on), you must have tcltklib.so
|
||||
which is working correctly. When you have some troubles on compiling,
|
||||
please read README.tcltklib and README.ActiveTcl.
|
||||
Even if there is a tcltklib.so on your Ruby library directry, it will not
|
||||
Even if there is a tcltklib.so on your Ruby library directory, it will not
|
||||
work without Tcl/Tk libraries (e.g. libtcl8.4.so) on your environment.
|
||||
You must also check that your Tcl/Tk is installed properly.
|
||||
|
||||
|
|
|
@ -57,6 +57,6 @@ Based on it, the Tcl interpreter changes auto_path variable's value.
|
|||
|
||||
Then, you'll be able to use Tcl/Tk extension libraries included in the
|
||||
ActiveTcl package (e.g. call TkPackage.require('BWidget'), and then,
|
||||
use functions/widgets of BWidget extention).
|
||||
use functions/widgets of BWidget extension).
|
||||
|
||||
Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
|
||||
|
|
|
@ -80,11 +80,11 @@ some or all of the following options.
|
|||
--with-tk-dir=<path>
|
||||
equal to "--with-tk-include=<path>/include --with-tk-lib=<path>/lib"
|
||||
|
||||
--with-tcl-include=<dir> the directry contains 'tcl.h'
|
||||
--with-tk-include=<dir> the directry contains 'tk.h'
|
||||
--with-tcl-include=<dir> the directory contains 'tcl.h'
|
||||
--with-tk-include=<dir> the directory contains 'tk.h'
|
||||
|
||||
--with-tcl-lib=<dir> the directry contains 'libtcl<version>.so'
|
||||
--with-tk-lib=<dir> the directry contains 'libtk<version>.so'
|
||||
--with-tcl-lib=<dir> the directory contains 'libtcl<version>.so'
|
||||
--with-tk-lib=<dir> the directory contains 'libtk<version>.so'
|
||||
|
||||
--enable-mac-tcltk-framework (MacOS X) use Tcl/Tk framework
|
||||
(Obsolete. Please use '--enable-tcltk-framework'.)
|
||||
|
@ -116,12 +116,12 @@ some or all of the following options.
|
|||
--with-X11-dir=<path>
|
||||
equal to "--with-X11-include=<path>/include --with-X11-lib=<path>/lib"
|
||||
|
||||
--with-X11-include=<dir> the directry contais X11 header files
|
||||
--with-X11-lib=<dir> the directry contais X11 libraries
|
||||
--with-X11-include=<dir> the directory contais X11 header files
|
||||
--with-X11-lib=<dir> the directory contais X11 libraries
|
||||
|
||||
|
||||
If you forgot to give the options when do 'configure' on toplevel
|
||||
directry of Ruby sources, please try something like as the followings.
|
||||
directory of Ruby sources, please try something like as the followings.
|
||||
|
||||
$ cd ext/tcltklib
|
||||
$ rm Makefile
|
||||
|
|
|
@ -132,7 +132,7 @@ end
|
|||
# exists to allow additional image file formats to be added easily.
|
||||
#
|
||||
# This class documentation is a copy from the original Tcl/Tk at
|
||||
# http://www.tcl.tk/man/tcl8.5/TkCmd/photo.htm with some rewrited parts.
|
||||
# http://www.tcl.tk/man/tcl8.5/TkCmd/photo.htm with some rewritten parts.
|
||||
class TkPhotoImage<TkImage
|
||||
NullArgOptionKeys = [ "shrink", "grayscale" ]
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
*** RELEASE_DATE of the libraries => see 'tkextlib/version.rb' ***
|
||||
|
||||
The following list shows *CURRENT* status when this file was modifyed
|
||||
The following list shows *CURRENT* status when this file was modified
|
||||
at last. If you want to add other Tcl/Tk extensions to the planed list
|
||||
(or change its status position), please request them at the ruby-talk,
|
||||
ruby-list, or ruby-dev ML. Although we cannot promise to support your
|
||||
|
@ -34,7 +34,7 @@ script may give you some hints about that.
|
|||
If you cannot use installed Tcl/Tk extension, please check the
|
||||
followings.
|
||||
|
||||
(1) On your Tcl/Tk, does the extention work?
|
||||
(1) On your Tcl/Tk, does the extension work?
|
||||
|
||||
(2) Do DLL libraries of the extension exist on DLL load-path?
|
||||
(See also "<ruby archive>/ext/tcltklib/README.ActiveTcl")
|
||||
|
@ -44,8 +44,8 @@ script may give you some hints about that.
|
|||
|
||||
The check results may request you to do some setup operations
|
||||
before using the extension. If so, then please write the step
|
||||
of setup oprations into the "setup.rb" file in the directory
|
||||
of the wrapper libraries for the extention (It is the wrapper
|
||||
of setup operations into the "setup.rb" file in the directory
|
||||
of the wrapper libraries for the extension (It is the wrapper
|
||||
libraries have the standard structure of the libraries in this
|
||||
directory). The "setup" file is required before requiring the
|
||||
Tcl library package (TkPackage.require(<libname>)).
|
||||
|
|
|
@ -21,8 +21,8 @@ class << Tk::Tile::Style
|
|||
TkCommandNames = ['style'.freeze].freeze
|
||||
|
||||
# --- Tk::Tile::Style.__define_wrapper_proc_for_compatibility__! ---
|
||||
# On Ttk (Tile) extension, 'style' command has imcompatible changes
|
||||
# depend on the version of the extention. It requires modifying the
|
||||
# On Ttk (Tile) extension, 'style' command has incompatible changes
|
||||
# depend on the version of the extension. It requires modifying the
|
||||
# Tcl/Tk scripts to define local styles. The rule for modification
|
||||
# is a simple one. But, if users want to keep compatibility between
|
||||
# versions of the extension, they will have to contrive to do that.
|
||||
|
|
|
@ -5,7 +5,7 @@ begin
|
|||
# try to use Img extension
|
||||
require 'tkextlib/tkimg'
|
||||
rescue Exception
|
||||
# cannot use Img extention --> ignore
|
||||
# cannot use Img extension --> ignore
|
||||
end
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Almost all of Message-Catalog files in this directory are quoted
|
||||
from Tcl/Tk8.5a1 source archive (only a little are modified for
|
||||
'tkmsgcat-load_tk.rb'). Please read the file 'license.terms' in
|
||||
this directry (That was included in demo directory of Tcl/Tk8.5a1).
|
||||
this directory (That was included in demo directory of Tcl/Tk8.5a1).
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
The scripts and image files in this directory are based on demo files
|
||||
of Tcl/Tk's BLT extention.
|
||||
of Tcl/Tk's BLT extension.
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
######################################################################
|
||||
### The following text is the original 'LICENSE.txt' of BWidget ###
|
||||
### extension. ###
|
||||
### Original Tcl source files are not include in this directry, ###
|
||||
### because of all of them are rewrited to Ruby files. ###
|
||||
### Original Tcl source files are not include in this directory, ###
|
||||
### because of all of them are rewritten to Ruby files. ###
|
||||
### However, the bitmap data files ('bwidgtet.xbm' and 'x1.xbm') ###
|
||||
### included in this directory are quoted from BWidget source ###
|
||||
### archive. So, those bitmaps are under the following license. ###
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
|
||||
#######################################################################
|
||||
### The following text is the original 'license.terms' of iwidges ###
|
||||
### The following text is the original 'license.terms' of iwidgets ###
|
||||
### extension. ###
|
||||
### Original Tcl source files are not include in this directry, ###
|
||||
### because of all of them are rewrited to Ruby files. ###
|
||||
### Original Tcl source files are not include in this directory, ###
|
||||
### because of all of them are rewritten to Ruby files. ###
|
||||
### However, the image data files in the 'images' directory are ###
|
||||
### quoted from iwidgets source archive. ###
|
||||
#######################################################################
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
||||
>>> The following text is the original 'license.term' of tklib <<<
|
||||
>>> extension. <<<
|
||||
>>> Original Tcl files are not include in this directry, because <<<
|
||||
>>> of all of them are rewrited to Ruby files. <<<
|
||||
>>> Original Tcl files are not include in this directory, because <<<
|
||||
>>> of all of them are rewritten to Ruby files. <<<
|
||||
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
||||
|
||||
This software is copyrighted by Ajuba Solutions and other parties.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# Tk::Img demo
|
||||
#
|
||||
# -- This script is based on demo.tcl of Tcl/Tk's 'Img' extention.
|
||||
# -- This script is based on demo.tcl of Tcl/Tk's 'Img' extension.
|
||||
# Image data in this script is those of demo.tcl.
|
||||
# Please read 'license_terms_of_Img_extension' file.
|
||||
#
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
The script 'demo.rb' is based on 'demo.tcl' of Tcl/Tk's 'Img' extention.
|
||||
The script 'demo.rb' is based on 'demo.tcl' of Tcl/Tk's 'Img' extension.
|
||||
Image data in 'demo.rb' is those of 'demo.tcl'.
|
||||
Please read 'license_terms_of_Img_extension' file.
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
#######################################################################
|
||||
### The following text is the original 'license.txt' of tktable ###
|
||||
### extension. ###
|
||||
### Original Tcl source files are not include in this directry, ###
|
||||
### because of all of them are rewrited to Ruby files. ###
|
||||
### Original Tcl source files are not include in this directory, ###
|
||||
### because of all of them are rewritten to Ruby files. ###
|
||||
### However, the image data file is quoted from iwidgets source ###
|
||||
### archive. ###
|
||||
#######################################################################
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
The scripts and image files in this directory are based on demo files
|
||||
of Tcl/Tk's TreeCtrl extention.
|
||||
of Tcl/Tk's TreeCtrl extension.
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
||||
>>> The following text is the original 'license.txt' of vu extension. <<<
|
||||
>>> Original Tcl source files are not include in this directry, <<<
|
||||
>>> because of all of them are rewrited to Ruby files. <<<
|
||||
>>> Original Tcl source files are not include in this directory, <<<
|
||||
>>> because of all of them are rewritten to Ruby files. <<<
|
||||
>>> However, the bitmap data file included in this directory is the <<<
|
||||
>>> same file of vu extension. So, the bitmap data file is under the <<<
|
||||
>>> following license. <<<
|
||||
|
|
4
file.c
4
file.c
|
@ -3722,7 +3722,7 @@ ruby_enc_find_basename(const char *name, long *baselen, long *alllen, rb_encodin
|
|||
*
|
||||
* Returns the last component of the filename given in <i>file_name</i>,
|
||||
* which can be formed using both <code>File::SEPARATOR</code> and
|
||||
* <code>File::ALT_SEPARETOR</code> as the separator when
|
||||
* <code>File::ALT_SEPARATOR</code> as the separator when
|
||||
* <code>File::ALT_SEPARATOR</code> is not <code>nil</code>. If
|
||||
* <i>suffix</i> is given and present at the end of <i>file_name</i>,
|
||||
* it is removed.
|
||||
|
@ -3779,7 +3779,7 @@ rb_file_s_basename(int argc, VALUE *argv)
|
|||
*
|
||||
* Returns all components of the filename given in <i>file_name</i>
|
||||
* except the last one. The filename can be formed using both
|
||||
* <code>File::SEPARATOR</code> and <code>File::ALT_SEPARETOR</code> as the
|
||||
* <code>File::SEPARATOR</code> and <code>File::ALT_SEPARATOR</code> as the
|
||||
* separator when <code>File::ALT_SEPARATOR</code> is not <code>nil</code>.
|
||||
*
|
||||
* File.dirname("/home/gumby/work/ruby.rb") #=> "/home/gumby/work"
|
||||
|
|
|
@ -1782,7 +1782,7 @@ int ruby_vsnprintf(char *str, size_t n, char const *fmt, va_list ap);
|
|||
* @defgroup embed CRuby Embedding APIs
|
||||
* CRuby interpreter APIs. These are APIs to embed MRI interpreter into your
|
||||
* program.
|
||||
* These functions are not a part of Ruby extention library API.
|
||||
* These functions are not a part of Ruby extension library API.
|
||||
* Extension libraries of Ruby should not depend on these functions.
|
||||
* @{
|
||||
*/
|
||||
|
|
2
io.c
2
io.c
|
@ -1598,7 +1598,7 @@ rb_io_seek_m(int argc, VALUE *argv, VALUE io)
|
|||
* ios.pos = integer -> integer
|
||||
*
|
||||
* Seeks to the given position (in bytes) in <em>ios</em>.
|
||||
* It is not guranteed that seeking to the right position when <em>ios</em>
|
||||
* It is not guaranteed that seeking to the right position when <em>ios</em>
|
||||
* is textmode.
|
||||
*
|
||||
* f = File.new("testfile")
|
||||
|
|
|
@ -25,7 +25,7 @@ module Base64
|
|||
|
||||
# Returns the Base64-encoded version of +bin+.
|
||||
# This method complies with RFC 2045.
|
||||
# Line feeds are added to every 60 encoded charactors.
|
||||
# Line feeds are added to every 60 encoded characters.
|
||||
#
|
||||
# require 'base64'
|
||||
# Base64.encode64("Now is the time for all good coders\nto learn Ruby")
|
||||
|
|
|
@ -214,7 +214,7 @@ module Net
|
|||
$stderr.puts("warning: Net::FTP#return_code= is obsolete and do nothing")
|
||||
end
|
||||
|
||||
# Contructs a socket with +host+ and +port+.
|
||||
# Constructs a socket with +host+ and +port+.
|
||||
#
|
||||
# If SOCKSSocket is defined and the environment (ENV) defines
|
||||
# SOCKS_SERVER, then a SOCKSSocket is returned, else a TCPSocket is
|
||||
|
|
|
@ -737,7 +737,7 @@ class OptionParser
|
|||
# OPTIONAL_ARGUMENT:: The switch requires an optional argument. (:OPTIONAL)
|
||||
#
|
||||
# Use like --switch=argument (long style) or -Xargument (short style). For
|
||||
# short style, only portion matched to argument pattern is dealed as
|
||||
# short style, only portion matched to argument pattern is treated as
|
||||
# argument.
|
||||
#
|
||||
ArgumentStyle = {}
|
||||
|
|
|
@ -320,7 +320,7 @@ class PrettyPrint
|
|||
|
||||
# Creates a new text object.
|
||||
#
|
||||
# This contructor takes no arguments.
|
||||
# This constructor takes no arguments.
|
||||
#
|
||||
# The workflow is to append a PrettyPrint::Text object to the buffer, and
|
||||
# being able to call the buffer.last() to reference it.
|
||||
|
@ -359,7 +359,7 @@ class PrettyPrint
|
|||
# Create a new Breakable object.
|
||||
#
|
||||
# Arguments:
|
||||
# * +sep+ String of the seperator
|
||||
# * +sep+ String of the separator
|
||||
# * +width+ Fixnum width of the +sep+
|
||||
# * +q+ parent PrettyPrint object, to base from
|
||||
def initialize(sep, width, q)
|
||||
|
@ -371,7 +371,7 @@ class PrettyPrint
|
|||
@group.breakables.push self
|
||||
end
|
||||
|
||||
# Holds the seperator String
|
||||
# Holds the separator String
|
||||
#
|
||||
# The +sep+ argument from ::new
|
||||
attr_reader :obj
|
||||
|
@ -525,14 +525,14 @@ class PrettyPrint
|
|||
@first = [true]
|
||||
end
|
||||
|
||||
# Add +obj+ to the text to be outputed.
|
||||
# Add +obj+ to the text to be output.
|
||||
#
|
||||
# +width+ argument is here for compatibility. It is a noop argument.
|
||||
def text(obj, width=nil)
|
||||
@output << obj
|
||||
end
|
||||
|
||||
# Appends +sep+ to the text to be outputed. By default +sep+ is ' '
|
||||
# Appends +sep+ to the text to be output. By default +sep+ is ' '
|
||||
#
|
||||
# +width+ argument is here for compatibility. It is a noop argument.
|
||||
def breakable(sep=' ', width=nil)
|
||||
|
|
|
@ -37,7 +37,7 @@ end
|
|||
# [--version] [--copyright] [--help] <var>grammarfile</var>
|
||||
#
|
||||
# [+filename+]
|
||||
# Racc grammar file. Any extention is permitted.
|
||||
# Racc grammar file. Any extension is permitted.
|
||||
# [-o+outfile+, --output-file=+outfile+]
|
||||
# A filename for output. default is <+filename+>.tab.rb
|
||||
# [-O+filename+, --log-file=+filename+]
|
||||
|
@ -48,12 +48,12 @@ end
|
|||
# [-v, --verbose]
|
||||
# verbose mode. create +filename+.output file, like yacc's y.output file.
|
||||
# [-g, --debug]
|
||||
# add debug code to parser class. To display debuggin information,
|
||||
# add debug code to parser class. To display debugging information,
|
||||
# use this '-g' option and set @yydebug true in parser class.
|
||||
# [-E, --embedded]
|
||||
# Output parser which doesn't need runtime files (racc/parser.rb).
|
||||
# [-C, --check-only]
|
||||
# Check syntax of racc grammer file and quit.
|
||||
# Check syntax of racc grammar file and quit.
|
||||
# [-S, --output-status]
|
||||
# Print messages time to time while compiling.
|
||||
# [-l, --no-line-convert]
|
||||
|
@ -187,7 +187,7 @@ module Racc
|
|||
Racc_Runtime_Core_Revision_R = %w$originalRevision: 1.8 $[1]
|
||||
begin
|
||||
require 'racc/cparse'
|
||||
# Racc_Runtime_Core_Version_C = (defined in extention)
|
||||
# Racc_Runtime_Core_Version_C = (defined in extension)
|
||||
Racc_Runtime_Core_Revision_C = Racc_Runtime_Core_Id_C.split[2]
|
||||
unless new.respond_to?(:_racc_do_parse_c, true)
|
||||
raise LoadError, 'old cparse.so'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
module Rake
|
||||
|
||||
# The NameSpace class will lookup task names in the the scope
|
||||
# The NameSpace class will lookup task names in the scope
|
||||
# defined by a +namespace+ command.
|
||||
#
|
||||
class NameSpace
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#
|
||||
# DO NOT MODIFY!!!!
|
||||
# This file is automatically generated by Racc 1.4.9
|
||||
# from Racc grammer file "".
|
||||
# from Racc grammar file "".
|
||||
#
|
||||
|
||||
require 'racc/parser.rb'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#
|
||||
# DO NOT MODIFY!!!!
|
||||
# This file is automatically generated by Racc 1.4.9
|
||||
# from Racc grammer file "".
|
||||
# from Racc grammar file "".
|
||||
#
|
||||
|
||||
require 'racc/parser.rb'
|
||||
|
|
|
@ -328,7 +328,7 @@ module Gem
|
|||
end
|
||||
|
||||
##
|
||||
# The path the the data directory specified by the gem name. If the
|
||||
# The path to the data directory specified by the gem name. If the
|
||||
# package is not available as a gem, return nil.
|
||||
|
||||
def self.datadir(gem_name)
|
||||
|
|
|
@ -3,7 +3,7 @@ require 'rubygems/commands/query_command'
|
|||
|
||||
##
|
||||
# An alternate to Gem::Commands::QueryCommand that searches for gems starting
|
||||
# with the the supplied argument.
|
||||
# with the supplied argument.
|
||||
|
||||
class Gem::Commands::ListCommand < Gem::Commands::QueryCommand
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ require "shell/process-controller"
|
|||
# end
|
||||
# end
|
||||
#
|
||||
# === Temp file creationg with self
|
||||
# === Temp file creation with self
|
||||
#
|
||||
# This example is identical to the first, except we're using
|
||||
# CommandProcessor#transact.
|
||||
|
|
|
@ -315,7 +315,7 @@ end
|
|||
Synchronizer_m = Sync_m
|
||||
|
||||
##
|
||||
# A class that providesa two-phase lock with a counter. See Sync_m for
|
||||
# A class that provides two-phase lock with a counter. See Sync_m for
|
||||
# details.
|
||||
|
||||
class Sync
|
||||
|
|
|
@ -39,7 +39,7 @@ class Dir
|
|||
# Dir.mktmpdir creates a temporary directory.
|
||||
#
|
||||
# The directory is created with 0700 permission.
|
||||
# Application should not change the permission to make the temporary directory accesible from other users.
|
||||
# Application should not change the permission to make the temporary directory accessible from other users.
|
||||
#
|
||||
# The prefix and suffix of the name of the directory is specified by
|
||||
# the optional first argument, <i>prefix_suffix</i>.
|
||||
|
|
|
@ -628,7 +628,7 @@ des_setkey(key)
|
|||
|
||||
/*
|
||||
* Encrypt (or decrypt if num_iter < 0) the 8 chars at "in" with abs(num_iter)
|
||||
* iterations of DES, using the the given 24-bit salt and the pre-computed key
|
||||
* iterations of DES, using the given 24-bit salt and the pre-computed key
|
||||
* schedule, and store the resulting 8 chars at "out" (in == out is permitted).
|
||||
*
|
||||
* NOTE: the performance of this routine is critically dependent on your
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#ifndef R_OK
|
||||
# define R_OK 4 /* test whether readable. */
|
||||
# define W_OK 2 /* test whether writable. */
|
||||
# define X_OK 1 /* test whether execubale. */
|
||||
# define X_OK 1 /* test whether executable. */
|
||||
# define F_OK 0 /* test whether exist. */
|
||||
#endif
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#if defined _WIN32
|
||||
#elif defined HAVE_FCNTL && defined HAVE_FCNTL_H && !defined(__native_client__)
|
||||
|
||||
/* These are the flock() constants. Since this sytems doesn't have
|
||||
/* These are the flock() constants. Since this systems doesn't have
|
||||
flock(), the values of the constants are probably not available.
|
||||
*/
|
||||
# ifndef LOCK_SH
|
||||
|
@ -73,7 +73,7 @@ flock(int fd, int operation)
|
|||
# define F_TEST 3 /* Test a region for other processes locks */
|
||||
# endif
|
||||
|
||||
/* These are the flock() constants. Since this sytems doesn't have
|
||||
/* These are the flock() constants. Since this systems doesn't have
|
||||
flock(), the values of the constants are probably not available.
|
||||
*/
|
||||
# ifndef LOCK_SH
|
||||
|
|
|
@ -12,7 +12,7 @@ You need to install the following things before building NaCl port of Ruby.
|
|||
== Steps
|
||||
(1) Extract all files from the tarball:
|
||||
$ tar xzf ruby-X.Y.Z.tar.gz
|
||||
(2) Set NACL_SDK_ROOT environment vairanble to the path to the Native Client SDK you installed:
|
||||
(2) Set NACL_SDK_ROOT environment variable to the path to the Native Client SDK you installed:
|
||||
$ export NACL_SDK_ROOT=/home/yugui/src/nacl_sdk/pepper_16
|
||||
(3) Configure
|
||||
$ ./configure --prefix=/tmp/nacl-ruby --host=x86_64-nacl --with-baseruby=/path/to/ruby-1.9.3
|
||||
|
|
|
@ -2118,7 +2118,7 @@ rb_exec_fillarg(VALUE prog, int argc, VALUE *argv, VALUE env, VALUE opthash, VAL
|
|||
has_meta = 1;
|
||||
}
|
||||
if (!has_meta) {
|
||||
/* avoid shell since no shell meta charactor found. */
|
||||
/* avoid shell since no shell meta character found. */
|
||||
eargp->use_shell = 0;
|
||||
}
|
||||
if (!eargp->use_shell) {
|
||||
|
@ -2346,7 +2346,7 @@ static int rb_exec_without_timer_thread(const struct rb_execarg *eargp, char *er
|
|||
* If _commandline_ is simple enough,
|
||||
* no meta characters, no shell reserved word and no special built-in,
|
||||
* Ruby invokes the command directly without shell.
|
||||
* You can force shell invocation by adding ";" for _commandline_ (because ";" is a meta characetr).
|
||||
* You can force shell invocation by adding ";" for _commandline_ (because ";" is a meta character).
|
||||
* Note that this behavior is observable by pid obtained
|
||||
* (return value of spawn() and IO#pid for IO.popen) is the pid of the invoked command, not shell.
|
||||
*
|
||||
|
|
2
range.c
2
range.c
|
@ -1238,7 +1238,7 @@ static VALUE
|
|||
range_alloc(VALUE klass)
|
||||
{
|
||||
/* rb_struct_alloc_noinit itself should not be used because
|
||||
* rb_marshal_define_compat uses equality of allocaiton function */
|
||||
* rb_marshal_define_compat uses equality of allocation function */
|
||||
return rb_struct_alloc_noinit(klass);
|
||||
}
|
||||
|
||||
|
|
2
ruby.c
2
ruby.c
|
@ -1795,7 +1795,7 @@ set_arg0(VALUE val, ID id)
|
|||
|
||||
/*! Sets the current script name to this value.
|
||||
*
|
||||
* This is similiar to <code>$0 = name</code> in Ruby level but also affects
|
||||
* This is similar to <code>$0 = name</code> in Ruby level but also affects
|
||||
* <code>Method#location</code> and others.
|
||||
*/
|
||||
void
|
||||
|
|
2
string.c
2
string.c
|
@ -1093,7 +1093,7 @@ rb_enc_strlen_cr(const char *p, const char *e, rb_encoding *enc, int *cr)
|
|||
|
||||
/*
|
||||
* UTF-8 leading bytes have either 0xxxxxxx or 11xxxxxx
|
||||
* bit represention. (see http://en.wikipedia.org/wiki/UTF-8)
|
||||
* bit representation. (see http://en.wikipedia.org/wiki/UTF-8)
|
||||
* Therefore, following pseudo code can detect UTF-8 leading byte.
|
||||
*
|
||||
* if (!(byte & 0x80))
|
||||
|
|
14
thread.c
14
thread.c
|
@ -1258,7 +1258,7 @@ call_without_gvl(void *(*func)(void *), void *data1,
|
|||
/*
|
||||
* rb_thread_call_without_gvl - permit concurrent/parallel execution.
|
||||
* rb_thread_call_without_gvl2 - permit concurrent/parallel execution
|
||||
* without interrupt proceess.
|
||||
* without interrupt process.
|
||||
*
|
||||
* rb_thread_call_without_gvl() does:
|
||||
* (1) Check interrupts.
|
||||
|
@ -1499,7 +1499,7 @@ thread_s_pass(VALUE klass)
|
|||
/*
|
||||
* rb_threadptr_pending_interrupt_* - manage asynchronous error queue
|
||||
*
|
||||
* Async events such as an exception throwed by Thread#raise,
|
||||
* Async events such as an exception thrown by Thread#raise,
|
||||
* Thread#kill and thread termination (after main thread termination)
|
||||
* will be queued to th->pending_interrupt_queue.
|
||||
* - clear: clear the queue.
|
||||
|
@ -1699,7 +1699,7 @@ handle_interrupt_arg_check_i(VALUE key, VALUE val)
|
|||
* ::handle_interrupt block we can purposefully handle RuntimeError exceptions.
|
||||
*
|
||||
* th = Thread.new do
|
||||
* Thead.handle_interrupt(RuntimeError => :never) {
|
||||
* Thread.handle_interrupt(RuntimeError => :never) {
|
||||
* begin
|
||||
* # You can write resource allocation code safely.
|
||||
* Thread.handle_interrupt(RuntimeError => :immediate) {
|
||||
|
@ -1807,7 +1807,7 @@ rb_thread_s_handle_interrupt(VALUE self, VALUE mask_arg)
|
|||
* call-seq:
|
||||
* target_thread.pending_interrupt?(error = nil) -> true/false
|
||||
*
|
||||
* Returns whether or not the asychronous queue is empty for the target thread.
|
||||
* Returns whether or not the asynchronous queue is empty for the target thread.
|
||||
*
|
||||
* If +error+ is given, then check only for +error+ type deferred events.
|
||||
*
|
||||
|
@ -1960,7 +1960,7 @@ rb_threadptr_execute_interrupts(rb_thread_t *th, int blocking_timing)
|
|||
if (err == Qundef) {
|
||||
/* no error */
|
||||
}
|
||||
else if (err == eKillSignal /* Thread#kill receieved */ ||
|
||||
else if (err == eKillSignal /* Thread#kill received */ ||
|
||||
err == eTerminateSignal /* Terminate thread */ ||
|
||||
err == INT2FIX(TAG_FATAL) /* Thread.exit etc. */ ) {
|
||||
rb_threadptr_to_kill(th);
|
||||
|
@ -2749,7 +2749,7 @@ rb_thread_local_aref(VALUE thread, ID id)
|
|||
* thr[sym] -> obj or nil
|
||||
*
|
||||
* Attribute Reference---Returns the value of a fiber-local variable (current thread's root fiber
|
||||
* if not explicitely inside a Fiber), using either a symbol or a string name.
|
||||
* if not explicitly inside a Fiber), using either a symbol or a string name.
|
||||
* If the specified variable does not exist, returns +nil+.
|
||||
*
|
||||
* [
|
||||
|
@ -4880,7 +4880,7 @@ exec_recursive_i(VALUE tag, struct exec_recursive_params *p)
|
|||
* to Qtrue, otherwise the outermost func will be called. In the latter case,
|
||||
* all inner func are short-circuited by throw.
|
||||
* Implementation details: the value thrown is the recursive list which is
|
||||
* proper to the current method and unlikely to be catched anywhere else.
|
||||
* proper to the current method and unlikely to be caught anywhere else.
|
||||
* list[recursive_key] is used as a flag for the outermost call.
|
||||
*/
|
||||
|
||||
|
|
6
time.c
6
time.c
|
@ -3030,7 +3030,7 @@ find_time_t(struct tm *tptr, int utc_p, time_t *tp)
|
|||
}
|
||||
}
|
||||
|
||||
/* Given argument has no corresponding time_t. Let's outerpolation. */
|
||||
/* Given argument has no corresponding time_t. Let's extrapolate. */
|
||||
/*
|
||||
* `Seconds Since the Epoch' in SUSv3:
|
||||
* tm_sec + tm_min*60 + tm_hour*3600 + tm_yday*86400 +
|
||||
|
@ -4520,8 +4520,8 @@ strftimev(const char *fmt, VALUE time, rb_encoding *enc)
|
|||
*
|
||||
* This method is similar to strftime() function defined in ISO C and POSIX.
|
||||
*
|
||||
* While all directives are locale independant since Ruby 1.9, %Z is platform
|
||||
* dependant.
|
||||
* While all directives are locale independent since Ruby 1.9, %Z is platform
|
||||
* dependent.
|
||||
* So, the result may differ even if the same format string is used in other
|
||||
* systems such as C.
|
||||
*
|
||||
|
|
2
vm.c
2
vm.c
|
@ -2463,7 +2463,7 @@ Init_VM(void)
|
|||
|
||||
/* ::RubyVM::DEFAULT_PARAMS
|
||||
* This constant variable shows VM's default parameters.
|
||||
* Note that changing these values does not affect VM exection.
|
||||
* Note that changing these values does not affect VM execution.
|
||||
* Specification is not stable and you should not depend on this value.
|
||||
* Of course, this constant is MRI specific.
|
||||
*/
|
||||
|
|
|
@ -413,7 +413,7 @@ rb_file_expand_path_internal(VALUE fname, VALUE dname, int abs_mode, int long_na
|
|||
path_encoding = rb_filesystem_encoding();
|
||||
cp = path_cp = system_code_page();
|
||||
|
||||
/* ignores dir since we are expading home */
|
||||
/* ignores dir since we are expanding home */
|
||||
ignore_dir = 1;
|
||||
|
||||
/* exclude ~ from the result */
|
||||
|
|
|
@ -649,7 +649,7 @@ StartSockets(void)
|
|||
WSADATA retdata;
|
||||
|
||||
//
|
||||
// initalize the winsock interface and insure that it's
|
||||
// initialize the winsock interface and insure that it's
|
||||
// cleaned up at exit.
|
||||
//
|
||||
version = MAKEWORD(2, 0);
|
||||
|
@ -1517,8 +1517,8 @@ rb_w32_cmdvector(const char *cmd, char ***vec)
|
|||
// When we've finished, and it's an input command (meaning that it's
|
||||
// the processes argv), we'll do globing and then build the argument
|
||||
// vector.
|
||||
// The outer loop does one interation for each element seen.
|
||||
// The inner loop does one interation for each character in the element.
|
||||
// The outer loop does one iteration for each element seen.
|
||||
// The inner loop does one iteration for each character in the element.
|
||||
//
|
||||
|
||||
while (*(ptr = skipspace(ptr))) {
|
||||
|
@ -1569,7 +1569,7 @@ rb_w32_cmdvector(const char *cmd, char ***vec)
|
|||
//
|
||||
// if we're already in a string, see if this is the
|
||||
// terminating close-quote. If it is, we're finished with
|
||||
// the string, but not neccessarily with the element.
|
||||
// the string, but not necessarily with the element.
|
||||
// If we're not already in a string, start one.
|
||||
//
|
||||
|
||||
|
@ -2587,7 +2587,7 @@ is_not_socket(SOCKET sock)
|
|||
|
||||
/* License: Ruby's */
|
||||
static int
|
||||
is_pipe(SOCKET sock) /* DONT call this for SOCKET! it clains it is PIPE. */
|
||||
is_pipe(SOCKET sock) /* DONT call this for SOCKET! it claims it is PIPE. */
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
@ -4030,7 +4030,7 @@ poll_child_status(struct ChildRecord *child, int *stat_loc)
|
|||
DWORD err;
|
||||
|
||||
if (!GetExitCodeProcess(child->hProcess, &exitcode)) {
|
||||
/* If an error occured, return immediatly. */
|
||||
/* If an error occurred, return immediately. */
|
||||
error_exit:
|
||||
err = GetLastError();
|
||||
if (err == ERROR_INVALID_PARAMETER)
|
||||
|
|
Loading…
Reference in a new issue