diff options
author | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-07-14 19:03:01 +0000 |
---|---|---|
committer | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-07-14 19:03:01 +0000 |
commit | 5ff4cc38a6d5810b5dbce397544c9e73d77b1db9 (patch) | |
tree | e55f8d98436448e3711be68049c4570b028a5887 /usr.bin/cvs/cvs.h | |
parent | a7e71064b13ef4cc51a2342fead882021aa5e8a7 (diff) |
Unbreak the Entries loading code and move to a tail queue so we can remove
entries as well when it will be needed
Diffstat (limited to 'usr.bin/cvs/cvs.h')
-rw-r--r-- | usr.bin/cvs/cvs.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/cvs/cvs.h b/usr.bin/cvs/cvs.h index 73240386801..a84b001e814 100644 --- a/usr.bin/cvs/cvs.h +++ b/usr.bin/cvs/cvs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cvs.h,v 1.3 2004/07/14 04:32:42 jfb Exp $ */ +/* $OpenBSD: cvs.h,v 1.4 2004/07/14 19:03:00 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -258,16 +258,15 @@ struct cvs_ent { char *ce_timestamp; char *ce_opts; char *ce_tag; + TAILQ_ENTRY(cvs_ent) ce_list; }; typedef struct cvs_entries { char *cef_path; FILE *cef_file; - u_int cef_nid; /* next entry index to return for next() */ - - struct cvs_ent **cef_entries; - u_int cef_nbent; + TAILQ_HEAD(, cvs_ent) cef_ent; + struct cvs_ent *cef_cur; } CVSENTRIES; |