[前][次][番号順一覧][スレッド一覧]

ruby-changes:67802

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Fri, 10 Sep 2021 20:02:10 +0900 (JST)
Subject: [ruby-changes:67802] 92150fde85 (master): include/ruby/internal/arithmetic/off_t.h: add doxygen

https://git.ruby-lang.org/ruby.git/commit/?id=92150fde85

From 92150fde85f028a5d60cf670cf66a2036cdb3a15 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
 <shyouhei@r...>
Date: Thu, 21 Jan 2021 14:39:13 +0900
Subject: include/ruby/internal/arithmetic/off_t.h: add doxygen

Must not be a bad idea to improve documents. [ci skip]
---
 include/ruby/internal/arithmetic/off_t.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/ruby/internal/arithmetic/off_t.h b/include/ruby/internal/arithmetic/off_t.h
index 0226eb4..0ec9362 100644
--- a/include/ruby/internal/arithmetic/off_t.h
+++ b/include/ruby/internal/arithmetic/off_t.h
@@ -26,6 +26,7 @@ https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/arithmetic/off_t.h#L26
 #include "ruby/internal/arithmetic/long_long.h"
 #include "ruby/backward/2/long_long.h"
 
+/** Converts a C's `off_t` into an instance of ::rb_cInteger. */
 #ifdef OFFT2NUM
 # /* take that. */
 #elif SIZEOF_OFF_T == SIZEOF_LONG_LONG
@@ -36,6 +37,7 @@ https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/arithmetic/off_t.h#L37
 # define OFFT2NUM RB_INT2NUM
 #endif
 
+/** Converts an instance of ::rb_cNumeric into C's `off_t`. */
 #ifdef NUM2OFFT
 # /* take that. */
 #elif SIZEOF_OFF_T == SIZEOF_LONG_LONG
@@ -46,6 +48,7 @@ https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/arithmetic/off_t.h#L48
 # define NUM2OFFT RB_NUM2INT
 #endif
 
+/** A rb_sprintf() format prefix to be used for an `off_t` parameter. */
 #ifdef PRI_OFFT_PREFIX
 # /* take that. */
 #elif SIZEOF_OFF_T == SIZEOF_LONG_LONG
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]