void WriteImports (void)
/* Write the imports list to the object file */
{
- SymEntry* S;
+ SymEntry* S;
/* Tell the object file module that we're about to start the imports */
ObjStartImports ();
/* Get the expression bits and the value */
long ConstVal;
- unsigned ExprMask = GetSymInfoFlags (S, &ConstVal);
+ unsigned SymFlags = GetSymInfoFlags (S, &ConstVal);
/* Check if this symbol has a size. If so, remember it in the
* flags.
long Size;
SymEntry* SizeSym = FindSizeOfSymbol (S);
if (SizeSym != 0 && SymIsConst (SizeSym, &Size)) {
- ExprMask |= SYM_SIZE;
+ SymFlags |= SYM_SIZE;
}
/* Count the number of ConDes types */
for (Type = 0; Type < CD_TYPE_COUNT; ++Type) {
if (S->ConDesPrio[Type] != CD_PRIO_NONE) {
- SYM_INC_CONDES_COUNT (ExprMask);
+ SYM_INC_CONDES_COUNT (SymFlags);
}
}
/* Write the type and the export size */
- ObjWriteVar (ExprMask);
+ ObjWriteVar (SymFlags);
ObjWrite8 (S->ExportSize);
/* Write any ConDes declarations */
- if (SYM_GET_CONDES_COUNT (ExprMask) > 0) {
+ if (SYM_GET_CONDES_COUNT (SymFlags) > 0) {
for (Type = 0; Type < CD_TYPE_COUNT; ++Type) {
unsigned char Prio = S->ConDesPrio[Type];
if (Prio != CD_PRIO_NONE) {
ObjWriteVar (S->Name);
/* Write the value */
- if (SYM_IS_CONST (ExprMask)) {
+ if (SYM_IS_CONST (SymFlags)) {
/* Constant value */
ObjWrite32 (ConstVal);
} else {
}
/* If the symbol has a size, write it to the file */
- if (SYM_HAS_SIZE (ExprMask)) {
+ if (SYM_HAS_SIZE (SymFlags)) {
ObjWriteVar (Size);
}
/* Get the expression bits and the value */
long ConstVal;
- unsigned ExprMask = GetSymInfoFlags (S, &ConstVal);
+ unsigned SymFlags = GetSymInfoFlags (S, &ConstVal);
/* Check if this symbol has a size. If so, remember it in the
* flags.
long Size;
SymEntry* SizeSym = FindSizeOfSymbol (S);
if (SizeSym != 0 && SymIsConst (SizeSym, &Size)) {
- ExprMask |= SYM_SIZE;
+ SymFlags |= SYM_SIZE;
}
/* Write the type */
- ObjWriteVar (ExprMask);
+ ObjWriteVar (SymFlags);
/* Write the address size */
ObjWrite8 (S->AddrSize);
/* Write the id of the parent. For normal symbols, this is a
* scope (symbol table), for cheap locals, it's a symbol.
*/
- if (SYM_IS_STD (ExprMask)) {
+ if (SYM_IS_STD (SymFlags)) {
ObjWriteVar (S->Sym.Tab->Id);
} else {
ObjWriteVar (S->Sym.Entry->DebugSymId);
ObjWriteVar (S->Name);
/* Write the value */
- if (SYM_IS_CONST (ExprMask)) {
+ if (SYM_IS_CONST (SymFlags)) {
/* Constant value */
ObjWrite32 (ConstVal);
} else {
}
/* If the symbol has a size, write it to the file */
- if (SYM_HAS_SIZE (ExprMask)) {
+ if (SYM_HAS_SIZE (SymFlags)) {
ObjWriteVar (Size);
}