From 01c7e16c0ce66cfa745d49cd4f18d43c23dbe225 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 21 Feb 2024 19:26:22 +0900 Subject: Separate miniruby from dmyext.c --- dmyext.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'dmyext.c') diff --git a/dmyext.c b/dmyext.c index 0020246529..66be95ab4e 100644 --- a/dmyext.c +++ b/dmyext.c @@ -1,7 +1,16 @@ -// This file is used by dynamically-linked ruby and miniruby. -// miniruby uses this Init_ext, which does nothing. It does not support require'ing extension libraries. -// Dynamically-linked ruby uses this Init_ext, which does nothing. It loads extension libraries by dlopen, etc. -// Statically-linked ruby does not use this Init_ext. Instead, "ext/extinit.c" (which is a generated file) defines Init_ext, which activates the (statically-linked) extension libraries. +// This file is used by dynamically-linked ruby, which has no +// statically-linked extension libraries. +// +// - miniruby does not use this Init_ext. Instead, "miniinit.c" +// provides Init_enc, which does nothing too. It does not support +// require'ing extension libraries. +// +// - Dynamically-linked ruby uses this Init_ext, which does +// nothing. It loads extension libraries by dlopen, etc. +// +// - Statically-linked ruby does not use this Init_ext. Instead, +// "ext/extinit.c" (which is a generated file) defines Init_ext, +// which activates the (statically-linked) extension libraries. void Init_ext(void) -- cgit v1.2.3