Initial revision

This commit is contained in:
ceriel
1988-10-04 10:33:39 +00:00
parent fbefe2f917
commit 3ce78f0ae5
11 changed files with 2195 additions and 0 deletions

34
lang/a68s/util/checkseq.p Normal file
View File

@@ -0,0 +1,34 @@
program checkseq(output);
(* Rewritten to allow a list of files to be passed in on the command line *)
(* This version : 24 August 1987 by Jon Abbott *)
type buf = packed array [1..20] of char;
string = ^buf;
var
this, last, nargs: integer;
s: string;
inf: text;
function argc: integer; extern;
function argv(i: integer): string; extern;
procedure popen(var f: text; s: string); extern;
begin
nargs := argc;
while nargs>1 do
begin
nargs := nargs-1;
s := argv(nargs);
popen(inf,s);
writeln('checkseq: ',s^);
this := 0;
while not eof(inf) do
begin
last := this;
readln(inf,this);
if this <= last then writeln(last, this)
end
end
end.