Skip to content

Commit

Permalink
fix typos. Patch by k_takata.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
k-tsj committed May 19, 2013
1 parent 67964f2 commit edb98f8
Show file tree
Hide file tree
Showing 62 changed files with 132 additions and 132 deletions.
10 changes: 5 additions & 5 deletions README.EXT
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.EXT.ja
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ INT2NUM()は整数がFIXNUMの範囲に収まらない場合,Bignumに変換
Rubyが用意している関数を用いてください.

ここではもっとも使われるであろう文字列と配列の生成/操作を行
い関数をあげます(全部ではないです).
う関数をあげます(全部ではないです).

=== 文字列に対する関数

Expand Down
2 changes: 1 addition & 1 deletion bignum.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion doc/ChangeLog-1.8.0
Original file line number Diff line number Diff line change
Expand Up @@ -13763,7 +13763,7 @@ Tue Apr 17 17:33:55 2001 Yukihiro Matsumoto <[email protected]>

* 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 <[email protected]>
Expand Down
4 changes: 2 additions & 2 deletions doc/ChangeLog-1.9.3
Original file line number Diff line number Diff line change
Expand Up @@ -14297,7 +14297,7 @@ Thu Jun 10 09:10:08 2010 Yukihiro Matsumoto <[email protected]>

Wed Jun 9 22:51:50 2010 Tanaka Akira <[email protected]>

* 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 <[email protected]>
Expand Down Expand Up @@ -76939,7 +76939,7 @@ Sat May 28 16:39:21 2005 GOTOU Yuuzou <[email protected]>
Sat May 28 05:15:44 2005 GOTOU Yuuzou <[email protected]>

* 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 <[email protected]>

Expand Down
10 changes: 5 additions & 5 deletions eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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
*
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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
Expand Down
24 changes: 12 additions & 12 deletions ext/bigdecimal/bigdecimal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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
Expand Down Expand Up @@ -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 */
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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) != '%') {
Expand Down Expand Up @@ -5710,9 +5710,9 @@ VpSqrt(Real *y, Real *x)
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? */
Expand Down Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion ext/bigdecimal/bigdecimal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
20 changes: 10 additions & 10 deletions ext/curses/curses.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* maintainers:
* - Takaaki Tateishi ([email protected])
*
* doumentation:
* documentation:
* - Vincent Batts ([email protected])
*/

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
*
*/
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
*
*/
Expand Down Expand Up @@ -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.
*
*/
Expand Down Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion ext/dl/dl.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* ext/dl/dl.c
*
* doumentation:
* documentation:
* - Vincent Batts ([email protected])
*
*/
Expand Down
2 changes: 1 addition & 1 deletion ext/openssl/ossl_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ext/pathname/pathname.c
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion ext/psych/yaml/yaml.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion ext/readline/readline.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading

0 comments on commit edb98f8

Please sign in to comment.