Skip to content

Commit

Permalink
Replaced lbRTTIs, lbNames, lbStrings (TListBox) with vtRTTI, vtName, …
Browse files Browse the repository at this point in the history
…vtString (VirtualStringTree)

Renamed unit TypeInfo to TypeInfos because of conflict with same called internal compiler function.
  • Loading branch information
tmcdos committed Jul 5, 2016
1 parent 6b98a1b commit 3b69482
Show file tree
Hide file tree
Showing 10 changed files with 767 additions and 564 deletions.
13 changes: 13 additions & 0 deletions Def_main.pas
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,19 @@ RContext = record
end;
PUnitNode = ^vtUnitNode;

vtNameNode = record
adr:Integer;
item_name,item_type:AnsiString;
End;
PNameNode = ^vtNameNode;

vtStringNode = record
adr:Integer;
item_name,item_type:AnsiString;
is_resource:Boolean;
End;
PStringNode = ^vtStringNode;

Const
USER_KNOWLEDGEBASE = $80000000;
SOURCE_LIBRARY = $40000000;
Expand Down
4 changes: 2 additions & 2 deletions Idr.dof
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ AutoIncBuild=0
MajorVer=1
MinorVer=0
Release=0
Build=1165
Build=1218
Debug=0
PreRelease=0
Special=0
Expand All @@ -126,7 +126,7 @@ CodePage=1251
[Version Info Keys]
CompanyName=
FileDescription=
FileVersion=1.0.0.1165
FileVersion=1.0.0.1218
InternalName=
LegalCopyright=
LegalTrademarks=
Expand Down
2 changes: 1 addition & 1 deletion Idr.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ uses
ExceptionLog,
Forms,
Classes,
TypeInfo in 'TypeInfo.pas' {FTypeInfo},
TypeInfos in 'TypeInfos.pas' {FTypeInfo},
StringInfo in 'StringInfo.pas' {FStringInfo},
Main in 'Main.pas' {FMain},
Explorer in 'Explorer.pas' {FExplorer},
Expand Down
Binary file modified Idr.res
Binary file not shown.
11 changes: 6 additions & 5 deletions Infos.pas
Original file line number Diff line number Diff line change
Expand Up @@ -254,13 +254,13 @@ InfoRec = class
Function InfoProcInfo.AddArg(_Tag:BYTE; Ofs, _Size:Integer; _Name, _TypeDef:AnsiString):PArgInfo;
var
F,L,M:Integer;

procedure NewRes;
begin
New(Result);
with Result^ do
begin
in_Reg:=False;
in_Reg:= Ofs In [0..3];
Tag := _Tag;
Ndx := Ofs;
Size := _Size;
Expand Down Expand Up @@ -610,7 +610,6 @@ InfoRec = class
var
recX:PXRefRec;
F,L,M:Integer;
s:AnsiString;

Procedure NewRec;
begin
Expand Down Expand Up @@ -1227,6 +1226,8 @@ procedure InfoRec.Load(ins:TStream; buf:Pointer);
if Assigned(procInfo.args) then argsNum := procInfo.args.Count
else argsNum := 0;
num:=argsNum;
firstArg:=0;
callKind:=0;
if num<>0 then
Begin
if (procInfo.flags and PF_ALLMETHODS)<>0 then
Expand Down Expand Up @@ -1267,8 +1268,8 @@ procedure InfoRec.Load(ins:TStream; buf:Pointer);
if _abstract then Result:=Result + ' abstract;'
else
case callKind of
1: Result:=Result +' cdecl;';
2: Result:=Result +' pascal;';
1: Result:=Result + ' cdecl;';
2: Result:=Result + ' pascal;';
3: Result:=Result + ' stdcall;';
4: Result:=Result + ' safecall;';
End;
Expand Down
Loading

0 comments on commit 3b69482

Please sign in to comment.