Hmm...
I guess that's o.k.
It kind of feels like abuse of the preprocessor -- I know that epicsStdioRedirect.h is already somewhat guilty of this but this seems one step even farther.
Your call.
On Dec 22, 2009, at 9:28 AM, Andrew Johnson wrote:
> On Tuesday 22 December 2009 11:01:50 Eric Norum wrote:
>> The fix is simple. Andrew, please change this on both the trunk and the
>> branch.
>>
>> Change the 'puts' on line 264 of src/db/dbTest.c to a printf:
>> if (epicsStrGlobMatch(pname, pmask)) printf("%s\n", pname);
>
> Following the principle of least surprise (since that's how I broke this in
> the first place), how about we add this to libCom/osi/epicsStdioRedirect.h
> instead?
>
> #ifdef puts
> # undef puts
> #endif /* puts */
> #define puts(str) epicsStdoutPrintf("%s\n", str)
>
> - Andrew
> --
> The best FOSS code is written to be read by other humans -- Harald Welte
>
--
Eric Norum
[email protected]
- References:
- [BUG?] dbgrep *O > /tmp/toto Emmanuel Mayssat
- Re: [BUG?] dbgrep *O > /tmp/toto Ralph Lange
- Re: [BUG?] dbgrep *O > /tmp/toto Eric Norum
- Re: [BUG?] dbgrep *O > /tmp/toto Andrew Johnson
- Navigate by Date:
- Prev:
Re: [BUG?] dbgrep *O > /tmp/toto Andrew Johnson
- Next:
Epics in Pen drive Aditya Mandal
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
<2009>
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: [BUG?] dbgrep *O > /tmp/toto Andrew Johnson
- Next:
Epics in Pen drive Aditya Mandal
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
<2009>
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|