From 1005ac4d4afab2b8fea1c137024bafb4a1c5e6f9 Mon Sep 17 00:00:00 2001 From: Jean-Francois Brousseau Date: Fri, 13 Aug 2004 12:47:55 +0000 Subject: Ditch the 'ce_timestamp' field in favor of 'ce_mtime', which keeps the timestamp in time_t instead of a string --- usr.bin/cvs/cvs.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'usr.bin/cvs/cvs.h') diff --git a/usr.bin/cvs/cvs.h b/usr.bin/cvs/cvs.h index f4ea936ccdd..79cf5c0f435 100644 --- a/usr.bin/cvs/cvs.h +++ b/usr.bin/cvs/cvs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cvs.h,v 1.27 2004/08/13 02:56:37 jfb Exp $ */ +/* $OpenBSD: cvs.h,v 1.28 2004/08/13 12:47:54 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. @@ -163,7 +163,8 @@ struct cvsroot { #define CVS_HIST_TAG 'T' -#define CVS_ENT_DUMMYTIME "dummy timestamp" +#define CVS_DATE_DUMMY "dummy timestamp" +#define CVS_DATE_DMSEC (time_t)-1 #define CVS_ENT_NONE 0 #define CVS_ENT_FILE 1 @@ -180,7 +181,6 @@ struct cvs_ent { u_int ce_type; char *ce_name; RCSNUM *ce_rev; - char *ce_timestamp; time_t ce_mtime; char *ce_opts; char *ce_tag; @@ -281,8 +281,12 @@ int cvs_hist_append (CVSHIST *, struct cvs_hent *); /* from util.c */ + +#define CVS_DATE_CTIME 0 +#define CVS_DATE_RFC822 1 + int cvs_readrepo (const char *, char *, size_t); -time_t cvs_datesec (const char *); +time_t cvs_datesec (const char *, int, int); int cvs_modetostr (mode_t, char *, size_t); int cvs_strtomode (const char *, mode_t *); int cvs_splitpath (const char *, char *, size_t, char **); -- cgit v1.2.3