Files called from SICServer should now compile under linux
This commit is contained in:
@@ -13,7 +13,11 @@ pTecsClient TeccInit(char *startcmd, int port) {
|
||||
CocConn *conn;
|
||||
|
||||
NEW(conn);
|
||||
ERR_I(CocInitClient(conn, "", port, "#rwacs", 0, startcmd));
|
||||
if (startcmd[0]=='#') {
|
||||
ERR_I(CocInitClient(conn, startcmd+1, port, "#rwacs", 0, ""));
|
||||
} else {
|
||||
ERR_I(CocInitClient(conn, "", port, "#rwacs", 0, startcmd));
|
||||
}
|
||||
CocDefFlt(tempC, CocRD);
|
||||
CocDefFlt(tempP, CocRD);
|
||||
CocDefFlt(tempX, CocRD);
|
||||
@@ -115,7 +119,7 @@ int TeccQuitServer(pTecsClient conn) {
|
||||
void TeccClose(pTecsClient conn) {
|
||||
if (conn!=NULL) {
|
||||
CocCloseClient(conn);
|
||||
my_free(conn);
|
||||
FREE(conn);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -126,6 +130,10 @@ void TeccClose(pTecsClient conn) {
|
||||
|
||||
*/
|
||||
|
||||
#ifdef F_CHAR
|
||||
/* compile only when fortran c interface stuff is defined */
|
||||
|
||||
|
||||
#ifdef __VMS
|
||||
#define tecs_get_par_ tecs_get_par
|
||||
#define tecs_set_par_ tecs_set_par
|
||||
@@ -211,3 +219,4 @@ int tecs_quit_server_(void) {
|
||||
return(TeccQuitServer(conn));
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user