summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-04-05 14:52:05 +0000
committerNicholas Clark <nick@ccl4.org>2005-04-05 14:52:05 +0000
commit0723351e0aae3b4ed046fabd41bf188a3d6a77df (patch)
tree78420d4948893ca1c06f6944bb3936f685201e53 /mg.c
parenta6c0611711f1e672f5a8bc135ac604baafe03a0a (diff)
downloadperl-0723351e0aae3b4ed046fabd41bf188a3d6a77df.tar.gz
Down with C++ reserved names
(and also function pointer declarations that rely on the C semantics of ()) p4raw-id: //depot/perl@24165
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mg.c b/mg.c
index f56812e7c2..b07be1165f 100644
--- a/mg.c
+++ b/mg.c
@@ -146,7 +146,7 @@ Perl_mg_get(pTHX_ SV *sv)
{
const I32 mgs_ix = SSNEW(sizeof(MGS));
const bool was_temp = (bool)SvTEMP(sv);
- int new = 0;
+ int have_new = 0;
MAGIC *newmg, *head, *cur, *mg;
/* guard against sv having being freed midway by holding a private
reference. */
@@ -185,19 +185,19 @@ Perl_mg_get(pTHX_ SV *sv)
mg = mg->mg_moremagic;
- if (new) {
+ if (have_new) {
/* Have we finished with the new entries we saw? Start again
where we left off (unless there are more new entries). */
if (mg == head) {
- new = 0;
+ have_new = 0;
mg = cur;
head = newmg;
}
}
/* Were any new entries added? */
- if (!new && (newmg = SvMAGIC(sv)) != head) {
- new = 1;
+ if (!have_new && (newmg = SvMAGIC(sv)) != head) {
+ have_new = 1;
cur = mg;
mg = newmg;
}