From 19cc58d3cb864d582ff400cb7567ac65c6fff849 Mon Sep 17 00:00:00 2001 From: Kazuki Yamaguchi Date: Fri, 28 Apr 2017 14:13:21 +0900 Subject: Expand rb_define_copy_func() macro It's not really "missing". Let's expand that, as it does not improve the readability so much. --- ext/openssl/ossl_x509revoked.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/openssl/ossl_x509revoked.c') diff --git a/ext/openssl/ossl_x509revoked.c b/ext/openssl/ossl_x509revoked.c index 7960ea34..5ac4a928 100644 --- a/ext/openssl/ossl_x509revoked.c +++ b/ext/openssl/ossl_x509revoked.c @@ -267,7 +267,7 @@ Init_ossl_x509revoked(void) rb_define_alloc_func(cX509Rev, ossl_x509revoked_alloc); rb_define_method(cX509Rev, "initialize", ossl_x509revoked_initialize, -1); - rb_define_copy_func(cX509Rev, ossl_x509revoked_initialize_copy); + rb_define_method(cX509Rev, "initialize_copy", ossl_x509revoked_initialize_copy, 1); rb_define_method(cX509Rev, "serial", ossl_x509revoked_get_serial, 0); rb_define_method(cX509Rev, "serial=", ossl_x509revoked_set_serial, 1); -- cgit v1.2.3