|
From: <cre...@us...> - 2007-02-19 01:18:29
|
Revision: 1612
http://svn.sourceforge.net/frontierkernel/?rev=1612&view=rev
Author: creecode
Date: 2007-02-18 17:18:30 -0800 (Sun, 18 Feb 2007)
Log Message:
-----------
support for long odb item names and file paths
formatting tweaks
Modified Paths:
--------------
Frontier/branches/Frontier_Long_File_Paths/Common/headers/db.h
Modified: Frontier/branches/Frontier_Long_File_Paths/Common/headers/db.h
===================================================================
--- Frontier/branches/Frontier_Long_File_Paths/Common/headers/db.h 2007-02-19 00:57:40 UTC (rev 1611)
+++ Frontier/branches/Frontier_Long_File_Paths/Common/headers/db.h 2007-02-19 01:18:30 UTC (rev 1612)
@@ -50,11 +50,9 @@
typedef struct tydatabaserecord { /*stored at offset 0 in the db file*/
-
unsigned char systemid; /* 0 = MAC (compatiblity) */
-
-
+
unsigned char versionnumber; /*which version created this file?*/
dbaddress availlist; /*avail list is singly-linked, nil terminated*/
@@ -81,29 +79,34 @@
to remain the same as version 3 files.
*/
-
+
long fnumdatabase; /* file handle while in memory - New to version 5*/
-
+
long headerLength; /*size of header - New to version 5*/
-
+
short longversionMajor; /*new extended version id - new to version 5*/
-
+
short longversionMinor; /*new extended version id - new to version 5*/
union {
+
char growthspace [50]; /*room for new fields without format change*/
struct {
+
dbaddress availlistblock; /*6.2a9 AR: on-disk structure mirroring availlist, a contiguous block*/
handlestream availlistshadow; /*never saved to disk; in-memory structure mirroring availlist*/
boolean flreadonly; /*6.2a9 AR: never saved to disk; if this is true, don't write to the file*/
+
} extensions;
+
} u;
+
} tydatabaserecord, *ptrdatabaserecord, **hdldatabaserecord;
-
-
+
+
extern hdldatabaserecord databasedata; /*can be set by external user*/
extern boolean fldatabasesaveas;
@@ -177,13 +180,13 @@
extern boolean dbendsaveas (void);
-extern boolean statsblockinuse (dbaddress, bigstring); /*dbstats.c*/
+#pragma mark === dbstats.c ===
-extern boolean dbstatsmessage (hdldatabaserecord, boolean); /*6.2a8 AR*/
+extern boolean statsblockinuse ( dbaddress, const Handle );
+extern boolean dbstatsmessage (hdldatabaserecord, boolean); // 6.2a8 AR
+
extern boolean statsstart (void);
#endif
-
-
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|