Linked epics statically
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
--------------------------------------------------------------------------*/
|
||||
#ifndef COMMANDLOG
|
||||
#define COMMANDLOG
|
||||
void WriteToCommandLog(char *prompt, char *pText);
|
||||
void WriteToCommandLog(const char *prompt, const char *pText);
|
||||
void WriteToCommandLogId(char *prompt, int id, char *text);
|
||||
void WriteToCommandLogCmd(int id, char *text);
|
||||
int CompactCommandLog(void);
|
||||
|
@ -71,7 +71,7 @@ typedef struct __hipadaba {
|
||||
struct __hdbcallback *callBackChain;
|
||||
char *name;
|
||||
hdbValue value;
|
||||
int protected;
|
||||
int iprotected;
|
||||
pStringDict properties;
|
||||
} Hdb, *pHdb;
|
||||
/*-------------- return values for callback functions -------------------------*/
|
||||
|
2
make_gen
2
make_gen
@ -69,7 +69,7 @@ all: libmat libhlib libtecsl libpsi SICServer
|
||||
full: purge all
|
||||
|
||||
SICServer: $(OBJ) $(SUBLIBS)
|
||||
$(CC) $(DBG) -o SICServer $(OBJ) $(LIBS)
|
||||
g++ $(DBG) -o SICServer $(OBJ) $(LIBS)
|
||||
|
||||
matrix/libmatrix.a: libmat
|
||||
|
||||
|
@ -12,11 +12,14 @@ NI= -DHAVENI
|
||||
NIOBJ= nigpib.o
|
||||
NILIB=$(SINQDIR)/sl6/lib/cib.o
|
||||
|
||||
EPICSLIBS=-L$(SINQDIR)/sl6/lib/linux-x86 -lezca -lca -lCom
|
||||
EPICSDIR=$(SINQDIR)/sl6/lib/linux-x86
|
||||
EPICSLIBS=$(EPICSDIR)/libezca.a $(EPICSDIR)/libca.a $(EPICSDIR)/libCom.a -lreadline -lhistory
|
||||
#EPICSLIBS=-L$(EPICSDIR) -lezca -lca -lCom
|
||||
|
||||
include sllinux_def
|
||||
|
||||
CC = gcc
|
||||
|
||||
CFLAGS = -I$(HDFROOT)/include -DNXXML -DHDF5 $(NI) \
|
||||
-I$(SICSROOT)/sicspsi/hardsup -I$(SICSROOT) -I. -MMD \
|
||||
-Werror -DCYGNUS -DNONINTF $(DBG) $(DFORTIFY) \
|
||||
|
@ -67,7 +67,7 @@ struct timeval lastclose = { -1, 0 };
|
||||
/*-----------------------------------------------------------------------
|
||||
Redefine this function if another means of error reporting is necessary.
|
||||
*/
|
||||
static void NetError(char *pText)
|
||||
static void NetError(const char pText[])
|
||||
{
|
||||
/*
|
||||
SICSLogWrite(pText,eError);
|
||||
@ -607,7 +607,7 @@ int NETReadTillTerm(mkChannel * self, long timeout,
|
||||
gettimeofday(&start, NULL);
|
||||
|
||||
if (pTerm == NULL)
|
||||
pTerm = "";
|
||||
pTerm = strdup("");
|
||||
|
||||
length = strlen(pTerm);
|
||||
memset(pBuffer, 0, iBufLen);
|
||||
@ -842,8 +842,9 @@ mkChannel *UDPOpen(int iPort)
|
||||
i = 1;
|
||||
setsockopt(pRes->sockid, SOL_SOCKET, SO_REUSEADDR, &i, sizeof(int));
|
||||
|
||||
/*
|
||||
assert(pRes->sockid < (sizeof(long) * 8));
|
||||
/* if this fails the masks for select will be to
|
||||
if this fails the masks for select will be to
|
||||
short.
|
||||
*/
|
||||
|
||||
|
@ -315,7 +315,7 @@ static pHdb CreateMotorAdapter(char *name, pMotor pMot)
|
||||
DeleteHipadabaNode(result, NULL);
|
||||
return NULL;
|
||||
}
|
||||
result->protected = 1;
|
||||
result->iprotected = 1;
|
||||
|
||||
return result;
|
||||
}
|
||||
@ -499,7 +499,7 @@ static pHdb MakeSicsVarNode(pSicsVariable pVar, char *name)
|
||||
snprintf(command, 1023, "%s ", pVar->name);
|
||||
SetHdbProperty(node, "sicscommand", command);
|
||||
|
||||
node->protected = 1;
|
||||
node->iprotected = 1;
|
||||
return node;
|
||||
}
|
||||
|
||||
|
@ -2342,7 +2342,7 @@ static int isNodeProtected(pHdb node)
|
||||
{
|
||||
pHdb current = NULL;
|
||||
|
||||
if (node->protected == 1) {
|
||||
if (node->iprotected == 1) {
|
||||
return 1;
|
||||
}
|
||||
current = node->child;
|
||||
|
Reference in New Issue
Block a user