summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/rcsparse.h
diff options
context:
space:
mode:
authortobias <tobias@openbsd.org>2010-10-15 08:44:12 +0000
committertobias <tobias@openbsd.org>2010-10-15 08:44:12 +0000
commitfead43df695cf6d6e54c569fceba359effced93e (patch)
tree308d459b831fe46f2edce42cbb76da1a53affa12 /usr.bin/cvs/rcsparse.h
parenttweak previous; (diff)
downloadwireguard-openbsd-fead43df695cf6d6e54c569fceba359effced93e.tar.xz
wireguard-openbsd-fead43df695cf6d6e54c569fceba359effced93e.zip
Replaced RCS parser code with new rcsparse.{c,h}:
- be very strict about things we parse - print more information about errors if they occur - do not fatal() directly in parser, give caller a chance to react - fix an rcs design issue when it comes to login names tested by many on tech@ ok xsa
Diffstat (limited to 'usr.bin/cvs/rcsparse.h')
-rw-r--r--usr.bin/cvs/rcsparse.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/usr.bin/cvs/rcsparse.h b/usr.bin/cvs/rcsparse.h
new file mode 100644
index 00000000000..64c503a8304
--- /dev/null
+++ b/usr.bin/cvs/rcsparse.h
@@ -0,0 +1,21 @@
+/* $OpenBSD: rcsparse.h,v 1.1 2010/10/15 08:44:12 tobias Exp $ */
+/*
+ * Copyright (c) 2010 Tobias Stoeckmann <tobias@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+int rcsparse_deltas(RCSFILE *, RCSNUM *);
+int rcsparse_deltatexts(RCSFILE *, RCSNUM *);
+void rcsparse_free(RCSFILE *);
+int rcsparse_init(RCSFILE *);