diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-10-22 17:32:58 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-10-22 17:32:58 +0000 |
commit | 16e8927d403df86f9f577b0d491d1ef9ac11ce97 (patch) | |
tree | 074cdbe132f562b97d4cec177fd22af8aa77c729 /usr.bin/cvs/cvs.h | |
parent | 507840a892753fe4ed5a99c4f0105d29e2bea00a (diff) |
diff3 support, needed for merging files together;
"go for it" niallo@
Diffstat (limited to 'usr.bin/cvs/cvs.h')
-rw-r--r-- | usr.bin/cvs/cvs.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/usr.bin/cvs/cvs.h b/usr.bin/cvs/cvs.h index 74fe7e83baf..f08fb3f7316 100644 --- a/usr.bin/cvs/cvs.h +++ b/usr.bin/cvs/cvs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cvs.h,v 1.86 2005/10/07 21:47:32 reyk Exp $ */ +/* $OpenBSD: cvs.h,v 1.87 2005/10/22 17:32:57 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -410,6 +410,21 @@ int cvs_logmsg_send(struct cvsroot *, const char *); time_t cvs_date_parse(const char *); /* util.c */ + +struct cvs_line { + char *l_line; + int l_lineno; + TAILQ_ENTRY(cvs_line) l_list; +}; + +TAILQ_HEAD(cvs_tqh, cvs_line); + +struct cvs_lines { + int l_nblines; + char *l_data; + struct cvs_tqh l_lines; +}; + int cvs_readrepo(const char *, char *, size_t); int cvs_modetostr(mode_t, char *, size_t); int cvs_strtomode(const char *, mode_t *); @@ -431,5 +446,12 @@ void cvs_write_tagfile(char *, char *, int); void cvs_parse_tagfile(char **, char **, int *); size_t cvs_path_cat(const char *, const char *, char *, size_t); +BUF *cvs_patchfile(const char *, const char *, + int (*p)(struct cvs_lines *, struct cvs_lines *)); +struct cvs_lines *cvs_splitlines(const char *); +void cvs_freelines(struct cvs_lines *); + +/* XXX */ +int rcs_patch_lines(struct cvs_lines *, struct cvs_lines *); #endif /* CVS_H */ |