Commit d5cbc4a3 by Richard Kenner

Avoid defining NULL; can cause duplicate definition errors.

From-SVN: r5771
parent cd93179b
...@@ -21,8 +21,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -21,8 +21,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "hconfig.h" #include "hconfig.h"
#include "bi-defs.h" #include "bi-defs.h"
#define NULL 0
void void
reverse() reverse()
{ {
...@@ -35,19 +33,19 @@ reverse() ...@@ -35,19 +33,19 @@ reverse()
vp = dp->variations; vp = dp->variations;
if (vp) if (vp)
{ {
for (v = vp->next, vp->next = NULL; v; vp = v, v = vn) for (v = vp->next, vp->next = 0; v; vp = v, v = vn)
{ {
vn = v->next; vn = v->next;
v->next = vp; v->next = vp;
} }
dp->variations = vp; dp->variations = vp;
} }
for (d = dp->next, dp->next = NULL; d; dp = d, d = dn) for (d = dp->next, dp->next = 0; d; dp = d, d = dn)
{ {
vp = d->variations; vp = d->variations;
if (vp) if (vp)
{ {
for (v = vp->next, vp->next = NULL; v; vp = v, v = vn) for (v = vp->next, vp->next = 0; v; vp = v, v = vn)
{ {
vn = v->next; vn = v->next;
v->next = vp; v->next = vp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment