+2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
+
+ * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
+ last time.
+
2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
* src/port.h (struct PORT),
ebbs[i]->noPath = 1;
}
+/*-----------------------------------------------------------------*/
+/* dfNumCompare - used by qsort to sort by dfNumber */
+/*-----------------------------------------------------------------*/
+int
+dfNumCompare (const void *a, const void *b)
+{
+ const eBBlock *const *i = a;
+ const eBBlock *const *j = b;
+
+ if ((*i)->dfnum > (*j)->dfnum)
+ return 1;
+
+ if ((*i)->dfnum < (*j)->dfnum)
+ return -1;
+
+ return 0;
+}
+
/*-----------------------------------------------------------------*/
/* computeControlFlow - does the control flow computation */
/*-----------------------------------------------------------------*/