summaryrefslogtreecommitdiff
path: root/xsutils.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2004-01-20 22:27:50 +0000
committerDave Mitchell <davem@fdisolutions.com>2004-01-20 22:27:50 +0000
commit371fce9b46bb8a15ccc0f7dd533facec7830b379 (patch)
tree4523c643c79fa85c5a7aa59a8de84c8c941f3959 /xsutils.c
parentf935b2f67f1c88a353de5d1c0f7792d9812d8f31 (diff)
downloadperl-371fce9b46bb8a15ccc0f7dd533facec7830b379.tar.gz
[perl #24940] "sub foo :unique" segfaults
Turn these two into compile-time errors until such time as someone thinks of a useful meaning for them: my $x : unique sub foo : unique p4raw-id: //depot/perl@22187
Diffstat (limited to 'xsutils.c')
-rw-r--r--xsutils.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/xsutils.c b/xsutils.c
index 622a49be30..9844b0e398 100644
--- a/xsutils.c
+++ b/xsutils.c
@@ -1,6 +1,7 @@
/* xsutils.c
*
- * Copyright (C) 1999, 2000, 2001, 2002, 2003, by Larry Wall and others
+ * Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004,
+ * by Larry Wall and others
*
* You may distribute under the terms of either the GNU General Public
* License or the Artistic License, as specified in the README file.
@@ -108,15 +109,6 @@ modify_SV_attributes(pTHX_ SV *sv, SV **retlist, SV **attrlist, int numattrs)
continue;
}
break;
- case 'u':
- if (strEQ(name, "unique")) {
- if (negated)
- GvUNIQUE_off(CvGV((CV*)sv));
- else
- GvUNIQUE_on(CvGV((CV*)sv));
- continue;
- }
- break;
}
break;
}