EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: iocshCmd, redirection, and function pointers
From: "Kim, Kukhee" <[email protected]>
To: EPICS Tech Talk <[email protected]>
Date: Wed, 14 Mar 2012 17:14:40 -0700
Hi Eric;

The epicsStdioRedirect.h itself already includes the epicsStdio.h file.
Probably, we should merge those two files to one file.

Thank you.
Best regards,
Kukhee
--------------------------------------------
Kukhee Kim
SLAC National Accelerator Laboratory
2575 Sand Hill Rd, MS 64
Menlo Park, CA 94025
Email: [email protected]
Phone: (650)926-4912


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Eric Norum
Sent: Wednesday, March 14, 2012 8:39 AM
To: EPICS Tech Talk
Subject: Re: iocshCmd, redirection, and function pointers

On Mar 14, 2012, at 3:12 AM, Dirk Zimoch wrote:

> Eric Norum wrote:
>> For I/O redirection to work a source file must include epicsStdioRedirect.h.  
> 
> This sucks.

Perhaps, but it does work across all supported platforms.

> 
> It this is the case, I would say that there is something wrong with the EPICS redirection. Code should not need to know about its "environment". This contradicts any good programming practice.

When this was originally implemented we felt it should be optional.  Perhaps now after 10 years in the field we should just add
#include <epicsStdioRedirect.h>
in epicsStdio.h.

-- 
Eric Norum
[email protected]




Replies:
Re: iocshCmd, redirection, and function pointers Ernest L. Williams Jr.
Re: iocshCmd, redirection, and function pointers Ernest L. Williams Jr.
References:
iocshCmd, redirection, and function pointers Allison, Stephanie
Re: iocshCmd, redirection, and function pointers Eric Norum
Re: iocshCmd, redirection, and function pointers Dirk Zimoch
Re: iocshCmd, redirection, and function pointers Eric Norum

Navigate by Date:
Prev: ENV Variables in EDM Szalata, Zenon M.
Next: Re: Invitation to test cothread.catools release candidate Matt Newville
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: iocshCmd, redirection, and function pointers Eric Norum
Next: Re: iocshCmd, redirection, and function pointers Ernest L. Williams Jr.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024