Author: petdance
Date: Thu Feb 21 22:05:09 2008
New Revision: 25975

Modified:
   trunk/include/parrot/slice.h
   trunk/src/pmc/slice.pmc

Log:
parenthesize macro arguments, and move the macro into the one source file where 
it gets used

Modified: trunk/include/parrot/slice.h
==============================================================================
--- trunk/include/parrot/slice.h        (original)
+++ trunk/include/parrot/slice.h        Thu Feb 21 22:05:09 2008
@@ -1,5 +1,5 @@
 /* slice.h
- *  Copyright (C) 2001-2004, The Perl Foundation.
+ *  Copyright (C) 2001-2008, The Perl Foundation.
  *  SVN Info
  *     $Id$
  *  Overview:
@@ -20,9 +20,6 @@
     STRING *s;
 } RUnion;
 
-#define RVal_int(u) u.i
-#define RVal_str(u) u.s
-
 typedef struct _parrot_range_t {
     int type;                      /* enum_type_INTVAL or STRING */
     RUnion start;                  /* start of this range */

Modified: trunk/src/pmc/slice.pmc
==============================================================================
--- trunk/src/pmc/slice.pmc     (original)
+++ trunk/src/pmc/slice.pmc     Thu Feb 21 22:05:09 2008
@@ -40,6 +40,9 @@
 #include "parrot/parrot.h"
 
 #define VALID_RANGE(r) ((r) && ((INTVAL)(r) != -1))
+#define RVal_int(u) (u).i
+#define RVal_str(u) (u).s
+
 
 /*
  * create range_t structure

Reply via email to