diff --git a/ChangeLog b/ChangeLog index c94848d366b35d..9059fda1f2559d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +Mon Dec 14 11:31:00 2015 SHIBATA Hiroshi + + * compile.c: fix typos. + [ci skip][fix GH-1140] Patch by @jutaz + * dir.c: ditto. + * gc.c: ditto. + * io.c: ditto. + * node.h: ditto. + * thread_pthread.c: ditto. + * vm_insnhelper.c: ditto. + * vsnprintf.c: ditto. + Mon Dec 14 11:27:01 2015 SHIBATA Hiroshi * enc/iso_2022_jp.h: fix typos. diff --git a/compile.c b/compile.c index 79cfb145ef7242..995ff8930cd4c4 100644 --- a/compile.c +++ b/compile.c @@ -699,7 +699,7 @@ rb_iseq_original_iseq(const rb_iseq_t *iseq) /* cold path */ /* * On 32-bit SPARC, GCC by default generates SPARC V7 code that may require * 8-byte word alignment. On the other hand, Oracle Solaris Studio seems to - * generate SPARCV8PLUS code with unaligned memory accesss instructions. + * generate SPARCV8PLUS code with unaligned memory access instructions. * That is why the STRICT_ALIGNMENT is defined only with GCC. */ #if defined(__sparc) && SIZEOF_VOIDP == 4 && defined(__GNUC__) diff --git a/dir.c b/dir.c index 0311bf0cce1e50..193b5bece003df 100644 --- a/dir.c +++ b/dir.c @@ -259,7 +259,7 @@ bracket( return ok == not ? NULL : (char *)p + 1; } -/* If FNM_PATHNAME is set, only path element will be matched. (upto '/' or '\0') +/* If FNM_PATHNAME is set, only path element will be matched. (up to '/' or '\0') Otherwise, entire string will be matched. End marker itself won't be compared. And if function succeeds, *pcur reaches end marker. diff --git a/gc.c b/gc.c index fc8963c10a13a2..cc86a7268c8de7 100644 --- a/gc.c +++ b/gc.c @@ -211,7 +211,7 @@ static ruby_gc_params_t gc_params = { * 1: enable assertions (to debug RGenGC) * 2: enable internal consistency check at each GC (for debugging) * 3: enable internal consistency check at each GC steps (for debugging) - * 4: enable livness check + * 4: enable liveness check * 5: show all references */ #ifndef RGENGC_CHECK_MODE @@ -5668,7 +5668,7 @@ gc_writebarrier_generational(VALUE a, VALUE b, rb_objspace_t *objspace) } #if 1 - /* mark `a' and remember (default behaviour) */ + /* mark `a' and remember (default behavior) */ if (!rgengc_remembered(objspace, a)) { rgengc_remember(objspace, a); gc_report(1, objspace, "gc_writebarrier_generational: %s (remembered) -> %s\n", obj_info(a), obj_info(b)); diff --git a/io.c b/io.c index 05d36e33abe83e..4155796641af9f 100644 --- a/io.c +++ b/io.c @@ -3121,7 +3121,7 @@ rb_io_getline_1(VALUE rs, long limit, VALUE io) newline = (unsigned char)rsptr[rslen - 1]; } - /* MS - Optimisation */ + /* MS - Optimization */ while ((c = appendline(fptr, newline, &str, &limit)) != EOF) { const char *s, *p, *pp, *e; diff --git a/node.h b/node.h index 05c2285a2ec3b4..8d2ea53c737f84 100644 --- a/node.h +++ b/node.h @@ -261,7 +261,7 @@ typedef struct RNode { #define RNODE(obj) (R_CAST(RNode)(obj)) -/* FL : 0..4: T_TYPES, 5: KEEP_WB, 6: PROMOTED, 7: FINALIZE, 8: TAINT, 9: UNTRUSTERD, 10: EXIVAR, 11: FREEZE */ +/* FL : 0..4: T_TYPES, 5: KEEP_WB, 6: PROMOTED, 7: FINALIZE, 8: TAINT, 9: UNTRUSTED, 10: EXIVAR, 11: FREEZE */ /* NODE_FL: 0..4: T_TYPES, 5: KEEP_WB, 6: PROMOTED, 7: NODE_FL_NEWLINE|NODE_FL_CREF_PUSHED_BY_EVAL, * 8..14: nd_type, * 15..: nd_line diff --git a/thread_pthread.c b/thread_pthread.c index 6638d53d213b44..2a15816713de30 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -520,7 +520,7 @@ size_t pthread_get_stacksize_np(pthread_t); /* * As the PTHREAD_STACK_MIN is undefined and - * noone touches the default stacksize, + * no one touches the default stacksize, * it is just fine to use the default. */ #define pthread_attr_get_np(thid, attr) 0 diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 79397fb311fed1..3f06b31732131c 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -565,7 +565,7 @@ vm_get_const_key_cref(const VALUE *ep) cref = CREF_NEXT(cref); } - /* does not incldue singleton class */ + /* does not include singleton class */ return NULL; } diff --git a/vsnprintf.c b/vsnprintf.c index 21ba8b07684e3c..075bb4b2fe1a61 100644 --- a/vsnprintf.c +++ b/vsnprintf.c @@ -642,7 +642,7 @@ BSD_vfprintf(FILE *fp, const char *fmt0, va_list ap) flags&SHORTINT ? (u_long)(u_short)va_arg(ap, int) : \ (u_long)va_arg(ap, u_int)) - /* optimise fprintf(stderr) (and other unbuffered Unix files) */ + /* optimize fprintf(stderr) (and other unbuffered Unix files) */ if ((fp->_flags & (__SNBF|__SWR|__SRW)) == (__SNBF|__SWR) && fp->_file >= 0) return (BSD__sbprintf(fp, fmt0, ap));