summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/rcsprog.h
diff options
context:
space:
mode:
authorNiall O'Higgins <niallo@cvs.openbsd.org>2005-11-02 20:32:46 +0000
committerNiall O'Higgins <niallo@cvs.openbsd.org>2005-11-02 20:32:46 +0000
commit9e6470e2cda5118e944b714dc3e2ffc2016556e3 (patch)
treef0a7833c7a4f38ccda1f1706b5d33999802679e2 /usr.bin/rcs/rcsprog.h
parent821ffc7bebfd34488198714ae269661ed9d1a106 (diff)
changes from Venice:
- instead of using lots of individual flag variables, use a single int and bitwise operations on it. while this saves memory, really it saves code space and reduces complexity. checkout_rev() and checkout_state() in particular benefit from these changes since their parameters where growing really long. - implement `-s' option in co - implement `-M' option in ci "I like this, go for it" joris@
Diffstat (limited to 'usr.bin/rcs/rcsprog.h')
-rw-r--r--usr.bin/rcs/rcsprog.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/usr.bin/rcs/rcsprog.h b/usr.bin/rcs/rcsprog.h
index d892259e961..0af7f67cc14 100644
--- a/usr.bin/rcs/rcsprog.h
+++ b/usr.bin/rcs/rcsprog.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsprog.h,v 1.17 2005/10/27 07:43:56 xsa Exp $ */
+/* $OpenBSD: rcsprog.h,v 1.18 2005/11/02 20:32:45 niallo Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -29,6 +29,20 @@
#define RCS_TMPDIR_DEFAULT "/tmp"
+/* flags specific to ci.c */
+#define CI_SYMFORCE (1<<0)
+#define CI_DEFAULT (1<<1)
+
+/* flags specific to co.c */
+#define CO_LOCK (1<<2)
+#define CO_REVDATE (1<<2)
+#define CO_STATE (1<<3)
+#define CO_UNLOCK (1<<4)
+
+/* shared flags */
+#define FORCE (1<<5)
+#define INTERACTIVE (1<<6)
+
extern char *__progname;
extern const char rcs_version[];
extern int verbose;
@@ -55,7 +69,7 @@ void rcs_set_rev(const char *, RCSNUM **);
int rcs_init(char *, char **, int);
int rcs_getopt(int, char **, const char *);
int rcs_statfile(char *, char *, size_t);
-int checkout_rev(RCSFILE *, RCSNUM *, const char *, int, const char *, int);
+int checkout_rev(RCSFILE *, RCSNUM *, const char *, int, const char *);
int checkout_main(int, char **);
int checkin_main(int, char **);
int rcs_main(int, char **);