CVS update [cvs1-11-x-branch]: /ccvs/src/
[email protected] 2 May 2005 17:42:01 -0000
| Newsgroups | gmane.comp.version-control.cvs.cvs |
|---|---|
| Message-ID | <[email protected]> |
Tag: cvs1-11-x-branch User: dprice Date: 05/05/02 10:42:01 Modified: /ccvs/src/ ChangeLog, lock.c Log: * lock.c (internal_lock, internal_clear_lock): Add protos. (history_lock, val_tags_lock): Return the chartered true/false status. File Changes: Directory: /ccvs/src/ ===================== File [changed]: ChangeLog Url: https://ccvs.cvshome.org/source/browse/ccvs/src/ChangeLog?r1=1.2336.2.368&r2=1.2336.2.369 Delta lines: +5 -0 ------------------- --- ChangeLog 2 May 2005 17:06:55 -0000 1.2336.2.368 +++ ChangeLog 2 May 2005 17:41:58 -0000 1.2336.2.369 @@ -1,5 +1,10 @@ 2005-05-02 Derek Price <[email protected]> + * lock.c (internal_lock, internal_clear_lock): Add protos. + (history_lock, val_tags_lock): Return the chartered true/false status. + +2005-05-02 Derek Price <[email protected]> + * cvs.h (CVSHISTLCK): Rename macro to... (CVSHISTORYLCK): ...this. (CVSVALTAGSLCK): New macro. File [changed]: lock.c Url: https://ccvs.cvshome.org/source/browse/ccvs/src/lock.c?r1=1.59.4.15&r2=1.59.4.16 Delta lines: +4 -2 ------------------- --- lock.c 2 May 2005 17:06:56 -0000 1.59.4.15 +++ lock.c 2 May 2005 17:41:59 -0000 1.59.4.16 @@ -1071,6 +1071,7 @@ * true, on success * false, on error */ +static int internal_lock PROTO ((const char *xrepository, int type)); static int internal_lock (xrepository, type) const char *xrepository; @@ -1115,6 +1116,7 @@ /* This is the internal implementation behind history_lock & val_tags_lock. It * removes the write lock for the history or val-tags file, when it exists. */ +static void internal_clear_lock PROTO((int type)); static void internal_clear_lock (type) int type; @@ -1154,7 +1156,7 @@ history_lock (xrepository) const char *xrepository; { - internal_lock (xrepository, L_HISTORY_LOCK); + return internal_lock (xrepository, L_HISTORY_LOCK); } @@ -1175,7 +1177,7 @@ val_tags_lock (xrepository) const char *xrepository; { - internal_lock (xrepository, L_VAL_TAGS_LOCK); + return internal_lock (xrepository, L_VAL_TAGS_LOCK); }