From 7cc5b22bbc2768cb9280fcd879cc934b0f44deeb Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sat, 29 Jul 2023 16:55:48 +0200 Subject: [PATCH] [ruby/yarp] Add comment that extension.c should not contain non-trivial logic https://github.com/ruby/yarp/commit/638f6849be --- yarp/extension.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yarp/extension.c b/yarp/extension.c index a189b1a876..1044dc3d08 100644 --- a/yarp/extension.c +++ b/yarp/extension.c @@ -1,5 +1,8 @@ #include "yarp/extension.h" +// NOTE: this file should contain only bindings. +// All non-trivial logic should be in librubyparser so it can be shared its the various callers. + VALUE rb_cYARP; VALUE rb_cYARPSource; VALUE rb_cYARPToken;