MorphOS Developer
Posts: 576 from 2003/2/24
From: finland, the l...
Your custom newList routine is bogus. That will cause a horrible crash. On MorphOS you can use NEWLIST macro or use NewList from libabox. There's no need to write your own.
If you really must use a custom newList, add the &'s where needed:
Code:
lh->lh_Head=&lh->lh_Tail;
lh->lh_Tail=(struct Node*) NULL;
lh->lh_TailPred=&lh->lh_Head;
[ Edited by Piru 26.10.2011 - 19:58 ]