develooper Front page | perl.cvs.parrot | Postings from December 2008

[svn:parrot] r34335 - trunk/compilers/pirc/new

From:
bernhard
Date:
December 24, 2008 05:13
Subject:
[svn:parrot] r34335 - trunk/compilers/pirc/new
Message ID:
20081224131340.42E98CBA12@x12.develooper.com
Author: bernhard
Date: Wed Dec 24 05:13:39 2008
New Revision: 34335

Modified:
   trunk/compilers/pirc/new/pirsymbol.h

Log:
[codingstd] wrap args in macro definitions


Modified: trunk/compilers/pirc/new/pirsymbol.h
==============================================================================
--- trunk/compilers/pirc/new/pirsymbol.h	(original)
+++ trunk/compilers/pirc/new/pirsymbol.h	Wed Dec 24 05:13:39 2008
@@ -34,8 +34,8 @@
 } syminfo;
 
 /* accessors for easy typing; X must be a pointer to a syminfo struct. */
-#define sym_name(X)     X->id.name
-#define sym_regno(X)    X->id.regno
+#define sym_name(X)     (X)->id.name
+#define sym_regno(X)    (X)->id.regno
 
 
 /* structure to represent a declared local variable or parameter */



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About