g+
g+ Communities
Argonne National Laboratory

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  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
<== Date ==> <== Thread ==>

Subject: RE: iocshCmd, redirection, and function pointers
From: "Kim, Kukhee" <khkim@slac.stanford.edu>
To: EPICS Tech Talk <tech-talk@aps.anl.gov>
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: khkim@SLAC.Stanford.EDU
Phone: (650)926-4912


-----Original Message-----
From: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] 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
wenorum@lbl.gov




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 
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 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·