Subject: | multidimensional.xs not valid C89 code |
Allowing executable code before variable declarations is a C99 or C++
feature not allowed in C89 (and not supported by Microsoft Visual C++ in
C mode).
--- .backup~\multidimensional.xs~ 2010-11-22 04:44:05.000000000 -0800
+++ multidimensional.xs 2010-12-06 11:58:52.485970900 -0800
@@ -23,13 +23,14 @@
STATIC OP *multidimensional_helem_check_op (pTHX_ OP *op, void
*user_data) {
SV **hint = hv_fetchs(GvHV(PL_hintgv), "multidimensional", 0);
+ const OP *last;
PERL_UNUSED_ARG(user_data);
if (!hint || !SvOK(*hint))
return op;
- const OP *last = ((BINOP*)op)->op_first->op_sibling;
+ last = ((BINOP*)op)->op_first->op_sibling;
if (last && last->op_type == OP_JOIN) {
const OP *first = ((LISTOP*)last)->op_first;
const OP *next = first->op_sibling;