diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-08-07 20:57:08 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-08-07 20:57:08 (GMT) |
commit | 0fe2d45ae44323638f143bf320c77a5cb6df2a01 (patch) | |
tree | 01529af3ee161f7c70fd8f14ba581054bd52155c /generic/tclIOUtil.c | |
parent | 00acd83312b7bcc144212b7bd1a47436719b0d2c (diff) | |
download | tcl-0fe2d45ae44323638f143bf320c77a5cb6df2a01.zip tcl-0fe2d45ae44323638f143bf320c77a5cb6df2a01.tar.gz tcl-0fe2d45ae44323638f143bf320c77a5cb6df2a01.tar.bz2 |
Minor changes to improve style (C89 declarations, consistent indentation,
clarification of #endifs, reduction of unnecessary casts, use of array syntax
for reading array elements, etc.)
Diffstat (limited to 'generic/tclIOUtil.c')
-rw-r--r-- | generic/tclIOUtil.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c index 4df7f36..2d6d898 100644 --- a/generic/tclIOUtil.c +++ b/generic/tclIOUtil.c @@ -648,23 +648,26 @@ TclFSEpochOk( } static void -Claim() +Claim(void) { ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&fsDataKey); + tsdPtr->claims++; } static void -Disclaim() +Disclaim(void) { ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&fsDataKey); + tsdPtr->claims--; } int -TclFSEpoch() +TclFSEpoch(void) { ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&fsDataKey); + return tsdPtr->filesystemEpoch; } |