//+++keyword+++ "@(#)%v %n, %f, %w"
// "@(#)2 CMPERROR.SH, 10-Aug-95,11:44:42, LDH"

// ErrFindError and Err* macros return constants
#define rc_NoMoreErrors       0
#define rc_NoErrors           1
#define rc_DisplayError       2
#define rc_ProblemParsing     3
#define rc_CantFind           4
#define rc_DENoBeep           5

global {
	int g_DelErrWin							"&DelErrWin";
	int g_LastErrDir						"LastErrDir";

	str g_LastComp							"Last_Comp";
	str g_LastCompiledWindow		"Last_Compiled_Window";
	str g_LastErrMac						"LastErrMac";
	str g_LastFndRE							"LastFndRE";
	str g_LastRepRE							"LastRepRE";
	str g_LastErrXtra						"LastErrXtra";
}

prototype CMPERROR {
	void CmpError( int Backward );
/******************************************************************************
	Function: Finds the next error in the MEERR.TMP window generated by the last
						compile.
********************************************************************( ldh )***/

	int  ErrFindError( str FName, int Line, int Col, int Offset, int NoLoad );
/******************************************************************************
	Function: Brings up the specified file, and moves the cursor to the passed
						line and column.

  Entry   : str FName		-	Filename 		(/F=)
						int Line		- Line number (/L=)
						int Col			- Column position (/C=)
						int Offset	- When True use Col as an offset from the first word of
													the line instead of as an absolute position. (/OF=1)

						int NoLoad	- When True no load if the file is not already loaded
													don't try to load (/NL=1)

	Exit		: int ( Return_Int )
 							rc_DisplayError		- Success
							rc_CantFind 			- Error: File could not be found
********************************************************************( ldh )***/

	void AutoArrangErrSrc( str Msg );
/******************************************************************************
	Function: Supports the Auto-Arrange compiler error window feature
********************************************************************( ldh )***/

}
