~ubuntu-branches/ubuntu/maverick/zapping/maverick

« back to all changes in this revision

Viewing changes to libvbi/dlist.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2005-11-08 11:07:34 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051108110734-ygvf6uljvgcjmca7
Tags: 0.9.6-1ubuntu1
* Resynchronise with Debian (Closes: #4022):
  - Fix desktop file to not use absolute path.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22
22
 */
23
23
 
24
 
/* $Id: dlist.h,v 1.3 2005/01/08 14:54:20 mschimek Exp $ */
 
24
/* $Id: dlist.h,v 1.4 2005/06/28 01:11:31 mschimek Exp $ */
25
25
 
26
26
#ifndef DLIST_H
27
27
#define DLIST_H
31
31
#include "misc.h"
32
32
 
33
33
#ifndef DLIST_CONSISTENCY
34
 
#define DLIST_CONSISTENCY 1
 
34
#  define DLIST_CONSISTENCY 0
35
35
#endif
36
36
 
37
37
typedef struct node node;
216
216
        list_verify (l);
217
217
 
218
218
        for (q = l->head; q->succ; q = q->succ)
219
 
                if (__builtin_expect (n == q, 0))
 
219
                if (unlikely (n == q))
220
220
                        return TRUE;
221
221
 
222
222
        return FALSE;
233
233
 
234
234
        list_verify (l);
235
235
 
236
 
        if (__builtin_expect (s != NULL, 1)) {
 
236
        if (likely (s != NULL)) {
237
237
                s->pred = (node *) &l->head;
238
238
                l->head = s;
239
239
        } else {
254
254
 
255
255
        list_verify (l);
256
256
 
257
 
        if (__builtin_expect (p != NULL, 1)) {
 
257
        if (likely (p != NULL)) {
258
258
                p->succ = (node *) &l->null;
259
259
                l->tail = p;
260
260
        } else {