EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Redundancy Patch: iocsh
From: Andrew Johnson <[email protected]>
To: "Liu, Gongfa" <[email protected]>
Cc: EPICS core-talk <[email protected]>
Date: Tue, 20 Nov 2007 17:33:53 -0600
Hi Gongfa,

Ok, lets try moving those definitions to file scope since that's where all the others are found. As before, the following patch is against the original R3.14.9 file:

Index: iocsh.cpp
===================================================================
RCS file: /net/phoebus/epicsmgr/cvsroot/epics/base/src/iocsh/Attic/iocsh.cpp,v
retrieving revision 1.9.2.35
diff -u -b -r1.9.2.35 iocsh.cpp
--- iocsh.cpp   12 Dec 2006 21:04:19 -0000      1.9.2.35
+++ iocsh.cpp   20 Nov 2007 23:28:31 -0000
@@ -142,15 +142,16 @@
 /*
  * Register variable(s)
  */
+static const iocshArg varCmdArg0 = { "[variable",iocshArgString};
+static const iocshArg varCmdArg1 = { "[value]]",iocshArgString};
+static const iocshArg *varCmdArgs[2] = {&varCmdArg0, &varCmdArg1};
+static const iocshFuncDef varFuncDef = {"var",2,varCmdArgs};
+
 void epicsShareAPI iocshRegisterVariable (const iocshVarDef *piocshVarDef)
 {
     struct iocshVariable *l, *p, *n;
     int i;
     int found;
-    static const iocshArg varArg0 = { "[variable",iocshArgString};
-    static const iocshArg varArg1 = { "[value]]",iocshArgString};
-    static const iocshArg *varArgs[2] = {&varArg0, &varArg1};
-    static const iocshFuncDef varFuncDef = {"var",2,varArgs};

     iocshTableLock ();
     while ((piocshVarDef != NULL)


Along with most of the rest of the US population, I will be on vacation for the remainder of this week.

- Andrew
--
When a distinguished but elderly scientist states that something is
possible, he is almost certainly right.  When he states that something
is impossible, he is very probably wrong.  -- Arthur C. Clarke

Replies:
Re: Redundancy Patch: iocsh Liu, Gongfa
References:
Redundancy Patch: iocsh Andrew Johnson
Re: Redundancy Patch: iocsh Andrew Johnson
Re: Redundancy Patch: iocsh Liu, Gongfa
Re: Redundancy Patch: iocsh Andrew Johnson
Re: Redundancy Patch: iocsh Liu, Gongfa
Re: Redundancy Patch: iocsh Andrew Johnson
Re: Redundancy Patch: iocsh Liu, Gongfa

Navigate by Date:
Prev: Re: Redundancy Patch: rsrv Liu, Gongfa
Next: Re: Redundancy Patch: iocsh Liu, Gongfa
Index: 2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Redundancy Patch: iocsh Liu, Gongfa
Next: Re: Redundancy Patch: iocsh Liu, Gongfa
Index: 2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Feb 2012 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·