mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 07:32:24 +00:00
vmake ported
This commit is contained in:
parent
2aeddb9975
commit
776ccc8b46
3 changed files with 42 additions and 6 deletions
27
src/lib/v4/compatIn.Mod
Normal file
27
src/lib/v4/compatIn.Mod
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
MODULE compatIn;
|
||||
(* module created to compile Make utility from Trianus v4 system with less changes in original file ; -- noch *)
|
||||
IMPORT Args;
|
||||
|
||||
VAR Done* : BOOLEAN;
|
||||
argnum : INTEGER;
|
||||
PROCEDURE Open*;
|
||||
BEGIN
|
||||
argnum := 0;
|
||||
Done := FALSE;
|
||||
END Open;
|
||||
|
||||
PROCEDURE Name*(VAR name : ARRAY OF CHAR);
|
||||
BEGIN
|
||||
INC(argnum);
|
||||
|
||||
IF argnum < Args.argc THEN
|
||||
Args.Get(argnum, name);
|
||||
Done := TRUE
|
||||
ELSE
|
||||
Done := FALSE
|
||||
END
|
||||
END Name;
|
||||
|
||||
BEGIN
|
||||
Open();
|
||||
END compatIn.
|
||||
Loading…
Add table
Add a link
Reference in a new issue