mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* eval.c (win32_get_exception_list): avoid VC7 warning.
[ruby-win32:577] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
46b5d7308b
commit
3587c1c725
4 changed files with 18 additions and 0 deletions
|
@ -148,7 +148,11 @@ ossl_config_initialize(int argc, VALUE *argv, VALUE self)
|
|||
ossl_raise(eConfigError, "error in %s:%d", filename, eline);
|
||||
}
|
||||
}
|
||||
#ifdef OSSL_NO_CONF_API
|
||||
else rb_raise(rb_eArgError, "wrong number of arguments(0 for 1)");
|
||||
#else
|
||||
else _CONF_new_data(conf);
|
||||
#endif
|
||||
|
||||
return self;
|
||||
}
|
||||
|
@ -156,6 +160,9 @@ ossl_config_initialize(int argc, VALUE *argv, VALUE self)
|
|||
static VALUE
|
||||
ossl_config_add_value(VALUE self, VALUE section, VALUE name, VALUE value)
|
||||
{
|
||||
#ifdef OSSL_NO_CONF_API
|
||||
rb_notimplement();
|
||||
#else
|
||||
CONF *conf;
|
||||
CONF_VALUE *sv, *cv;
|
||||
|
||||
|
@ -181,6 +188,7 @@ ossl_config_add_value(VALUE self, VALUE section, VALUE name, VALUE value)
|
|||
}
|
||||
|
||||
return value;
|
||||
#endif
|
||||
}
|
||||
|
||||
static VALUE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue