home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hacker Chronicles 2
/
HACKER2.BIN
/
448.NETEDIT.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1989-07-13
|
1KB
|
41 lines
procedure delete_entry;
var i : integer;
begin
if top_pntr = 0 then exit;
if checkins[curr_pntr].list_nbr = 1
then
begin
new_pntr := new_pntr - 1;
if new_pntr < 0
then
new_pntr := 0
else
for i := checkins[curr_pntr].position to new_pntr do
begin
new_list[i]^ := new_list[i + 1]^;
checkins[new_list[i]^.xref].position := i;
end;
end
else
begin
net_list[checkins[curr_pntr].position]^.xref := 0;
for i := 1 to nbr_calls do
if net_list[i]^.xref > curr_pntr then
net_list[i]^.xref := net_list[i]^.xref - 1;
end;
if top_pntr > 1
then
for i := curr_pntr to top_pntr - 1 do
checkins[i] := checkins[i+1];
top_pntr := top_pntr - 1;
if top_pntr = 0 then
begin
curr_pntr := 0;
update_flag := FALSE;
end;
if mark1 > curr_pntr then mark1 := mark1 - 1;
if mark2 > curr_pntr then mark2 := mark2 - 1;
re_display;
status;
end;