#define	menu_popup	0
#define	Compile		1
#define	Run			2
#define	IS_OPEN		-1
#define	SAVE_ALL	-2
#include "all.inc"
#include "RAEdit.h--"
#include "C--IDE.Rc"

#pragma	option ia	// assembly	instructions as	identifier

HINSTANCE	hInstance;
HWND		hWnd;
HMENU		hMenu,hProjectMenu;
HICON		hIcon;
HCURSOR		hCursor;
HFONT		hfDefault;
LOGFONT		lfnt;

dword		hREd,lpfnhEditProc, TextLen;
dword		rgb, hFont, hIFont,hLnrFont;
dword		hRAEditDLL;

byte		CompileName[128] = 0;
byte		ProjectName[260] = 0;
byte		ProjectPath[128] = 0;

byte		szRAEditClass = "RAEDIT";
char		ClassName[] = "RAEditor Class";
char		AppName[] = "C--IDE";
char		szFont[] = "Courier New";
byte		RAEditDLL = "RAEdit.dll";
byte	About = "Thanks:\n - Michael Sheker for Sphinx C-- compiler\n - Hutch, KetilO, TBD for their example";

byte		szProc[] = "{";
byte		szEndp[] = "}";
RABLOCKDEF	blocks = {#szProc, #szEndp,0,0,BD_NONESTING};
RACOLOR	col = {DEFBCKCOLOR,DEFTXTCOLOR,DEFSELBCKCOLOR,DEFSELTXTCOLOR,DEFCMNTCOLOR,DEFSTRCOLOR,DEFOPRCOLOR,DEFHILITE1,DEFHILITE2,DEFHILITE3,DEFSELBARCOLOR,DEFSELBARPEN,DEFLNRCOLOR};
// For Tab Control
dword	hTab;
struct	TABMEM
{
	dword	hwnd;
	byte	filename[MAX_PATH];
};

struct	EDITOPT
{
	dword	tabsize, exptabs, indent;
};

EDITOPT 	edopt = {4,FALSE,TRUE};

#define no_blocks 1

#include "ToolBar.c--"
#include "StatusBr.c--"
#include "Search.c--"
#include "MISC.c--"
#include "FileIORA.c--"
#include "Property.C--"
#include "Project.C--"
#include "WndProc.C--"
#include "Keyword.c--"
#include "TabTool.C--"
