Code

perl plugin: Fixed the "EnableDebugger after LoadPlugin" warning.
authorSebastian Harl <sh@tokkee.org>
Tue, 18 Mar 2008 11:34:17 +0000 (12:34 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Sat, 22 Mar 2008 08:39:01 +0000 (09:39 +0100)
commit53f5cd2cb13cc23d348efb41dba8be25af415a59
tree5f3e1362d2fa2b39c25b61b34a2ca3b0d9295ead
parent4fe00def1a70d2bd73dbcd912da2becef459d00e
perl plugin: Fixed the "EnableDebugger after LoadPlugin" warning.

For some strange reason my original patch (perl plugin: Warn if
"EnableDebugger" has been used after "LoadPlugin".) has been applied at the
wrong position (it has been applied to perl_config_includedir() instead of
perl_config_enabledebugger() - I have absolutely no clue why though).

Also, the check for the precondition of this warning has been fixed. In some
cases aTHX does not seem to be set, even though the Perl interpreter has
already been initialized. Now, perl_threads is used to check for that
condition.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/perl.c