mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
include/ruby/internal/core/rfile.h: add doxygen
Must not be a bad idea to improve documents. [ci skip]
This commit is contained in:
parent
b92a9af405
commit
0c486c5531
Notes:
git
2021-09-10 20:01:41 +09:00
1 changed files with 15 additions and 0 deletions
|
@ -27,10 +27,25 @@
|
|||
* into ruby/ruby.h. We follow that tradition. */
|
||||
struct rb_io_t;
|
||||
|
||||
/**
|
||||
* Ruby's File and IO. Ruby's IO are not just file descriptors. They have
|
||||
* buffers. They also have encodings. Various information are controlled
|
||||
* using this struct.
|
||||
*/
|
||||
struct RFile {
|
||||
|
||||
/** Basic part, including flags and class. */
|
||||
struct RBasic basic;
|
||||
|
||||
/** IO's specific fields. */
|
||||
struct rb_io_t *fptr;
|
||||
};
|
||||
|
||||
/**
|
||||
* Convenient casting macro.
|
||||
*
|
||||
* @param obj An object, which is in fact an ::RFile.
|
||||
* @return The passed object casted to ::RFile.
|
||||
*/
|
||||
#define RFILE(obj) RBIMPL_CAST((struct RFile *)(obj))
|
||||
#endif /* RBIMPL_RFILE_H */
|
||||
|
|
Loading…
Reference in a new issue