summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-08 08:12:08 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-08 08:12:08 +0000
commit2c247e3d6bf178c4b19c87b6c55635467624864f (patch)
tree23dc7651a8817f9242a155cd33c47ead87a3fa51 /ext
parent8d7d25a0545296a1b9df506a8ab9fe930929ab6a (diff)
* io.c (rb_f_open): open should not ignore block when "to_open"
method is used. [ruby-dev:23478] * ext/dbm/dbm.c (fdbm_modify): typo fixed. [ruby-dev:23473] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/dbm/dbm.c4
-rw-r--r--ext/gdbm/gdbm.c4
-rw-r--r--ext/sdbm/init.c4
3 files changed, 3 insertions, 9 deletions
diff --git a/ext/dbm/dbm.c b/ext/dbm/dbm.c
index 1e4fe00fe73..e9e2a6e1e9a 100644
--- a/ext/dbm/dbm.c
+++ b/ext/dbm/dbm.c
@@ -285,9 +285,7 @@ fdbm_modify(obj)
VALUE obj;
{
rb_secure(4);
- if (OBJ_FROZEN_P(obj)) {
- if (OBJ_FROZEN(obj)) rb_error_frozen("DBM");
- }
+ if (OBJ_FROZEN(obj)) rb_error_frozen("DBM");
}
static VALUE
diff --git a/ext/gdbm/gdbm.c b/ext/gdbm/gdbm.c
index 705cecfa97d..799445a89c9 100644
--- a/ext/gdbm/gdbm.c
+++ b/ext/gdbm/gdbm.c
@@ -392,9 +392,7 @@ rb_gdbm_modify(obj)
VALUE obj;
{
rb_secure(4);
- if (OBJ_FROZEN_P(obj)) {
- if (OBJ_FROZEN(obj)) rb_error_frozen("GDBM");
- }
+ if (OBJ_FROZEN(obj)) rb_error_frozen("GDBM");
}
static VALUE
diff --git a/ext/sdbm/init.c b/ext/sdbm/init.c
index 77b27afe5b8..2dfd17196c1 100644
--- a/ext/sdbm/init.c
+++ b/ext/sdbm/init.c
@@ -273,9 +273,7 @@ fdbm_modify(obj)
VALUE obj;
{
rb_secure(4);
- if (OBJ_FROZEN_P(obj)) {
- if (OBJ_FROZEN(obj)) rb_error_frozen("SDBM");
- }
+ if (OBJ_FROZEN(obj)) rb_error_frozen("SDBM");
}
static VALUE