Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: Re: snc/seq enhancements ... local-variable access
From: Benjamin Franksen <benjamin.franksen@bessy.de>
To: tech-talk@aps.anl.gov
Date: Tue, 4 Apr 2006 21:05:33 +0200
On Tuesday 04 April 2006 19:41, Eric Norum wrote:
> I think that it would be good enough to simply remove the warning
> message.  If the token in question is in fact undefined the C
> compiler will report this.   Since snc emits appropriate '#line'
> directives the resulting error message will refer to the correct
> source line.

Yes, that would be good.

> On Apr 4, 2006, at 11:46 AM, Benjamin Franksen wrote:
> > On Tuesday 04 April 2006 17:43, J. Lewis Muir wrote:
> >> A feature I would like is for snc to not generate warning messages
> >> for variables that are defined in other included source files. For
> >> example:
> >>
> >>    Warning:  variable "asynSuccess" is used but not declared.
> >>
> >> I get this message at compile time if I'm using the asyn module
> >> and want to check the return status of an asyn function call from
> >> the SNL program. asynSuccess is defined as an asynStatus enum
> >> value in asynDriver.h which I have included in my SNL program.
> >>
> >> These warnings are common when defines or enums or whatever are
> >> defined in other files and one wants to reference them from the
> >> SNL program.
> >
> > This is probably going to be difficult. It would mean snc must
> > parse all
> > the header files that are included. However, snc does not contain a
> > full-flegded C parser: it recognizes only a small subset of C.
> > Particularly, it cannot (IIRC) parse any C declarations.

Ben

References:
snc/seq enhancements ... local-variable access Laznovsky, Michael
Re: snc/seq enhancements ... local-variable access Benjamin Franksen
Re: snc/seq enhancements ... local-variable access Eric Norum

Navigate by Date:
Prev: RE: snc/seq enhancements ... local-variable access Chestnut, Ronald P.
Next: EpicsHostArch.pl for Intel OS X machines? Eric Norum
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
Navigate by Thread:
Prev: Re: snc/seq enhancements ... local-variable access Eric Norum
Next: RE: snc/seq enhancements ... local-variable access Dalesio, Leo `Bob`
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·