From fead43df695cf6d6e54c569fceba359effced93e Mon Sep 17 00:00:00 2001 From: tobias Date: Fri, 15 Oct 2010 08:44:12 +0000 Subject: 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 --- usr.bin/cvs/rcsparse.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 usr.bin/cvs/rcsparse.h (limited to 'usr.bin/cvs/rcsparse.h') 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 + * + * 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 *); -- cgit v1.2.3-59-g8ed1b