diff options
author | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-07-29 16:46:59 +0000 |
---|---|---|
committer | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-07-29 16:46:59 +0000 |
commit | 32be83ee99c31b06e52a3a9c43092759e936c401 (patch) | |
tree | e5b5b3d5fe922b3e5c9767b36193c56c8323cc05 /usr.bin/cvs | |
parent | 2b0b40bd3be11191aaf045016756541581d9f7b8 (diff) |
Use tail queues instead of lists to manage file entries
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r-- | usr.bin/cvs/cvs.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/usr.bin/cvs/cvs.h b/usr.bin/cvs/cvs.h index 6b380d6df4f..1e365b7e0d0 100644 --- a/usr.bin/cvs/cvs.h +++ b/usr.bin/cvs/cvs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cvs.h,v 1.12 2004/07/29 15:41:58 jfb Exp $ */ +/* $OpenBSD: cvs.h,v 1.13 2004/07/29 16:46:58 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -276,6 +276,10 @@ struct cvsroot { #define CVS_FST_CONFLICT 5 #define CVS_FST_PATCHED 6 + +TAILQ_HEAD(cvs_flist, cvs_files); + + typedef struct cvs_file { char *cf_path; struct cvs_file *cf_parent; /* parent directory (NULL if none) */ @@ -285,14 +289,14 @@ typedef struct cvs_file { struct stat *cf_stat; /* only available with CF_STAT flag */ struct cvs_dir *cf_ddat; /* only for directories */ - LIST_ENTRY(cvs_file) cf_list; + TAILQ_ENTRY(cvs_file) cf_list; } CVSFILE; struct cvs_dir { - struct cvsroot *cd_root; - char *cd_repo; - LIST_HEAD(cvs_flist, cvs_file) cd_files; + struct cvsroot *cd_root; + char *cd_repo; + struct cvs_flist cd_files; }; #define CVS_HIST_ADDED 'A' |