From bedbab8965dd63fe43b0ae03a746767056670be6 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Fri, 8 Mar 2002 00:16:27 +0000 Subject: [PATCH] check for floating point in correct place --- src/ca/vxWorks_depen.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/ca/vxWorks_depen.c b/src/ca/vxWorks_depen.c index f86f57f81..a8bfd8b89 100644 --- a/src/ca/vxWorks_depen.c +++ b/src/ca/vxWorks_depen.c @@ -29,6 +29,9 @@ * Modification Log: * ----------------- * $Log$ + * Revision 1.39.4.3 2001/03/22 20:58:43 jhill + * fixed task names with spaces + * * Revision 1.39.4.2 1999/09/02 21:16:43 jhill * fixed missing paramter to checkConnWatchDogs() func * @@ -276,8 +279,6 @@ LOCAL int cac_add_task_variable (struct CA_STATIC *ca_temp) static char ca_installed; TVIU *ptviu; int status; - - ca_check_for_fp(); # ifdef DEBUG ca_printf("CAC: adding task variable\n"); @@ -341,6 +342,11 @@ LOCAL int cac_add_task_variable (struct CA_STATIC *ca_temp) ca_static = ca_temp; ellAdd(&ca_temp->ca_taskVarList, &ptviu->node); + /* + * care is taken to call this only after ca_static has a valid value + */ + ca_check_for_fp(); + return ECA_NORMAL; } @@ -711,8 +717,6 @@ int ca_import (int tid) struct CA_STATIC *pcas; TVIU *ptviu; - ca_check_for_fp(); - /* * just return success if they have already done * a ca import for this task @@ -755,6 +759,11 @@ int ca_import (int tid) ellAdd(&ca_static->ca_taskVarList, &ptviu->node); UNLOCK; + /* + * care is taken to call this only after ca_static has a valid value + */ + ca_check_for_fp(); + return ECA_NORMAL; }