[svn:parrot] r39820 - trunk/compilers/imcc
petdance at svn.parrot.org
petdance at svn.parrot.org
Mon Jun 29 05:59:29 UTC 2009
Author: petdance
Date: Mon Jun 29 05:59:28 2009
New Revision: 39820
URL: https://trac.parrot.org/parrot/changeset/39820
Log:
use NULL instead of 0 for pointers
Modified:
trunk/compilers/imcc/reg_alloc.c
Modified: trunk/compilers/imcc/reg_alloc.c
==============================================================================
--- trunk/compilers/imcc/reg_alloc.c Mon Jun 29 05:29:03 2009 (r39819)
+++ trunk/compilers/imcc/reg_alloc.c Mon Jun 29 05:59:28 2009 (r39820)
@@ -422,7 +422,7 @@
#endif
if (unit->interference_graph) {
free(unit->interference_graph);
- unit->interference_graph = 0;
+ unit->interference_graph = NULL;
}
if (unit->reglist) {
@@ -854,8 +854,9 @@
/* We cannot rely on computing the value of r->first when parsing,
* since the situation can be changed at any time by the register
* allocation algorithm */
- r->first_ins = 0;
- r->use_count = r->lhs_use_count = 0;
+ r->first_ins = NULL;
+ r->use_count = 0;
+ r->lhs_use_count = 0;
for (ins = unit->instructions; ins; ins = ins->next) {
const int ro = instruction_reads(ins, r);
More information about the parrot-commits
mailing list