summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/openssl/ossl_bn.c4
-rw-r--r--ext/pty/pty.c6
-rw-r--r--gc/default.c2
-rw-r--r--regexec.c4
4 files changed, 8 insertions, 8 deletions
@@ -244,7 +244,7 @@ ossl_bn_alloc(VALUE klass)
* number.
* - +10+ - Decimal number representation, with a leading '-' for a negative
* number.
- * - +16+ - Hexadeciaml number representation, with a leading '-' for a
* negative number.
*/
static VALUE
@@ -326,7 +326,7 @@ ossl_bn_initialize(int argc, VALUE *argv, VALUE self)
* the bignum is ignored.
* - +10+ - Decimal number representation, with a leading '-' for a negative
* bignum.
- * - +16+ - Hexadeciaml number representation, with a leading '-' for a
* negative bignum.
*/
static VALUE
@@ -94,7 +94,7 @@ static void getDevice(int*, int*, char [DEVICELEN], int);
static int start_new_session(char *errbuf, size_t errbuf_len);
static int obtain_ctty(int master, int slave, const char *slavename, char *errbuf, size_t errbuf_len);
-static int drop_privilige(char *errbuf, size_t errbuf_len);
struct child_info {
int master, slave;
@@ -117,7 +117,7 @@ chfunc(void *data, char *errbuf, size_t errbuf_len)
if (obtain_ctty(master, slave, slavename, errbuf, errbuf_len))
return -1;
- if (drop_privilige(errbuf, errbuf_len))
return -1;
return rb_exec_async_signal_safe(carg->eargp, errbuf, errbuf_len);
@@ -185,7 +185,7 @@ obtain_ctty(int master, int slave, const char *slavename, char *errbuf, size_t e
}
static int
-drop_privilige(char *errbuf, size_t errbuf_len)
{
#if defined(HAVE_SETEUID) || defined(HAVE_SETREUID) || defined(HAVE_SETRESUID)
if (seteuid(getuid())) ERROR_EXIT("seteuid()");
@@ -4546,7 +4546,7 @@ rb_gc_impl_mark_weak(void *objspace_ptr, VALUE *ptr)
/* If we are in a minor GC and the other object is old, then obj should
* already be marked and cannot be reclaimed in this GC cycle so we don't
- * need to add it to the weak refences list. */
if (!is_full_marking(objspace) && RVALUE_OLD_P(objspace, obj)) {
GC_ASSERT(RVALUE_MARKED(objspace, obj));
GC_ASSERT(!objspace->flags.during_compacting);
@@ -240,11 +240,11 @@ Glossary for "match cache"
The `Regexp#match` optimization by using a cache.
"cache opcode"
-A cachable opcode (e.g. `OP_PUSH`, `OP_REPEAT`, etc).
It is corresponding to some cache points.
"cache point"
-A cachable point on matching.
Usually, one-to-one corresponding between a cache opcode and a cache point exists,
but cache opcodes between `OP_REPEAT` and `OP_REPEAT_INC` have some corresponding
cache points depending on repetition counts.