Permalink
Browse files

mrb_intern API change.

  • Loading branch information...
tsahara committed Dec 3, 2013
1 parent e2afed2 commit fac9f00948a89b58be41e015bcbd6f50be009d91
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/digest.c
View
@@ -506,7 +506,7 @@ basecheck(mrb_state *mrb, mrb_value self, struct mrb_md **mdp)
mrb_value t;
c = mrb_obj_class(mrb, self);
t = mrb_const_get(mrb, mrb_obj_value(c), mrb_intern(mrb, TYPESYM));
t = mrb_const_get(mrb, mrb_obj_value(c), mrb_intern_lit(mrb, TYPESYM));
if (mrb_nil_p(t)) {
mrb_raise(mrb, E_NOTIMP_ERROR, "Digest::Base is an abstract class");
}
@@ -593,10 +593,10 @@ mrb_digest_init(mrb_state *mrb, mrb_value self)
DATA_PTR(self) = NULL;
c = mrb_obj_class(mrb, self);
if (!mrb_const_defined(mrb, mrb_obj_value(c), mrb_intern(mrb, TYPESYM))) {
if (!mrb_const_defined(mrb, mrb_obj_value(c), mrb_intern_lit(mrb, TYPESYM))) {
mrb_raise(mrb, E_NOTIMP_ERROR, "Digest::Base is an abstract class");
}
t = mrb_const_get(mrb, mrb_obj_value(c), mrb_intern(mrb, TYPESYM));
t = mrb_const_get(mrb, mrb_obj_value(c), mrb_intern_lit(mrb, TYPESYM));
#if 0
if (lib_md_supported(t)) {
mrb_raise(mrb, E_NOTIMP_ERROR, "unknown algorithm");
@@ -707,7 +707,7 @@ mrb_hmac_init(mrb_state *mrb, mrb_value self)
DATA_PTR(self) = NULL;
mrb_get_args(mrb, "so", &key, &keylen, &digest);
t = mrb_const_get(mrb, digest, mrb_intern(mrb, TYPESYM));
t = mrb_const_get(mrb, digest, mrb_intern_lit(mrb, TYPESYM));
if (mrb_nil_p(t)) {
mrb_raise(mrb, E_RUNTIME_ERROR, "not a digester");
}

0 comments on commit fac9f00

Please sign in to comment.