langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
|
|
@ -0,0 +1,7 @@
|
|||
procedure insert_link( a, b, c: link_ptr );
|
||||
begin
|
||||
a^.next := c;
|
||||
if b <> nil then b^.prev := c;
|
||||
c^.next := b;
|
||||
c^.prev := a;
|
||||
end;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
procedure realistic_insert_link( a, c: link_ptr );
|
||||
begin
|
||||
if a^.next <> nil then a^.next^.prev := c; (* 'a^.next^' is another way of saying 'b', if b exists *)
|
||||
c^.next := a^.next;
|
||||
a^.next := c;
|
||||
c^.prev := a;
|
||||
end;
|
||||
Loading…
Add table
Add a link
Reference in a new issue