equal
deleted
inserted
replaced
996 |
996 |
997 /* If this is the last news item, invalidate _latest_news */ |
997 /* If this is the last news item, invalidate _latest_news */ |
998 if (_total_news == 0) { |
998 if (_total_news == 0) { |
999 assert(_latest_news == _oldest_news); |
999 assert(_latest_news == _oldest_news); |
1000 _latest_news = INVALID_NEWS; |
1000 _latest_news = INVALID_NEWS; |
|
1001 _current_news = INVALID_NEWS; |
1001 } |
1002 } |
1002 |
1003 |
1003 /* Since we only imitate a FIFO removing an arbitrary element does need |
1004 /* Since we only imitate a FIFO removing an arbitrary element does need |
1004 * some magic. Remove the item by shifting head towards the tail. eg |
1005 * some magic. Remove the item by shifting head towards the tail. eg |
1005 * oldest remove last |
1006 * oldest remove last |