/*----------------------------------------------------------------------------
   dbstatus.h:  Velocis function declarations

   Copyright (c) 1984-1994 Raima Corporation.  All Rights Reserved.
----------------------------------------------------------------------------*/

#ifndef DBSTATUS_H
#define DBSTATUS_H

extern short db_status;

#ifdef DB_DEBUG
extern char db_svcptr[];
#define DB_MSG(s)  sprintf(db_svcptr, "%s() \"%s(%d)\"", s, __FILE__,__LINE__),
#else
#define DB_MSG(s)
#endif

#define d_close(a)                      (DB_MSG("d_close")      db_status=d_close(a))
#define d_closetask(a)                  (DB_MSG("d_closetask")  db_status=d_closetask(a))
#define d_cmfree(a,b)                   (DB_MSG("d_cmfree")     db_status=d_cmfree(a,b))
#define d_cmlock(a,b,c)                 (DB_MSG("d_cmlock")     db_status=d_cmlock(a,b,c))
#define d_cmtype(a,b,c)                 (DB_MSG("d_cmtype")     db_status=d_cmtype(a,b,c))
#define d_cofree(a,b)                   (DB_MSG("d_cofree")     db_status=d_cofree(a,b))
#define d_colock(a,b,c)                 (DB_MSG("d_colock")     db_status=d_colock(a,b,c))
#define d_connect(a,b)                  (DB_MSG("d_connect")    db_status=d_connect(a,b))
#define d_connectn(a,b)                 (DB_MSG("d_connectn")   db_status=d_connectn(a,b))
#define d_cotype(a,b,c)                 (DB_MSG("d_cotype")     db_status=d_cotype(a,b,c))
#define d_crfree(a)                     (DB_MSG("d_crfree")     db_status=d_crfree(a))
#define d_crget(a,b)                    (DB_MSG("d_crget")      db_status=d_crget(a,b))
#define d_crlock(a,b)                   (DB_MSG("d_crlock")     db_status=d_crlock(a,b))
#define d_crread(a,b,c)                 (DB_MSG("d_crread")     db_status=d_crread(a,b,c))
#define d_crset(a,b)                    (DB_MSG("d_crset")      db_status=d_crset(a,b))
#define d_crslock(a,b,c)                (DB_MSG("d_crslock")    db_status=d_crslock(a,b,c))
#define d_crtype(a,b)                   (DB_MSG("d_crtype")     db_status=d_crtype(a,b))
#define d_crwrite(a,b,c)                (DB_MSG("d_crwrite")    db_status=d_crwrite(a,b,c))
#define d_csfree(a,b)                   (DB_MSG("d_csfree")     db_status=d_csfree(a,b))
#define d_cslock(a,b,c)                 (DB_MSG("d_cslock")     db_status=d_cslock(a,b,c))
#define d_csmget(a,b,c)                 (DB_MSG("d_csmget")     db_status=d_csmget(a,b,c))
#define d_csmread(a,b,c,d)              (DB_MSG("d_csmread")    db_status=d_csmread(a,b,c,d))
#define d_csmset(a,b,c)                 (DB_MSG("d_csmset")     db_status=d_csmset(a,b,c))
#define d_csmwrite(a,b,c,d)             (DB_MSG("d_csmwrite")   db_status=d_csmwrite(a,b,c,d))
#define d_csoget(a,b,c)                 (DB_MSG("d_csoget")     db_status=d_csoget(a,b,c))
#define d_csoread(a,b,c,d)              (DB_MSG("d_csoread")    db_status=d_csoread(a,b,c,d))
#define d_csoset(a,b,c)                 (DB_MSG("d_csoset")     db_status=d_csoset(a,b,c))
#define d_csowrite(a,b,c,d)             (DB_MSG("d_csowrite")   db_status=d_csowrite(a,b,c,d))
#define d_curkey(a)                     (DB_MSG("d_curkey")     db_status=d_curkey(a))
#define d_dbafree(a,b)                  (DB_MSG("d_dbafree")    db_status=d_dbafree(a,b))
#define d_dbalock(a,b,c)                (DB_MSG("d_dbalock")    db_status=d_dbalock(a,b,c))
#define d_dbnum(a,b)                    (DB_MSG("d_dbnum")      db_status=d_dbnum(a,b))
#define d_delete(a)                     (DB_MSG("d_delete")     db_status=d_delete(a))
#define d_dict(a,b,c,d,e)               (DB_MSG("d_dict")       db_status=d_dict(a,b,c,d,e))
#define d_dictEntry(a,b,c,d)            (DB_MSG("d_dictEntry")  db_status=d_dictEntry(a,b,c,d))
#define d_discon(a,b)                   (DB_MSG("d_discon")     db_status=d_discon(a,b))
#define d_disdel(a)                     (DB_MSG("d_disdel")     db_status=d_disdel(a))
#define d_errinfo(a,b,c)                (DB_MSG("d_errinfo")    db_status=d_errinfo(a,b,c))
#define d_fillnew(a,b,c)                (DB_MSG("d_fillnew")    db_status=d_fillnew(a,b,c))
#define d_fillnewat(a,b,c,d)            (DB_MSG("d_fillnewat")  db_status=d_fillnewat(a,b,c,d))
#define d_findco(a,b)                   (DB_MSG("d_findco")     db_status=d_findco(a,b))
#define d_findfm(a,b)                   (DB_MSG("d_findfm")     db_status=d_findfm(a,b))
#define d_findlm(a,b)                   (DB_MSG("d_findlm")     db_status=d_findlm(a,b))
#define d_findnm(a,b)                   (DB_MSG("d_findnm")     db_status=d_findnm(a,b))
#define d_findpm(a,b)                   (DB_MSG("d_findpm")     db_status=d_findpm(a,b))
#define d_getcat(a)                     (DB_MSG("d_getcat")     db_status=d_getcat(a))
#define d_getchgInfo(a,b)               (DB_MSG("d_getchgInfo") db_status=d_getchgInfo(a,b))
#define d_grplock(a,b,c)                (DB_MSG("d_grplock")    db_status=d_grplock(a,b,c))
#define d_iclose(a)                     (DB_MSG("d_iclose")     db_status=d_iclose(a))
#define d_initfile(a,b)                 (DB_MSG("d_initfile")   db_status=d_initfile(a,b))
#define d_initialize(a)                 (DB_MSG("d_initialize") db_status=d_initialize(a))
#define d_iopen(a,b,c,d)                (DB_MSG("d_iopen")      db_status=d_iopen(a,b,c,d))
#define d_ismember(a,b)                 (DB_MSG("d_ismember")   db_status=d_ismember(a,b))
#define d_isowner(a,b)                  (DB_MSG("d_isowner")    db_status=d_isowner(a,b))
#define d_keydel(a,b)                   (DB_MSG("d_keydel")     db_status=d_keydel(a,b))
#define d_keyexist(a,b)                 (DB_MSG("d_keyexist")   db_status=d_keyexist(a,b))
#define d_keyfind(a,b,c)                (DB_MSG("d_keyfind")    db_status=d_keyfind(a,b,c))
#define d_keyfrst(a,b)                  (DB_MSG("d_keyfrst")    db_status=d_keyfrst(a,b))
#define d_keylast(a,b)                  (DB_MSG("d_keylast")    db_status=d_keylast(a,b))
#define d_keynext(a,b)                  (DB_MSG("d_keynext")    db_status=d_keynext(a,b))
#define d_keyprev(a,b)                  (DB_MSG("d_keyprev")    db_status=d_keyprev(a,b))
#define d_keyread(a,b,c)                (DB_MSG("d_keyread")    db_status=d_keyread(a,b,c))
#define d_keystore(a,b)                 (DB_MSG("d_keystore")   db_status=d_keystore(a,b))
#define d_makenew(a,b)                  (DB_MSG("d_makenew")    db_status=d_makenew(a,b))
#define d_members(a,b,c)                (DB_MSG("d_members")    db_status=d_members(a,b,c))
#define d_open(a,b,c,d)                 (DB_MSG("d_open")       db_status=d_open(a,b,c,d))
#define d_opentask(a,b,c)               (DB_MSG("d_opentask")   db_status=d_opentask(a,b,c))
#define d_rdcurr(a,b,c,d)               (DB_MSG("d_rdcurr")     db_status=d_rdcurr(a,b,c,d))
#define d_rdlockmodes(a,b,c)            (DB_MSG("d_rdlockmodes") db_status=d_rdlockmodes(a,b,c))
#define d_recfrst(a,b)                  (DB_MSG("d_recfrst")    db_status=d_recfrst(a,b))
#define d_reclast(a,b)                  (DB_MSG("d_reclast")    db_status=d_reclast(a,b))
#define d_recnext(a)                    (DB_MSG("d_recnext")    db_status=d_recnext(a))
#define d_recprev(a)                    (DB_MSG("d_recprev")    db_status=d_recprev(a))
#define d_recread(a,b,c)                (DB_MSG("d_recread")    db_status=d_recread(a,b,c))
#define d_recset(a,b)                   (DB_MSG("d_recset")     db_status=d_recset(a,b))
#define d_recwrite(a,b,c)               (DB_MSG("d_recwrite")   db_status=d_recwrite(a,b,c))
#define d_release(a,b)                  (DB_MSG("d_release")    db_status=d_release(a,b))
#define d_rtfree(a,b)                   (DB_MSG("d_rtfree")     db_status=d_rtfree(a,b))
#define d_rtlock(a,b,c)                 (DB_MSG("d_rtlock")     db_status=d_rtlock(a,b,c))
#define d_setkey(a,b,c,d)               (DB_MSG("d_setkey")     db_status=d_setkey(a,b,c,d))
#define d_stfree(a,b)                   (DB_MSG("d_stfree")     db_status=d_stfree(a,b))
#define d_stlock(a,b,c)                 (DB_MSG("d_stlock")     db_status=d_stlock(a,b,c))
#define d_set_dberr(a,b,c)              (DB_MSG("d_set_dberr")  db_status=d_set_dberr(a,b,c))
#define d_setmm(a,b,c)                  (DB_MSG("d_setmm")      db_status=d_setmm(a,b,c))
#define d_setmo(a,b,c)                  (DB_MSG("d_setmo")      db_status=d_setmo(a,b,c))
#define d_setmr(a,b)                    (DB_MSG("d_setmr")      db_status=d_setmr(a,b))
#define d_setom(a,b,c)                  (DB_MSG("d_setom")      db_status=d_setom(a,b,c))
#define d_setoo(a,b,c)                  (DB_MSG("d_setoo")      db_status=d_setoo(a,b,c))
#define d_setor(a,b)                    (DB_MSG("d_setor")      db_status=d_setor(a,b))
#define d_setrm(a,b)                    (DB_MSG("d_setrm")      db_status=d_setrm(a,b))
#define d_setro(a,b)                    (DB_MSG("d_setro")      db_status=d_setro(a,b))
#define d_stampverifyback(a,b,c)        (DB_MSG("d_stampverifyback") db_status=d_stampverifyback(a,b,c))
#define d_timeout(a,b)                  (DB_MSG("d_timeout")    db_status=d_timeout(a,b))
#define d_trabort(a)                    (DB_MSG("d_trabort")    db_status=d_trabort(a))
#define d_trbegin(a,b)                  (DB_MSG("d_trbegin")    db_status=d_trbegin(a,b))
#define d_trend(a)                      (DB_MSG("d_trend")      db_status=d_trend(a))
#define d_trmark(a,b)                   (DB_MSG("d_trmark")     db_status=d_trmark(a,b))
#define d_trrollback(a,b)               (DB_MSG("d_trrollback") db_status=d_trrollback(a,b))
#define d_wrcurr(a,b,c)                 (DB_MSG("d_wrcurr")     db_status=d_wrcurr(a,b,c))

#endif
/*
$Header:   P:/PAT/INCLUDE/VCS/DBSTATUS.H_V   1.6   18 Apr 1994 12:09:52   RICHM  $
*/

