#include "Include/InfoSink.h"
-#ifdef _WIN32
- #include <windows.h>
-#else
- #include <string.h>
-#endif
+#include <string.h>
void TInfoSinkBase::append(const char *s)
{
sink.append(s);
}
-#ifdef _WIN32
- if (outputStream & EDebugger)
- OutputDebugString(s);
-#endif
+//#ifdef _WIN32
+// if (outputStream & EDebugger)
+// OutputDebugString(s);
+//#endif
if (outputStream & EStdOut)
fprintf(stdout, "%s", s);
sink.append(count, c);
}
-#ifdef _WIN32
- if (outputStream & EDebugger) {
- char str[2];
- str[0] = c;
- str[1] = '\0';
- OutputDebugString(str);
- }
-#endif
+//#ifdef _WIN32
+// if (outputStream & EDebugger) {
+// char str[2];
+// str[0] = c;
+// str[1] = '\0';
+// OutputDebugString(str);
+// }
+//#endif
if (outputStream & EStdOut)
fprintf(stdout, "%c", c);
sink.append(t);
}
-#ifdef _WIN32
- if (outputStream & EDebugger)
- OutputDebugString(t.c_str());
-#endif
+//#ifdef _WIN32
+// if (outputStream & EDebugger)
+// OutputDebugString(t.c_str());
+//#endif
if (outputStream & EStdOut)
fprintf(stdout, "%s", t.c_str());
sink.append(t.c_str());
}
-#ifdef _WIN32
- if (outputStream & EDebugger)
- OutputDebugString(t.c_str());
-#endif
+//#ifdef _WIN32
+// if (outputStream & EDebugger)
+// OutputDebugString(t.c_str());
+//#endif
if (outputStream & EStdOut)
fprintf(stdout, "%s", t.c_str());
# DO NOT DELETE
-PpAtom.o: PpContext.h PpToken.h
-PpScanner.o: PpContext.h PpToken.h
-PpTokens.o: PpContext.h PpToken.h
-Pp.o: PpContext.h PpToken.h
-PpContext.o: PpContext.h PpToken.h
-PpMemory.o: PpContext.h PpToken.h
-PpSymbols.o: PpContext.h PpToken.h
+PpAtom.o: PpContext.h PpTokens.h
+PpScanner.o: PpContext.h PpTokens.h
+PpTokens.o: PpContext.h PpTokens.h
+Pp.o: PpContext.h PpTokens.h
+PpContext.o: PpContext.h PpTokens.h
+PpMemory.o: PpContext.h PpTokens.h
+PpSymbols.o: PpContext.h PpTokens.h
int nextFree;
int size;
};
- typedef struct HashEntry_Rec {
+ struct HashEntry {
int index; // String table offset of string representation
int value; // Atom (symbol) value
- } HashEntry;
+ };
static const int hashTableMaxCollisions = 3;
- typedef struct HashTable_Rec {
+ struct HashTable {
HashEntry *entry;
int size;
int entries;
int counts[hashTableMaxCollisions + 1];
- } HashTable;
+ };
+
struct AtomTable {
StringTable stable; // String table.
HashTable htable; // Hashes string to atom number and token value. Multiple strings can
} details;
};
- typedef struct SymbolList {
+ struct SymbolList {
struct SymbolList_Rec *next;
Symbol *symb;
};
int elsetracker; // #if-#else and #endif constructs...Counter.
const char *ErrMsg;
- typedef struct MacroInputSrc {
+ struct MacroInputSrc {
InputSrc base;
MacroSymbol *mac;
TokenStream **args;
- } MacroInputSrc;
+ };
InputSrc *currentInput;