Renamed variables for better readability.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5181 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
11be5d6261
commit
1917591b94
1 changed files with 14 additions and 14 deletions
|
@ -675,7 +675,7 @@ void SymDump (FILE* F)
|
||||||
void WriteImports (void)
|
void WriteImports (void)
|
||||||
/* Write the imports list to the object file */
|
/* 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 */
|
/* Tell the object file module that we're about to start the imports */
|
||||||
ObjStartImports ();
|
ObjStartImports ();
|
||||||
|
@ -725,7 +725,7 @@ void WriteExports (void)
|
||||||
|
|
||||||
/* Get the expression bits and the value */
|
/* Get the expression bits and the value */
|
||||||
long ConstVal;
|
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
|
/* Check if this symbol has a size. If so, remember it in the
|
||||||
* flags.
|
* flags.
|
||||||
|
@ -733,22 +733,22 @@ void WriteExports (void)
|
||||||
long Size;
|
long Size;
|
||||||
SymEntry* SizeSym = FindSizeOfSymbol (S);
|
SymEntry* SizeSym = FindSizeOfSymbol (S);
|
||||||
if (SizeSym != 0 && SymIsConst (SizeSym, &Size)) {
|
if (SizeSym != 0 && SymIsConst (SizeSym, &Size)) {
|
||||||
ExprMask |= SYM_SIZE;
|
SymFlags |= SYM_SIZE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Count the number of ConDes types */
|
/* Count the number of ConDes types */
|
||||||
for (Type = 0; Type < CD_TYPE_COUNT; ++Type) {
|
for (Type = 0; Type < CD_TYPE_COUNT; ++Type) {
|
||||||
if (S->ConDesPrio[Type] != CD_PRIO_NONE) {
|
if (S->ConDesPrio[Type] != CD_PRIO_NONE) {
|
||||||
SYM_INC_CONDES_COUNT (ExprMask);
|
SYM_INC_CONDES_COUNT (SymFlags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Write the type and the export size */
|
/* Write the type and the export size */
|
||||||
ObjWriteVar (ExprMask);
|
ObjWriteVar (SymFlags);
|
||||||
ObjWrite8 (S->ExportSize);
|
ObjWrite8 (S->ExportSize);
|
||||||
|
|
||||||
/* Write any ConDes declarations */
|
/* 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) {
|
for (Type = 0; Type < CD_TYPE_COUNT; ++Type) {
|
||||||
unsigned char Prio = S->ConDesPrio[Type];
|
unsigned char Prio = S->ConDesPrio[Type];
|
||||||
if (Prio != CD_PRIO_NONE) {
|
if (Prio != CD_PRIO_NONE) {
|
||||||
|
@ -761,7 +761,7 @@ void WriteExports (void)
|
||||||
ObjWriteVar (S->Name);
|
ObjWriteVar (S->Name);
|
||||||
|
|
||||||
/* Write the value */
|
/* Write the value */
|
||||||
if (SYM_IS_CONST (ExprMask)) {
|
if (SYM_IS_CONST (SymFlags)) {
|
||||||
/* Constant value */
|
/* Constant value */
|
||||||
ObjWrite32 (ConstVal);
|
ObjWrite32 (ConstVal);
|
||||||
} else {
|
} else {
|
||||||
|
@ -770,7 +770,7 @@ void WriteExports (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If the symbol has a size, write it to the file */
|
/* If the symbol has a size, write it to the file */
|
||||||
if (SYM_HAS_SIZE (ExprMask)) {
|
if (SYM_HAS_SIZE (SymFlags)) {
|
||||||
ObjWriteVar (Size);
|
ObjWriteVar (Size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -822,7 +822,7 @@ void WriteDbgSyms (void)
|
||||||
|
|
||||||
/* Get the expression bits and the value */
|
/* Get the expression bits and the value */
|
||||||
long ConstVal;
|
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
|
/* Check if this symbol has a size. If so, remember it in the
|
||||||
* flags.
|
* flags.
|
||||||
|
@ -830,11 +830,11 @@ void WriteDbgSyms (void)
|
||||||
long Size;
|
long Size;
|
||||||
SymEntry* SizeSym = FindSizeOfSymbol (S);
|
SymEntry* SizeSym = FindSizeOfSymbol (S);
|
||||||
if (SizeSym != 0 && SymIsConst (SizeSym, &Size)) {
|
if (SizeSym != 0 && SymIsConst (SizeSym, &Size)) {
|
||||||
ExprMask |= SYM_SIZE;
|
SymFlags |= SYM_SIZE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Write the type */
|
/* Write the type */
|
||||||
ObjWriteVar (ExprMask);
|
ObjWriteVar (SymFlags);
|
||||||
|
|
||||||
/* Write the address size */
|
/* Write the address size */
|
||||||
ObjWrite8 (S->AddrSize);
|
ObjWrite8 (S->AddrSize);
|
||||||
|
@ -842,7 +842,7 @@ void WriteDbgSyms (void)
|
||||||
/* Write the id of the parent. For normal symbols, this is a
|
/* Write the id of the parent. For normal symbols, this is a
|
||||||
* scope (symbol table), for cheap locals, it's a symbol.
|
* 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);
|
ObjWriteVar (S->Sym.Tab->Id);
|
||||||
} else {
|
} else {
|
||||||
ObjWriteVar (S->Sym.Entry->DebugSymId);
|
ObjWriteVar (S->Sym.Entry->DebugSymId);
|
||||||
|
@ -852,7 +852,7 @@ void WriteDbgSyms (void)
|
||||||
ObjWriteVar (S->Name);
|
ObjWriteVar (S->Name);
|
||||||
|
|
||||||
/* Write the value */
|
/* Write the value */
|
||||||
if (SYM_IS_CONST (ExprMask)) {
|
if (SYM_IS_CONST (SymFlags)) {
|
||||||
/* Constant value */
|
/* Constant value */
|
||||||
ObjWrite32 (ConstVal);
|
ObjWrite32 (ConstVal);
|
||||||
} else {
|
} else {
|
||||||
|
@ -861,7 +861,7 @@ void WriteDbgSyms (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If the symbol has a size, write it to the file */
|
/* If the symbol has a size, write it to the file */
|
||||||
if (SYM_HAS_SIZE (ExprMask)) {
|
if (SYM_HAS_SIZE (SymFlags)) {
|
||||||
ObjWriteVar (Size);
|
ObjWriteVar (Size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue