summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2010-07-03 14:24:11 +0100
committerDavid Mitchell <davem@iabyn.com>2010-07-03 16:25:59 +0100
commit0d7d409d8d92b77ed7de5b74ab047eced86edfc3 (patch)
treefe3c9d84e4283e03a927b8ed309abc3415be8d31 /perl.h
parent79a8d5295c08d08001ca69256d5a990d05ee1556 (diff)
downloadperl-0d7d409d8d92b77ed7de5b74ab047eced86edfc3.tar.gz
add my_[l]stat_flags(); make my_[l]stat() mathoms
my_stat() and my_lstat() call get magic on the stack arg, so create _flags() variants that allow us to control this. (I can't just change the signature or the mg_get() behaviour since my_[l]stat() are listed as being in the public API, even though they're undocumented.)
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index b551f4bca4..3d60a33076 100644
--- a/perl.h
+++ b/perl.h
@@ -3425,6 +3425,10 @@ struct nexttoken {
#include "warnings.h"
#include "utf8.h"
+/* these would be in doio.h if there was such a file */
+#define my_stat() my_stat_flags(SV_GMAGIC)
+#define my_lstat() my_lstat_flags(SV_GMAGIC)
+
/* defined in sv.c, but also used in [ach]v.c */
#undef _XPV_HEAD
#undef _XPVMG_HEAD