ack/lang/m2/test/Wirth/TableHandl.def

18 lines
361 B
Modula-2
Raw Permalink Normal View History

1988-04-25 09:28:10 +00:00
DEFINITION MODULE TableHandler;
CONST LineWidth = 80;
WordLength = 24;
TYPE Table;
VAR overflow: CARDINAL; (* >0 means table full *)
PROCEDURE InitTable(VAR t: Table);
PROCEDURE Record(t: Table; VAR x: ARRAY OF CHAR; n: INTEGER);
(* enter x,n in table t; string x must end with a blank.
*)
PROCEDURE Tabulate(t: Table);
END TableHandler.