|
@@ -1,5 +1,4 @@
|
|
{
|
|
{
|
|
-
|
|
|
|
FPDoc - Free Pascal Documentation Tool
|
|
FPDoc - Free Pascal Documentation Tool
|
|
Copyright (C) 2000 - 2003 by
|
|
Copyright (C) 2000 - 2003 by
|
|
Areca Systems GmbH / Sebastian Guenther, [email protected]
|
|
Areca Systems GmbH / Sebastian Guenther, [email protected]
|
|
@@ -18,9 +17,6 @@
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
-{%RunCommand $MakeExe($(EdFile)) --package=fpvectorial --input=/home/felipe/Programas/fpctrunk/packages/fpvectorial/src/fpvectorial.pas}
|
|
|
|
program MakeSkel;
|
|
program MakeSkel;
|
|
|
|
|
|
{$mode objfpc}
|
|
{$mode objfpc}
|
|
@@ -350,11 +346,33 @@ end;
|
|
|
|
|
|
Procedure TSkelEngine.DocumentFile(Var F : Text; Const AFileName,ATarget,ACPU : String);
|
|
Procedure TSkelEngine.DocumentFile(Var F : Text; Const AFileName,ATarget,ACPU : String);
|
|
|
|
|
|
|
|
+ Procedure ResolveOperators;
|
|
|
|
+
|
|
|
|
+ Var
|
|
|
|
+ E : TPasElement;
|
|
|
|
+ P : TNodePair;
|
|
|
|
+ N : TDocNode;
|
|
|
|
+ I : integer;
|
|
|
|
+
|
|
|
|
+ begin
|
|
|
|
+ For I:=0 to FNodeList.Count-1 do
|
|
|
|
+ begin
|
|
|
|
+ P:=TNodePair(FNodeList.Objects[i]);
|
|
|
|
+ if P.Element.InheritsFrom(TPasOperator) then
|
|
|
|
+ begin
|
|
|
|
+ N:=FindDocNode(P.Element);
|
|
|
|
+ If Assigned(N) then
|
|
|
|
+ N.IncRefCount;
|
|
|
|
+ P.FNode:=N;
|
|
|
|
+ end;
|
|
|
|
+ end;
|
|
|
|
+ end;
|
|
|
|
+
|
|
Var
|
|
Var
|
|
Module : TPasModule;
|
|
Module : TPasModule;
|
|
I : Integer;
|
|
I : Integer;
|
|
N : TDocNode;
|
|
N : TDocNode;
|
|
-
|
|
|
|
|
|
+
|
|
begin
|
|
begin
|
|
// wrong because afilename is a cmdline with other options. Straight testing filename is therefore wrong.
|
|
// wrong because afilename is a cmdline with other options. Straight testing filename is therefore wrong.
|
|
// if not(FileExists(AFileName)) then
|
|
// if not(FileExists(AFileName)) then
|
|
@@ -370,7 +388,8 @@ begin
|
|
N:=FindDocNode(Module);
|
|
N:=FindDocNode(Module);
|
|
If Assigned(N) then
|
|
If Assigned(N) then
|
|
N.IncRefCount;
|
|
N.IncRefCount;
|
|
- end;
|
|
|
|
|
|
+ ResolveOperators;
|
|
|
|
+ end;
|
|
If SortNodes then
|
|
If SortNodes then
|
|
FNodelist.Sorted:=True;
|
|
FNodelist.Sorted:=True;
|
|
WriteNodes(F,Module,FNodeList);
|
|
WriteNodes(F,Module,FNodeList);
|