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: Eric Norum <norume@aps.anl.gov>
To: "tech-talk@aps.anl.gov Tech-Talk" <tech-talk@aps.anl.gov>
Date: Tue, 4 Apr 2006 12:41:04 -0500
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.

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.



-- Eric Norum <norume@aps.anl.gov> Advanced Photon Source Argonne National Laboratory (630) 252-4793



Replies:
Re: snc/seq enhancements ... local-variable access Benjamin Franksen
References:
snc/seq enhancements ... local-variable access Laznovsky, Michael
Re: snc/seq enhancements ... local-variable access J. Lewis Muir
Re: snc/seq enhancements ... local-variable access Benjamin Franksen

Navigate by Date:
Prev: Re: ld error: Module contains undefined symbol(s) and may be unusable. Dirk Zimoch
Next: RE: snc/seq enhancements ... local-variable access Chestnut, Ronald P.
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 Benjamin Franksen
Next: Re: snc/seq enhancements ... local-variable access Benjamin Franksen
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 ·