2
0
Эх сурвалжийг харах

* Allow aliases

git-svn-id: trunk@42788 -
michael 6 жил өмнө
parent
commit
eafcf34584

+ 2 - 0
packages/webidl/src/webidltopas.pp

@@ -1363,6 +1363,7 @@ procedure TWebIDLToPas.ProcessDefinitions;
 begin
 begin
   FContext.AppendPartials;
   FContext.AppendPartials;
   FContext.AppendIncludes;
   FContext.AppendIncludes;
+
   AllocatePasNames(FContext.Definitions);
   AllocatePasNames(FContext.Definitions);
 end;
 end;
 
 
@@ -1371,6 +1372,7 @@ procedure TWebIDLToPas.Execute;
 begin
 begin
   FContext:=CreateContext;
   FContext:=CreateContext;
   try
   try
+    FContext.Aliases:=Self.TypeAliases;
     Parse;
     Parse;
     if Verbose then
     if Verbose then
       DoLog('Parsed %d definitions.',[Context.Definitions.Count]);
       DoLog('Parsed %d definitions.',[Context.Definitions.Count]);