Displaying 1 result from an estimated 1 matches for "perl_version_str".
2018 Oct 01
2
[PATCH nbdkit] plugins: Add scripting language version to --dump-plugin output.
...ot;)) {
lua_getglobal (L, "dump_plugin");
if (lua_pcall (L, 0, 0, 0) != 0) {
diff --git a/plugins/perl/perl.c b/plugins/perl/perl.c
index 3fce279..4cee89d 100644
--- a/plugins/perl/perl.c
+++ b/plugins/perl/perl.c
@@ -169,6 +169,10 @@ perl_dump_plugin (void)
{
dSP;
+#ifdef PERL_VERSION_STRING
+ printf ("perl_version=%s\n", PERL_VERSION_STRING);
+#endif
+
if (script && callback_defined ("dump_plugin")) {
ENTER;
SAVETMPS;
diff --git a/plugins/python/python.c b/plugins/python/python.c
index ef1a2cf..8b16d7e 100644
--- a/plugins/python/python.c
+...