|
From: <cre...@us...> - 2007-02-19 00:57:43
|
Revision: 1611
http://svn.sourceforge.net/frontierkernel/?rev=1611&view=rev
Author: creecode
Date: 2007-02-18 16:57:40 -0800 (Sun, 18 Feb 2007)
Log Message:
-----------
formatting tweaks
Modified Paths:
--------------
Frontier/branches/Frontier_Long_File_Paths/Common/source/dbstats.c
Modified: Frontier/branches/Frontier_Long_File_Paths/Common/source/dbstats.c
===================================================================
--- Frontier/branches/Frontier_Long_File_Paths/Common/source/dbstats.c 2007-02-19 00:51:51 UTC (rev 1610)
+++ Frontier/branches/Frontier_Long_File_Paths/Common/source/dbstats.c 2007-02-19 00:57:40 UTC (rev 1611)
@@ -293,16 +293,17 @@
} /*statscountreleasestack*/
-boolean statsblockinuse (dbaddress adr, bigstring bsitem) {
-#pragma unused (bsitem)
+boolean statsblockinuse ( dbaddress adr, const Handle handleItem ) {
- /*
- called from the EFPs directly as we're doing our content-based
- database scan.
-
- 5.0a25 dmb: added bsitem parameter, keyboardescape check
- */
+ #pragma unused (handleItem)
+ //
+ // called from the EFPs directly as we're doing our content-based database
+ // scan.
+ //
+ // 5.0a25 dmb: added bsitem parameter, keyboardescape check
+ //
+
register hdlstatsrecord hs = statsdata;
boolean flfree;
long ctbytes;
@@ -310,10 +311,10 @@
if (adr == nildbaddress) /*ok to pass nil*/
return (true);
-
+
if (keyboardescape ())
return (false);
-
+
/*
if (bsitem != nil) {
@@ -324,24 +325,27 @@
*/
if (!dbreadheader (adr, &flfree, &ctbytes, &variance)) {
-
+
setstatsmessage (idreadusedheaderfailed);
return (false);
+
}
+
+ if (flfree) {
- if (flfree) {
-
setstatsmessage (idfreeblockinuse);
return (false);
+
}
-
+
(**hs).logctinuse++;
(**hs).logsizeinuse += ctbytes;
return (true);
+
} /*statsblockinuse*/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|