Made changes for ansi c
This commit is contained in:
@@ -94,6 +94,7 @@
|
||||
#include <errMdef.h>
|
||||
#include <recSup.h>
|
||||
#include <special.h>
|
||||
#include <asLib.h>
|
||||
|
||||
extern struct dbBase *pdbBase;
|
||||
extern long lset_stack_not_empty;
|
||||
@@ -679,7 +680,7 @@ long dbFastLinkPut(
|
||||
}
|
||||
}
|
||||
else if (special == SPC_AS) {
|
||||
asChangeGroup(&pdest->asp, pdest->asg);
|
||||
asChangeGroup((ASMEMBERPVT *)&pdest->asp, pdest->asg);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -87,6 +87,7 @@
|
||||
#include <errMdef.h>
|
||||
#include <recSup.h>
|
||||
#include <special.h>
|
||||
#include <asLib.h>
|
||||
|
||||
extern struct dbBase *pdbBase;
|
||||
|
||||
@@ -5835,7 +5836,7 @@ long dbPut(
|
||||
if(special==SPC_SCAN) {
|
||||
scanAdd(precord);
|
||||
} else if(special==SPC_AS) {
|
||||
asChangeGroup(&precord->asp,precord->asg);
|
||||
asChangeGroup((ASMEMBERPVT *)&precord->asp,precord->asg);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
#include <string.h>
|
||||
#include <taskLib.h>
|
||||
#include <semLib.h>
|
||||
#include <sysLib.h>
|
||||
|
||||
#include <dbDefs.h>
|
||||
#include <fast_lock.h>
|
||||
|
||||
@@ -1761,4 +1761,56 @@ char *record_name;
|
||||
|
||||
return(0);
|
||||
}
|
||||
|
||||
int dbllsdblinks(int lset)
|
||||
{
|
||||
int i,link;
|
||||
struct recLoc *precLoc;
|
||||
struct recDes *precDes;
|
||||
struct recTypDes *precTypDes;
|
||||
struct recHeader *precHeader;
|
||||
RECNODE *precNode;
|
||||
struct fldDes *pfldDes;
|
||||
struct dbCommon *precord;
|
||||
struct link *plink;
|
||||
|
||||
if(!(precHeader = pdbBase->precHeader)) return(-1);
|
||||
if(!(precDes = pdbBase->precDes)) return(-1);
|
||||
for(i=0; i< (precHeader->number); i++) {
|
||||
if(!(precLoc = precHeader->papRecLoc[i]))continue;
|
||||
if(!precLoc->preclist) continue;
|
||||
precTypDes = precDes->papRecTypDes[i];
|
||||
for(precNode=(RECNODE *)ellFirst(precLoc->preclist);
|
||||
precNode; precNode = (RECNODE *)ellNext(&precNode->node)) {
|
||||
precord = precNode->precord;
|
||||
/* If NAME is null then skip this record*/
|
||||
if(!(precord->name[0])) continue;
|
||||
if(precord->lset != lset) continue;
|
||||
printf("%s\n",precord->name);
|
||||
for(link=0; (link<precTypDes->no_links) ; link++) {
|
||||
struct dbAddr *pdbAddr;
|
||||
|
||||
pfldDes = precTypDes->papFldDes[precTypDes->link_ind[link]];
|
||||
/*
|
||||
* Find link structure, which is at an offset in the record
|
||||
*/
|
||||
plink = (struct link *)((char *)precord + pfldDes->offset);
|
||||
/* Ignore link if type is constant, channel access, or hardware specific */
|
||||
if(plink->type != DB_LINK) continue;
|
||||
pdbAddr = (struct dbAddr *)(plink->value.db_link.pdbAddr);
|
||||
if(pfldDes->field_type==DBF_INLINK) {
|
||||
printf("\t INLINK");
|
||||
} else if(pfldDes->field_type==DBF_OUTLINK) {
|
||||
printf("\tOUTLINK");
|
||||
} else if(pfldDes->field_type==DBF_FWDLINK) {
|
||||
printf("\tFWDLINK");
|
||||
}
|
||||
printf(" %s %s",
|
||||
((plink->value.db_link.process_passive)?" PP":"NPP"),
|
||||
((plink->value.db_link.maximize_sevr)?" MS":"NMS"));
|
||||
printf(" %s\n",pdbAddr->precord->name);
|
||||
}
|
||||
}
|
||||
}
|
||||
return(0);
|
||||
}
|
||||
|
||||
@@ -703,7 +703,7 @@ DbRecDes(fp, fflag)
|
||||
for (j = 0; j < endNumJ; j++) {
|
||||
printf("%3d %4.4s",
|
||||
precDes->papRecTypDes[begNumI]->sortFldInd[j],
|
||||
&precDes->papRecTypDes[begNumI]->sortFldName[j]);
|
||||
(char *)&precDes->papRecTypDes[begNumI]->sortFldName[j]);
|
||||
if (!((j + 1) % 8))
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.12 1995/08/17 20:35:09 jbk
|
||||
* fixed all the -pendantic errors (pain)
|
||||
*
|
||||
* Revision 1.11 1995/08/17 19:43:04 jbk
|
||||
* Completed the accurate time stamp change. event number 0 is current time
|
||||
* updated at 60HZ, event -1 is the best time that can be provided (1000Hz in
|
||||
@@ -188,7 +191,7 @@ static long (*TSdriverInit)();
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
long TSinit(); /* called by iocInit currently */
|
||||
long TSinit(void); /* called by iocInit currently */
|
||||
long TSreport(); /* callable from vxWorks shell */
|
||||
|
||||
/* test functions */
|
||||
@@ -427,7 +430,7 @@ long TSgetTimeStamp(int event_number,struct timespec* sp)
|
||||
/*
|
||||
TSinit() - initialize the driver, determine mode.
|
||||
*/
|
||||
long TSinit()
|
||||
long TSinit(void)
|
||||
{
|
||||
SYM_TYPE stype;
|
||||
char tz[100],min_west[20];
|
||||
|
||||
@@ -98,6 +98,8 @@
|
||||
#include <envDefs.h>
|
||||
#include <dbStaticLib.h>
|
||||
#include <initHooks.h>
|
||||
#include <drvTS.h>
|
||||
#include <asLib.h>
|
||||
|
||||
/*This module will declare and initilize module_type variables*/
|
||||
#define MODULE_TYPES_INIT 1
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
#include <stdio.h>
|
||||
#include <ellLib.h>
|
||||
#include <taskLib.h>
|
||||
#include <sysLib.h>
|
||||
|
||||
#include <dbDefs.h>
|
||||
#include <errMdef.h>
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
|
||||
/*
|
||||
* $Log$
|
||||
* Revision 1.12 1995/08/17 20:35:09 jbk
|
||||
* fixed all the -pendantic errors (pain)
|
||||
*
|
||||
* Revision 1.11 1995/08/17 19:43:04 jbk
|
||||
* Completed the accurate time stamp change. event number 0 is current time
|
||||
* updated at 60HZ, event -1 is the best time that can be provided (1000Hz in
|
||||
@@ -188,7 +191,7 @@ static long (*TSdriverInit)();
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
long TSinit(); /* called by iocInit currently */
|
||||
long TSinit(void); /* called by iocInit currently */
|
||||
long TSreport(); /* callable from vxWorks shell */
|
||||
|
||||
/* test functions */
|
||||
@@ -427,7 +430,7 @@ long TSgetTimeStamp(int event_number,struct timespec* sp)
|
||||
/*
|
||||
TSinit() - initialize the driver, determine mode.
|
||||
*/
|
||||
long TSinit()
|
||||
long TSinit(void)
|
||||
{
|
||||
SYM_TYPE stype;
|
||||
char tz[100],min_west[20];
|
||||
|
||||
Reference in New Issue
Block a user