|
@@ -285,8 +285,8 @@ interface
|
|
procedure addintf_deref(const d:tderef;iofs:longint);
|
|
procedure addintf_deref(const d:tderef;iofs:longint);
|
|
|
|
|
|
procedure clearmappings;
|
|
procedure clearmappings;
|
|
- procedure addmappings(intfindex: longint; const name, newname: string);
|
|
|
|
- function getmappings(intfindex: longint; const name: string; var nextexist: pointer): string;
|
|
|
|
|
|
+ procedure addmappings(intfindex: longint; const origname, newname: string);
|
|
|
|
+ function getmappings(intfindex: longint; const origname: string; var nextexist: pointer): string;
|
|
|
|
|
|
procedure addimplproc(intfindex: longint; procdef: tprocdef);
|
|
procedure addimplproc(intfindex: longint; procdef: tprocdef);
|
|
function implproccount(intfindex: longint): longint;
|
|
function implproccount(intfindex: longint): longint;
|
|
@@ -5063,7 +5063,7 @@ implementation
|
|
|
|
|
|
constructor tnamemap.create(const aname, anewname: string);
|
|
constructor tnamemap.create(const aname, anewname: string);
|
|
begin
|
|
begin
|
|
- inherited createname(name);
|
|
|
|
|
|
+ inherited createname(aname);
|
|
newname:=stringdup(anewname);
|
|
newname:=stringdup(anewname);
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -5237,25 +5237,25 @@ implementation
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
|
|
|
|
- procedure timplementedinterfaces.addmappings(intfindex: longint; const name, newname: string);
|
|
|
|
|
|
+ procedure timplementedinterfaces.addmappings(intfindex: longint; const origname, newname: string);
|
|
begin
|
|
begin
|
|
checkindex(intfindex);
|
|
checkindex(intfindex);
|
|
with timplintfentry(finterfaces.search(intfindex)) do
|
|
with timplintfentry(finterfaces.search(intfindex)) do
|
|
begin
|
|
begin
|
|
if not assigned(namemappings) then
|
|
if not assigned(namemappings) then
|
|
namemappings:=tdictionary.create;
|
|
namemappings:=tdictionary.create;
|
|
- namemappings.insert(tnamemap.create(name,newname));
|
|
|
|
|
|
+ namemappings.insert(tnamemap.create(origname,newname));
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
|
|
|
|
- function timplementedinterfaces.getmappings(intfindex: longint; const name: string; var nextexist: pointer): string;
|
|
|
|
|
|
+ function timplementedinterfaces.getmappings(intfindex: longint; const origname: string; var nextexist: pointer): string;
|
|
begin
|
|
begin
|
|
checkindex(intfindex);
|
|
checkindex(intfindex);
|
|
if not assigned(nextexist) then
|
|
if not assigned(nextexist) then
|
|
with timplintfentry(finterfaces.search(intfindex)) do
|
|
with timplintfentry(finterfaces.search(intfindex)) do
|
|
begin
|
|
begin
|
|
if assigned(namemappings) then
|
|
if assigned(namemappings) then
|
|
- nextexist:=namemappings.search(name)
|
|
|
|
|
|
+ nextexist:=namemappings.search(origname)
|
|
else
|
|
else
|
|
nextexist:=nil;
|
|
nextexist:=nil;
|
|
end;
|
|
end;
|