This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Using the tree.


> >      It is for the C front end. I had some doubts whether this
> will work or
> > not - but I supposed that since it doesn't crash, it should
> work. Besides, I
> > can find out the parameters, or the return type for my
> function, but there
> > seems to be nothing there about the local variables.
>
> The problem is that getdecls returns the declarations *of the current
> binding level*. That is, when a binding level is closed, the decls
> list is lost. At the end of the function, only the binding level of
> the parameters is still open.

    Yes, this looks like the explanation. But what *exactly* does 'a binding
level is closed' mean? Is the info still there (I think it should) ? Do I
have another way to get it? How?

   Virgil.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]