home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Killer
/
Game_Killer.bin
/
101.SCTRLIST.INC
< prev
next >
Wrap
Text File
|
1992-06-07
|
438b
|
18 lines
type
sectorlist = record
size : sectorindex;
data : array [ sector ] of sector;
end;
procedure AddToList( var L : sectorlist; s : sector );
{ add s to the list L, provided s isn't already on L }
var
i : byte;
begin
inc( L.size );
L.data[ L.size ] := s;
if L.size > 1 then
for i := 1 to L.size - 1 do
if L.data[ i ] = s then
dec( L.size );
end;