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: "Liu, Gongfa" <[email protected]>
To: Andrew Johnson <[email protected]>
Cc: EPICS core-talk <[email protected]>
Date: Wed, 21 Nov 2007 10:06:47 +0100
Hi, Andrew,

It's OK now. Thank you very much!

Gongfa

Andrew Johnson wrote:
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

--
----------------------------------------------------------
Gongfa Liu                         MKS-2, DESY
phone:  +49-40-8998-1642           Notkestr. 85
fax:    +49-40-8998-4388           22607 Hamburg
e-mail: [email protected]         Germany
----------------------------------------------------------

Replies:
Re: Redundancy Patch: iocsh Andrew Johnson
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
Re: Redundancy Patch: iocsh Andrew Johnson

Navigate by Date:
Prev: Re: Redundancy Patch: iocsh Andrew Johnson
Next: Re: Redundancy Patch: db 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 Andrew Johnson
Next: Re: Redundancy Patch: iocsh Andrew Johnson
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 ·