ref: 2777044f705ffc2d36ed87f12624510cec113b95
parent: e5e64b8cec6d3b36c2eae2ff9597199664bf5112
author: Anthony J. Bentley <[email protected]>
date: Wed Jan 7 18:39:00 EST 2015
Delete some unused functions.
--- a/src/asm/main.c
+++ b/src/asm/main.c
@@ -373,7 +373,6 @@
printf
("Assembly aborted in pass 2 (%ld errors)!\n",
nErrors);
- //sym_PrintSymbolTable();
exit(5);
}
} else {
--- a/src/asm/symbol.c
+++ b/src/asm/symbol.c
@@ -792,66 +792,3 @@
math_DefinePI();
}
-
-/*
- * DEBUG: Print the symbol table
- */
-void
-sym_PrintSymbolTable(void)
-{
- ULONG i;
-
- for (i = 0; i < HASHSIZE; i += 1) {
- struct sSymbol *sym = tHashedSymbols[i];
-
- if (sym != NULL)
- printf("\nHashTable #%ld:\n", i);
-
- while (sym != NULL) {
- if (sym->nType & SYMF_LOCAL)
- printf("LOCAL : '%s%s' - %08lX\n",
- sym->pScope->tzName, sym->tzName,
- getvaluefield(sym));
- else if (sym->nType & (SYMF_MACRO | SYMF_STRING)) {
- ULONG i = 0;
-
- printf("MACRO : '%s'\n\"", sym->tzName);
- while (i < sym->ulMacroSize) {
- if (sym->pMacro[i] == '\n') {
- printf("\n");
- i += 1;
- } else
- printf("%c", sym->pMacro[i++]);
- }
- printf("\"\n");
- } else if (sym->nType & SYMF_EXPORT)
- printf("EXPORT: '%s' - %08lX\n", sym->tzName,
- getvaluefield(sym));
- else if (sym->nType & SYMF_IMPORT)
- printf("IMPORT: '%s'\n", sym->tzName);
- else if (sym->nType & SYMF_EQU)
- printf("EQU : '%s' - %08lX\n", sym->tzName,
- getvaluefield(sym));
- else if (sym->nType & SYMF_SET)
- printf("SET : '%s' - %08lX\n", sym->tzName,
- getvaluefield(sym));
- else
- printf("SYMBOL: '%s' - %08lX\n", sym->tzName,
- getvaluefield(sym));
-
- sym = sym->pNext;
- }
- }
-}
-
-/*
- * DEBUG: Dump the macroargs
- */
-void
-sym_DumpMacroArgs(void)
-{
- ULONG i;
-
- for (i = 0; i < MAXMACROARGS; i += 1)
- printf("CurrentArg%ld: %s\n", i + 1, currentmacroargs[i]);
-}