![]() |
|
Declaration object for variables. More...
#include <cvar.h>
Public Member Functions | |
| CVar (CSymbol *symbol, Coord_t *aLoc, CDataType *dataType, int undefined=FALSE) | |
| Create a register declaration. | |
| virtual CDecl * | Clone (CObstack *heap) |
| Create a clone of this declaration. | |
| int | GetUndefined (void) |
| Get undefined attribute. | |
| void | SetUndefined (int value) |
| Set undefined attribute. | |
| virtual void | Dump (FILE *f) |
| Dump register info to file. | |
Protected Member Functions | |
| void | Copy (CObstack *heap, CVar &var) |
Declaration object for variables.
| CVar::CVar | ( | CSymbol * | symbol, |
| Coord_t * | aLoc, | ||
| CDataType * | dataType, | ||
| int | undefined = FALSE |
||
| ) |
Create a register declaration.
| symbol | declaration symbol. |
| aLoc | file coordinates. |
| dataType | variable data type. |
| undefined | non-zero if register is undefined in source. |
| virtual CDecl* CVar::Clone | ( | CObstack * | heap | ) | [virtual] |
Create a clone of this declaration.
| heap | heap to use for allocation. |
Implements CDecl.
| void CVar::Copy | ( | CObstack * | heap, |
| CVar & | var | ||
| ) | [protected] |
| virtual void CVar::Dump | ( | FILE * | f | ) | [virtual] |
| int CVar::GetUndefined | ( | void | ) | [inline] |
Get undefined attribute.
| void CVar::SetUndefined | ( | int | value | ) | [inline] |
Set undefined attribute.
| value | set undefined attribute. |
1.7.6.1