summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorLarry Wall <larry@netlabs.com>1993-10-10 00:00:00 +0000
committerLarry Wall <larry@netlabs.com>1993-10-10 00:00:00 +0000
commit93a17b20b6d176db3f04f51a63b0a781e5ffd11c (patch)
tree764149b1d480d5236d4d62b3228bd57f53a71042 /sv.h
parent79072805bf63abe5b5978b5928ab00d360ea3e7f (diff)
downloadperl-93a17b20b6d176db3f04f51a63b0a781e5ffd11c.tar.gz
perl 5.0 alpha 3
[editor's note: the sparc executables have not been included, and emacs backup files have been removed]
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sv.h b/sv.h
index 8153d16d25..f9ba6ab759 100644
--- a/sv.h
+++ b/sv.h
@@ -363,6 +363,8 @@ struct xpvfm {
do { assert(SvTYPE(sv) >= SVt_PV); \
(((XPV*) SvANY(sv))->xpv_cur = val - SvPV(sv)); } while (0)
+#define SvCUROK(sv) (SvPOK(sv) ? SvCUR(sv) : 0)
+
#define BmRARE(sv) ((XPVBM*) SvANY(sv))->xbm_rare
#define BmUSEFUL(sv) ((XPVBM*) SvANY(sv))->xbm_useful
#define BmPREVIOUS(sv) ((XPVBM*) SvANY(sv))->xbm_previous