diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-12-18 19:43:52 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-12-18 20:17:44 +0900 |
commit | 494e6b54ab37355740f88500b75cb701339b7fd9 (patch) | |
tree | 210c05fa87c5caf433e161602e9ca1f1bb7854f9 /dir.c | |
parent | 9b00b2bfb290f90c572bd3d969dd1f3758ed6eea (diff) |
[DOC] Add links from `File::Constants` in dir.c to `File` constants
Due to the bug ruby/rdoc#1067, `rb_file_const` needs `Document-const`
directives.
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -3672,12 +3672,27 @@ Init_Dir(void) rb_define_singleton_method(rb_cFile,"fnmatch", file_s_fnmatch, -1); rb_define_singleton_method(rb_cFile,"fnmatch?", file_s_fnmatch, -1); + + /* Document-const: FNM_NOESCAPE + * {File::FNM_NOESCAPE}[rdoc-ref:File::Constants@File-3A-3AFNM_NOESCAPE] */ rb_file_const("FNM_NOESCAPE", INT2FIX(FNM_NOESCAPE)); + /* Document-const: FNM_PATHNAME + * {File::FNM_PATHNAME}[rdoc-ref:File::Constants@File-3A-3AFNM_PATHNAME] */ rb_file_const("FNM_PATHNAME", INT2FIX(FNM_PATHNAME)); + /* Document-const: FNM_DOTMATCH + * {File::FNM_DOTMATCH}[rdoc-ref:File::Constants@File-3A-3AFNM_DOTMATCH] */ rb_file_const("FNM_DOTMATCH", INT2FIX(FNM_DOTMATCH)); + /* Document-const: FNM_CASEFOLD + * {File::FNM_CASEFOLD}[rdoc-ref:File::Constants@File-3A-3AFNM_CASEFOLD] */ rb_file_const("FNM_CASEFOLD", INT2FIX(FNM_CASEFOLD)); + /* Document-const: FNM_EXTGLOB + * {File::FNM_EXTGLOB}[rdoc-ref:File::Constants@File-3A-3AFNM_EXTGLOB] */ rb_file_const("FNM_EXTGLOB", INT2FIX(FNM_EXTGLOB)); + /* Document-const: FNM_SYSCASE + * {File::FNM_SYSCASE}[rdoc-ref:File::Constants@File-3A-3AFNM_SYSCASE] */ rb_file_const("FNM_SYSCASE", INT2FIX(FNM_SYSCASE)); + /* Document-const: FNM_SHORTNAME + * {File::FNM_SHORTNAME}[rdoc-ref:File::Constants@File-3A-3AFNM_SHORTNAME] */ rb_file_const("FNM_SHORTNAME", INT2FIX(FNM_SHORTNAME)); } |