summaryrefslogtreecommitdiff
path: root/mg.h
diff options
context:
space:
mode:
authorDouglas Lankshear <doug@lankshear.net>1998-02-01 01:18:13 -0800
committerGurusamy Sarathy <gsar@cpan.org>1998-02-01 22:20:20 +0000
commit565764a853a177193a027e73655fad354d57fc10 (patch)
tree81b4f0277636b6f8214748868d0d9d7cc791d577 /mg.h
parent8f818fa030b966544b5cf7bdfa53e06a9c371bfe (diff)
downloadperl-565764a853a177193a027e73655fad354d57fc10.tar.gz
[asperl] added AS patch#3
Message-Id: <01BD2EF2.53433A40.dougl@ActiveState.com> To: "'Gurusamy Sarathy'" <gsar@umich.edu> Here's an additional diff against //depot/asperl The field name mg_length was changed back to mg_len The function name mg_len was change to mg_length The need for sort_mutex removed thanks to the code derived from Tom Horsley's work. -- Doug p4raw-id: //depot/asperl@451
Diffstat (limited to 'mg.h')
-rw-r--r--mg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mg.h b/mg.h
index 2610d1a1f9..1490470218 100644
--- a/mg.h
+++ b/mg.h
@@ -23,7 +23,7 @@ struct magic {
U8 mg_flags;
SV* mg_obj;
char* mg_ptr;
- I32 mg_length;
+ I32 mg_len;
};
#define MGf_TAINTEDDIR 1
@@ -36,6 +36,6 @@ struct magic {
#define MgTAINTEDDIR_on(mg) (mg->mg_flags |= MGf_TAINTEDDIR)
#define MgTAINTEDDIR_off(mg) (mg->mg_flags &= ~MGf_TAINTEDDIR)
-#define MgPV(mg,lp) (((lp = (mg)->mg_length) == HEf_SVKEY) ? \
+#define MgPV(mg,lp) (((lp = (mg)->mg_len) == HEf_SVKEY) ? \
SvPV((SV*)((mg)->mg_ptr),lp) : \
(mg)->mg_ptr)