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

@@ -46,9 +46,9 @@
/* Check for optional key existence
*/
int
d_keyexist(field DBN_PARM)
d_keyexist(field , dbn)
long field; /* key field constant */
DBN_DECL /* database number */
int dbn; /* database number */
{
int fld; /* field number */
int rec, rn; /* record type of current record */
@@ -63,7 +63,7 @@ DBN_DECL /* database number */
RETURN( db_status );
/* ensure current record is valid for this field */
d_crtype(&rn DBN_PARM);
d_crtype(&rn , dbn);
if (rec != NUM2INT(rn - RECMARK, rt_offset))
RETURN( dberr(S_BADFIELD) );