Any software to determine scopes of variables within C files?
Steven A. Carrow
carrow at itd.nrl.navy.mil
Sat Apr 27 04:44:26 AEST 1991
I am currently trying to modify CLIPS for "pseudo-reentrant" use; that
is, I want to initialize CLLIPS, save all pertinent data structures, and later
re-invoke CLIPS with the saved structures, so inference can continue from the
previous stopping point. It seems to me that in addition to the structures
that CLIPS allocates, I should save all global variables and all static
variables, so I need to know which variables those are. What I am looking for
is a routine that will take C files, list all variables, and tell me what
scope they are. I can (and will, if necessary) grind through the code myself,
but I'd rather use a tool if one exists. Thanks.
Steve
PS If this has been discussed before, please give references. I just killed
~450 articles if they did not contain "scope", "Scope", or "SCOPE", but it may
have been listed differently.
--
*****************************************************************************
* Steven A Carrow * ARPA: carrow at itd.nrl.navy.mil *
* Code 5570 * UUCP: {backbone}!uunet! *
* Naval Research Lab * nrl-css!carrow (I think) *
* Washington, DC 20375 * Disclaimer: I can barely speak for *
* (202) 767-9125 * myself, much less the government. *
*****************************************************************************
More information about the Comp.lang.c
mailing list