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]
Other format: [Raw text]

Getting a tree node for a field of a variable


Hi,

Please, would you suggest me any clues on how to get a tree node for a
field of a variable within the AST.

Let's say that somewhere I declared:
MyStruct *var;

What I want to do is to get a tree node of a field within "var", i.e.
"var->field"

What I want actually is to modify "var->field", i.e.
var->field = 10;

but I couldn't find any useful functions to use for doing that.

Any suggestions are welcome. Thanks a lot.

--
Ferad Zyulkyarov


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