1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-25 05:10:28 +02:00

Changed struct listnode to use "prev" for the previous pointer,

not "last".
This commit is contained in:
Wayne Davison 2006-03-07 21:43:34 +00:00
parent 4cb83571c4
commit d9d04545a5
2 changed files with 24 additions and 24 deletions

View file

@ -372,7 +372,7 @@ typedef struct asgment *Asgment;
struct linknode {
LinkNode next;
LinkNode last;
LinkNode prev;
void *dat;
};
@ -401,7 +401,7 @@ union linkroot {
#define getdata(X) ((X)->dat)
#define setdata(X,Y) ((X)->dat = (Y))
#define nextnode(X) ((X)->next)
#define prevnode(X) ((X)->last)
#define prevnode(X) ((X)->prev)
#define pushnode(X,Y) insertlinknode(X,&(X)->node,Y)
#define zpushnode(X,Y) zinsertlinknode(X,&(X)->node,Y)
#define incnode(X) (X = nextnode(X))
@ -422,7 +422,7 @@ union linkroot {
(N).list.first = &__n0; \
(N).list.last = &__n0; \
__n0.next = NULL; \
__n0.last = &(N).node; \
__n0.prev = &(N).node; \
__n0.dat = (void *) (V0); \
} while (0)