From 76f108ac8c4a9965d6bf4ba6a472e5866bb01731 Mon Sep 17 00:00:00 2001 From: Jan Dubois Date: Fri, 14 Aug 2009 17:57:45 -0700 Subject: [PATCH] Explain that the load_module() import list must be NULL terminated --- op.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/op.c b/op.c index a28e477..b4a9fe2 100644 --- a/op.c +++ b/op.c @@ -3962,7 +3962,11 @@ PERL_LOADMOD_DENY, PERL_LOADMOD_NOIMPORT, or PERL_LOADMOD_IMPORT_OPS (or 0 for no flags). ver, if specified, provides version semantics similar to C. The optional trailing SV* arguments can be used to specify arguments to the module's import() -method, similar to C. +method, similar to C. They must be +terminated with a final NULL pointer. Note that this list can only +be omitted when the PERL_LOADMOD_NOIMPORT flag has been used. +Otherwise at least a single NULL pointer to designate the default +import list is required. =cut */ -- 2.7.4