Skip to content

Commit 0f75ac8

Browse files
nobumatzbot
authored andcommitted
[ruby/digest] Adjust styles [ci skip]
- Use the C90 standard style for comments, since this gem supports versions prior to ruby 2.7. - Adjust the indentation. ruby/digest@4751402e50
1 parent 7407aa5 commit 0f75ac8

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

ext/digest/digest.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,16 @@ static inline VALUE
7777
rb_digest_make_metadata(const rb_digest_metadata_t *meta)
7878
{
7979
#if EXTSTATIC
80-
// The extension is built as a static library, so safe to refer to
81-
// rb_digest_wrap_metadata directly.
82-
extern VALUE rb_digest_wrap_metadata(const rb_digest_metadata_t *meta);
83-
return rb_digest_wrap_metadata(meta);
80+
/* The extension is built as a static library, so safe to refer to
81+
* rb_digest_wrap_metadata directly. */
82+
extern VALUE rb_digest_wrap_metadata(const rb_digest_metadata_t *meta);
83+
return rb_digest_wrap_metadata(meta);
8484
#else
85-
// The extension is built as a shared library, so we can't refer to
86-
// rb_digest_wrap_metadata directly.
85+
/* The extension is built as a shared library, so we can't refer
86+
* to rb_digest_wrap_metadata directly. */
8787
# ifdef DIGEST_USE_RB_EXT_RESOLVE_SYMBOL
88-
// If rb_ext_resolve_symbol() is available, use it to get the address of
89-
// rb_digest_wrap_metadata.
88+
/* If rb_ext_resolve_symbol() is available, use it to get the address of
89+
* rb_digest_wrap_metadata. */
9090
typedef VALUE (*wrapper_func_type)(const rb_digest_metadata_t *meta);
9191
static wrapper_func_type wrapper;
9292
if (!wrapper) {
@@ -96,7 +96,8 @@ rb_digest_make_metadata(const rb_digest_metadata_t *meta)
9696
}
9797
return wrapper(meta);
9898
# else
99-
// If rb_ext_resolve_symbol() is not available, keep using untyped data.
99+
/* If rb_ext_resolve_symbol() is not available, keep using untyped
100+
* data. */
100101
# undef RUBY_UNTYPED_DATA_WARNING
101102
# define RUBY_UNTYPED_DATA_WARNING 0
102103
return rb_obj_freeze(Data_Wrap_Struct(0, 0, 0, (void *)meta));

0 commit comments

Comments
 (0)