|
@@ -1319,9 +1319,19 @@ implementation
|
|
|
end;
|
|
|
|
|
|
|
|
|
+ function setuplabelnode(var n : tnode;arg : pointer) : foreachnoderesult;
|
|
|
+ begin
|
|
|
+ result:=fen_true;
|
|
|
+ if (n.nodetype=goton) and assigned(tgotonode(n).labelnode) and
|
|
|
+ assigned(tgotonode(n).labelnode.copiedto) then
|
|
|
+ tgotonode(n).labelnode:=tgotonode(n).labelnode.copiedto;
|
|
|
+ end;
|
|
|
+
|
|
|
+
|
|
|
function tnode.getcopy : tnode;
|
|
|
begin
|
|
|
result:=dogetcopy;
|
|
|
+ foreachnodestatic(pm_postprocess,result,@setuplabelnode,nil);
|
|
|
foreachnodestatic(pm_postprocess,self,@cleanupcopiedto,nil);
|
|
|
end;
|
|
|
|