const-ify dbLink arrays
external code really should never be modifying pamaplinkType[]
This commit is contained in:
@@ -869,7 +869,7 @@ nosplit:
|
||||
}
|
||||
}
|
||||
|
||||
static char *msstring[4]={"NMS","MS","MSI","MSS"};
|
||||
static const char *msstring[4]={"NMS","MS","MSI","MSS"};
|
||||
|
||||
long dblsr(char *recordname,int level)
|
||||
{
|
||||
|
||||
@@ -57,10 +57,10 @@ static char *pNullString = "";
|
||||
*/
|
||||
STATIC_ASSERT(messagesize >= 21);
|
||||
|
||||
static char *ppstring[5]={" NPP"," PP"," CA"," CP"," CPP"};
|
||||
static char *msstring[4]={" NMS"," MS"," MSI"," MSS"};
|
||||
static const char *ppstring[5]={" NPP"," PP"," CA"," CP"," CPP"};
|
||||
static const char *msstring[4]={" NMS"," MS"," MSI"," MSS"};
|
||||
|
||||
maplinkType pamaplinkType[LINK_NTYPES] = {
|
||||
const maplinkType pamaplinkType[LINK_NTYPES] = {
|
||||
{"CONSTANT",CONSTANT},
|
||||
{"PV_LINK",PV_LINK},
|
||||
{"VME_IO",VME_IO},
|
||||
|
||||
@@ -43,11 +43,11 @@ extern "C" {
|
||||
#define VXI_IO 15
|
||||
#define LINK_NTYPES 16
|
||||
typedef struct maplinkType {
|
||||
char *strvalue;
|
||||
const char *strvalue;
|
||||
int value;
|
||||
} maplinkType;
|
||||
|
||||
DBCORE_API extern maplinkType pamaplinkType[];
|
||||
DBCORE_API extern const maplinkType pamaplinkType[LINK_NTYPES];
|
||||
|
||||
#define VXIDYNAMIC 0
|
||||
#define VXISTATIC 1
|
||||
|
||||
Reference in New Issue
Block a user