packages feed

language-Modula2-0.1: examples/Modula-2_Libraries/PMOS/sources/general/trace.def

DEFINITION MODULE Trace;

	(************************************************)
	(*						*)
	(*	    Trace routines for Modula-2		*)
	(*		program development.		*)
	(*						*)
	(*  Programmer:		P. Moylan		*)
	(*  Last edited:	16 August 1992		*)
	(*  Status:		Working on TS conversion*)
	(*						*)
	(************************************************)

FROM Windows IMPORT
    (* type *)	RowRange, ColumnRange;

PROCEDURE NYI (name: ARRAY OF CHAR);

	(* Types a "not yet implemented" message.	*)

PROCEDURE Pause;

	(* "Press any key to continue."			*)

PROCEDURE InTrace (name: ARRAY OF CHAR);

	(* Types "Entering 'name'".	*)

PROCEDURE OutTrace (name: ARRAY OF CHAR);

	(* Types "Leaving 'name'".	*)

PROCEDURE TraceOn (firstrow, lastrow: RowRange;
			firstcol, lastcol: ColumnRange;
			SlowDownFactor: CARDINAL);

	(* Turns on tracing.  The first four parameters specify the	*)
	(* size of a screen window to be used for trace messages.  The	*)
	(* size of the final parameter governs how slowly the program	*)
	(* will run - it is needed because in many cases the trace	*)
	(* messages appear on the screen faster than you can read them.	*)

PROCEDURE TraceOff;

	(* Turns off tracing.		*)

PROCEDURE TraceStatus(): BOOLEAN;

	(* Says whether tracing is currently on.	*)

END Trace.