CVS update: /ccvs/src/
[email protected] 17 Mar 2005 22:36:26 -0000
| Newsgroups | gmane.comp.version-control.cvs.cvs |
|---|---|
| Message-ID | <[email protected]> |
User: dprice Date: 05/03/17 14:36:26 Modified: /ccvs/src/ ChangeLog, rcs.c, rcs.h Log: * rcs.h (RCSNode): Improve comment. * rcs.c (RCS_head): Ditto, plus gratuitous reformatting. File Changes: Directory: /ccvs/src/ ===================== File [changed]: ChangeLog Url: https://ccvs.cvshome.org/source/browse/ccvs/src/ChangeLog?r1=1.3161&r2=1.3162 Delta lines: +5 -0 ------------------- --- ChangeLog 17 Mar 2005 21:31:15 -0000 1.3161 +++ ChangeLog 17 Mar 2005 22:36:24 -0000 1.3162 @@ -1,5 +1,10 @@ 2005-03-17 Derek Price <[email protected]> + * rcs.h (RCSNode): Improve comment. + * rcs.c (RCS_head): Ditto, plus gratuitous reformatting. + +2005-03-17 Derek Price <[email protected]> + * rcs.c (RCS_deltas): Use rcs->print_path. 2005-03-17 Derek Price <[email protected]> File [changed]: rcs.c Url: https://ccvs.cvshome.org/source/browse/ccvs/src/rcs.c?r1=1.340&r2=1.341 Delta lines: +8 -2 ------------------- --- rcs.c 17 Mar 2005 21:31:15 -0000 1.340 +++ rcs.c 17 Mar 2005 22:36:24 -0000 1.341 @@ -2884,13 +2884,19 @@ /* * Get the head of the RCS file. If branch is set, this is the head of the * branch, otherwise the real head. - * Returns NULL or a newly malloc'd string. + * + * INPUTS + * rcs The parsed rcs node information. + * + * RETURNS + * NULL when rcs->branch exists and cannot be found. + * A newly malloc'd string, otherwise. */ char * RCS_head (RCSNode *rcs) { /* make sure we have something to look at... */ - assert (rcs != NULL); + assert (rcs); /* * NOTE: we call getbranch with force_tag_match set to avoid any File [changed]: rcs.h Url: https://ccvs.cvshome.org/source/browse/ccvs/src/rcs.h?r1=1.81&r2=1.82 Delta lines: +4 -1 ------------------- --- rcs.h 23 Feb 2005 01:24:28 -0000 1.81 +++ rcs.h 17 Mar 2005 22:36:24 -0000 1.82 @@ -68,7 +68,10 @@ /* Use when printing paths. */ char *print_path; - /* Value for head keyword from RCS header, or NULL if empty. */ + /* Value for head keyword from RCS header, or NULL if empty. HEAD may only + * be empty in a valid RCS file when the file has no revisions, a state + * that should not be able to occur with CVS. + */ char *head; /* Value for branch keyword from RCS header, or NULL if omitted. */