summaryrefslogtreecommitdiff
path: root/ext/etc
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-12-31 15:02:22 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-12-31 15:02:22 +0000
commita3e1b1ce7ed7e7ffac23015fc2fde56511b30681 (patch)
tree7b725552a9a4ded93849ca2faab1b257f7761790 /ext/etc
parent3e7566d8fb5138bb9cd647e5fdefc54fc9803509 (diff)
* Merge YARV
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/etc')
-rw-r--r--ext/etc/.cvsignore1
-rw-r--r--ext/etc/etc.c6
2 files changed, 4 insertions, 3 deletions
diff --git a/ext/etc/.cvsignore b/ext/etc/.cvsignore
index 814345e..4088712 100644
--- a/ext/etc/.cvsignore
+++ b/ext/etc/.cvsignore
@@ -1,4 +1,3 @@
Makefile
mkmf.log
*.def
-extconf.h
diff --git a/ext/etc/etc.c b/ext/etc/etc.c
index 1bd767d..22907a5 100644
--- a/ext/etc/etc.c
+++ b/ext/etc/etc.c
@@ -512,7 +512,6 @@ Init_etc(void)
rb_define_module_function(mEtc, "endgrent", etc_endgrent, 0);
rb_define_module_function(mEtc, "getgrent", etc_getgrent, 0);
- rb_global_variable(&sPasswd);
sPasswd = rb_struct_define("Passwd",
"name", "passwd", "uid", "gid",
#ifdef HAVE_ST_PW_GECOS
@@ -539,12 +538,15 @@ Init_etc(void)
#endif
NULL);
+ rb_register_mark_object(sPasswd);
+
#ifdef HAVE_GETGRENT
- rb_global_variable(&sGroup);
sGroup = rb_struct_define("Group", "name",
#ifdef HAVE_ST_GR_PASSWD
"passwd",
#endif
"gid", "mem", NULL);
+
+ rb_register_mark_object(sGroup);
#endif
}