2020-09-10 00:56:16 +00:00
|
|
|
/*************/
|
|
|
|
/*GEMWIRE */
|
|
|
|
/* ERYTHRO*/
|
|
|
|
/*************/
|
|
|
|
|
|
|
|
#pragma once
|
2022-03-03 00:05:10 +00:00
|
|
|
|
2020-09-10 00:56:16 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <Defs.h>
|
2021-01-18 01:47:42 +00:00
|
|
|
#include <stdbool.h>
|
2020-09-10 00:56:16 +00:00
|
|
|
|
|
|
|
#ifndef extern_
|
|
|
|
#define extern_ extern
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define TEXTLEN 512
|
|
|
|
#define SYMBOLS 1024
|
|
|
|
|
2022-03-03 00:05:10 +00:00
|
|
|
extern_ struct SymbolTableEntry* Globals, * GlobalsEnd;
|
|
|
|
extern_ struct SymbolTableEntry* Locals, * LocalsEnd;
|
|
|
|
extern_ struct SymbolTableEntry* Params, * ParamsEnd;
|
|
|
|
extern_ struct SymbolTableEntry* Structs, * StructsEnd;
|
|
|
|
extern_ struct SymbolTableEntry* StructMembers, * StructMembersEnd;
|
2021-01-20 19:22:15 +00:00
|
|
|
|
2022-03-03 00:05:10 +00:00
|
|
|
extern_ struct SymbolTableEntry* Unions, * UnionsEnd;
|
|
|
|
extern_ struct SymbolTableEntry* Enums, * EnumsEnd;
|
2020-09-10 00:56:16 +00:00
|
|
|
|
2021-01-18 01:47:42 +00:00
|
|
|
extern_ bool OptDumpTree;
|
|
|
|
extern_ bool OptKeepAssembly;
|
|
|
|
extern_ bool OptAssembleFiles;
|
|
|
|
extern_ bool OptLinkFiles;
|
|
|
|
extern_ bool OptVerboseOutput;
|
|
|
|
|
|
|
|
extern_ char* OutputFileName;
|
2022-03-03 00:05:10 +00:00
|
|
|
extern_ char* CurrentASMFile, * CurrentObjectFile;
|
2021-01-18 01:47:42 +00:00
|
|
|
|
2022-03-03 00:05:10 +00:00
|
|
|
extern_ int TypeSizes[5];
|
2020-09-13 01:26:49 +00:00
|
|
|
|
2020-09-10 00:56:16 +00:00
|
|
|
extern_ char* TokenNames[];
|
|
|
|
|
2021-03-15 01:22:47 +00:00
|
|
|
extern_ char* ScopeNames[];
|
|
|
|
|
2020-09-10 00:56:16 +00:00
|
|
|
extern_ int CurrentFunction;
|
2021-01-20 01:05:41 +00:00
|
|
|
extern_ struct SymbolTableEntry* FunctionEntry;
|
2020-09-10 00:56:16 +00:00
|
|
|
extern_ int Line;
|
|
|
|
extern_ int Overread;
|
|
|
|
|
|
|
|
extern_ FILE* SourceFile;
|
|
|
|
extern_ FILE* OutputFile;
|
|
|
|
|
|
|
|
extern_ struct Token CurrentToken;
|
2020-11-25 02:11:09 +00:00
|
|
|
extern_ char CurrentIdentifier[TEXTLEN + 1];
|
|
|
|
|
|
|
|
extern_ int CurrentGlobal;
|
2021-03-15 15:59:15 +00:00
|
|
|
extern_ int CurrentLocal;
|