summaryrefslogtreecommitdiff
path: root/dmyenc.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-02-21 19:26:22 +0900
committerNobuyoshi Nakada <[email protected]>2024-02-21 23:37:20 +0900
commit01c7e16c0ce66cfa745d49cd4f18d43c23dbe225 (patch)
tree5508922749c08272d575d86de002ba99cf193133 /dmyenc.c
parent04729fe68dceddab045be7324e26c2bb15aa62c7 (diff)
Separate miniruby from dmyext.c
Diffstat (limited to 'dmyenc.c')
-rw-r--r--dmyenc.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/dmyenc.c b/dmyenc.c
index d00ad80a6f..4771841281 100644
--- a/dmyenc.c
+++ b/dmyenc.c
@@ -1,7 +1,16 @@
-// This file is used only by ruby.
-// miniruby does not use this Init_enc. Instead, "miniinit.c" provides Init_enc, which defines only the builtin encodings.
-// Dynamically-linked ruby uses this Init_enc, which requires "enc/encdb.so" to load the builtin encodings and set up the optional encodings.
-// Statically-linked ruby does not use this Init_enc. Instead, "enc/encinit.c" (which is a generated file) defines Init_enc, which activates the encodings.
+// This file is used by dynamically-linked ruby, which has no
+// statically-linked encodings other than the builtin encodings.
+//
+// - miniruby does not use this Init_enc. Instead, "miniinit.c"
+// provides Init_enc, which defines only the builtin encodings.
+//
+// - Dynamically-linked ruby uses this Init_enc, which requires
+// "enc/encdb.so" to load the builtin encodings and set up the
+// optional encodings.
+//
+// - Statically-linked ruby does not use this Init_enc. Instead,
+// "enc/encinit.c" (which is a generated file) defines Init_enc,
+// which activates the encodings.
#define require(name) ruby_require_internal(name, (unsigned int)sizeof(name)-1)
int ruby_require_internal(const char *, int);