Ignore:
Timestamp:
02/27/08 07:13:31 (16 years ago)
Author:
Nicholas Riley
Message:

Jgraph: my changes - ANSIfication, few minor bug fixes; works on OS X 10.5 now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Jgraph/prio_list.c

    r418 r420  
    1010#include <stdio.h>
    1111
    12 typedef int Boolean;
    13 
    14 /* A prioirity list is any list with the first three fields being flink,
    15  * blink and prio.  Use the routines of list.c to do everything except
    16  * insertion */
    17  
    18 typedef struct prio_list {
    19   struct prio_list *flink;
    20   struct prio_list *blink;
    21   int prio;
    22 } *Prio_list;
    2312
    2413/* Prio_insert inserts nodes into their proper places in priority lists.  It first
     
    2615 * Thus, it is worst case linear, but for most cases constant time (right). */
    2716
    28 prio_insert(node, list, desc)
    29 Prio_list node;
    30 Prio_list list;
    31 Boolean desc;
     17void prio_insert(void *n, void *l, Boolean desc)
    3218{
    33   Prio_list p;
     19  Prio_list p, node = (Prio_list)n, list = (Prio_list)l;
    3420
    3521  /* Check nil and head of list */
Note: See TracChangeset for help on using the changeset viewer.