diff options
author | Wayne Davison <wayned@users.sourceforge.net> | 2006-03-07 21:43:34 +0000 |
---|---|---|
committer | Wayne Davison <wayned@users.sourceforge.net> | 2006-03-07 21:43:34 +0000 |
commit | d9d04545a5ed706f6be1952bee6914dc42a68ebc (patch) | |
tree | e09f27d84924d2a2126c251460e27f19e571cd98 /Src/zsh.h | |
parent | 4cb83571c45670eb8111801499281ea416b5074d (diff) | |
download | zsh-d9d04545a5ed706f6be1952bee6914dc42a68ebc.tar.gz zsh-d9d04545a5ed706f6be1952bee6914dc42a68ebc.tar.xz zsh-d9d04545a5ed706f6be1952bee6914dc42a68ebc.zip |
Changed struct listnode to use "prev" for the previous pointer,
not "last".
Diffstat (limited to 'Src/zsh.h')
-rw-r--r-- | Src/zsh.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/zsh.h b/Src/zsh.h index fb3697a66..d1ea5b359 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -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) |