diff options
author | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2005-03-02 04:19:35 +0000 |
---|---|---|
committer | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2005-03-02 04:19:35 +0000 |
commit | e1daf3d4def1db357348b8737c704ec43905345c (patch) | |
tree | d41275601fc7b3371387b3bb9745fc4997669663 /usr.bin/cvs/rcs.h | |
parent | 5f119ab47b093c9775f042875dfc844aa9961dab (diff) |
- rcs_write() is now static
- when setting a new expansion mode, do not attempt to free the
previous expansion mode if the pointer is NULL
- add a bunch of new functions:
* rcs_sym_remove() to remove a symbol
* rcs_sym_getrev() to retrieve the revision number of a symbol
* rcs_desc_{s,g}et() to manipulate an RCS file's description
Diffstat (limited to 'usr.bin/cvs/rcs.h')
-rw-r--r-- | usr.bin/cvs/rcs.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/usr.bin/cvs/rcs.h b/usr.bin/cvs/rcs.h index 3731ff98965..fa4d8a8e06f 100644 --- a/usr.bin/cvs/rcs.h +++ b/usr.bin/cvs/rcs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rcs.h,v 1.9 2005/02/27 00:22:08 jfb Exp $ */ +/* $OpenBSD: rcs.h,v 1.10 2005/03/02 04:19:34 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -145,16 +145,18 @@ typedef struct rcs_file { } RCSFILE; -RCSFILE* rcs_open (const char *, int, ...); -void rcs_close (RCSFILE *); -int rcs_write (RCSFILE *); -int rcs_sym_add (RCSFILE *, const char *, RCSNUM *); -int rcs_sym_remove (RCSFILE *, const char *); -BUF* rcs_getrev (RCSFILE *, RCSNUM *); -BUF* rcs_gethead (RCSFILE *); -RCSNUM* rcs_getrevbydate (RCSFILE *, struct tm *); -int rcs_kwexp_set (RCSFILE *, int); -int rcs_kwexp_get (RCSFILE *); +RCSFILE* rcs_open (const char *, int, ...); +void rcs_close (RCSFILE *); +int rcs_sym_add (RCSFILE *, const char *, RCSNUM *); +int rcs_sym_remove (RCSFILE *, const char *); +RCSNUM* rcs_sym_getrev (RCSFILE *, const char *); +BUF* rcs_getrev (RCSFILE *, RCSNUM *); +BUF* rcs_gethead (RCSFILE *); +RCSNUM* rcs_getrevbydate (RCSFILE *, struct tm *); +const char* rcs_desc_get (RCSFILE *); +int rcs_desc_set (RCSFILE *, const char *); +int rcs_kwexp_set (RCSFILE *, int); +int rcs_kwexp_get (RCSFILE *); int rcs_kflag_get (const char *); void rcs_kflag_usage (void); |