last time.
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3704
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+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),
2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
* src/port.h (struct PORT),
+/*-----------------------------------------------------------------*/
+/* 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 */
/*-----------------------------------------------------------------*/
/*-----------------------------------------------------------------*/
/* computeControlFlow - does the control flow computation */
/*-----------------------------------------------------------------*/