[Bast-commits] r4916 - Devel-Declare/1.000/trunk
rafl at dev.catalyst.perl.org
rafl at dev.catalyst.perl.org
Sun Oct 12 15:26:44 BST 2008
Author: rafl
Date: 2008-10-12 15:26:44 +0100 (Sun, 12 Oct 2008)
New Revision: 4916
Modified:
Devel-Declare/1.000/trunk/Declare.xs
Log:
Make get_linestr return NULL/undef if we aren't parsing.
Modified: Devel-Declare/1.000/trunk/Declare.xs
===================================================================
--- Devel-Declare/1.000/trunk/Declare.xs 2008-10-12 14:26:12 UTC (rev 4915)
+++ Devel-Declare/1.000/trunk/Declare.xs 2008-10-12 14:26:44 UTC (rev 4916)
@@ -103,6 +103,9 @@
}
char* dd_get_linestr(pTHX) {
+ if (!DD_HAVE_PARSER) {
+ return NULL;
+ }
return SvPVX(PL_linestr);
}
More information about the Bast-commits
mailing list