libDtSearch: Tidy up the LOCK and DBN macro madness

This commit is contained in:
Peter Howkins
2018-06-29 16:16:21 +01:00
parent 60edbd3491
commit bcdb2dd909
57 changed files with 199 additions and 209 deletions

View File

@@ -90,7 +90,7 @@ extern int max_open_files; /* see dio.c */
*/
int
d_initialize(dbn)
DBN_DECL
int dbn;
{
FILE_NO fno;
@@ -101,7 +101,7 @@ DBN_DECL
else {
/* initialize db files in file_table */
for (fno = 0; fno < DB_REF(Size_ft); ++fno) {
if ( d_initfile(fno DBN_PARM) != S_OKAY )
if ( d_initfile(fno , dbn) != S_OKAY )
break;
}
}
@@ -113,9 +113,9 @@ DBN_DECL
/* Initialize database file
*/
int
d_initfile(fno DBN_PARM)
d_initfile(fno , dbn)
FILE_NO fno; /* file table entry of file to be initialized */
DBN_DECL
int dbn;
{
INIT_PAGE_P Page;
#define page (Page.ptr)