mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-01 16:12:36 +02:00
codetools: clean up
git-svn-id: trunk@48644 -
This commit is contained in:
parent
7ab1cdbe1f
commit
a2e0bd3f68
@ -260,7 +260,7 @@ type
|
||||
function GuessMisplacedIfdefEndif(const CursorPos: TCodeXYPosition;
|
||||
out NewPos: TCodeXYPosition; out NewTopLine: integer): boolean;
|
||||
function FindEnclosingIncludeDirective(const CursorPos: TCodeXYPosition;
|
||||
out NewPos: TCodeXYPosition; var NewTopLine: integer): boolean;
|
||||
out NewPos: TCodeXYPosition; out NewTopLine: integer): boolean;
|
||||
function FindModeDirective(DoBuildTree: boolean;
|
||||
out ACleanPos: integer): boolean;
|
||||
function FindResourceDirective(DoBuildTree: boolean;
|
||||
@ -6256,12 +6256,14 @@ begin
|
||||
end;
|
||||
|
||||
function TStandardCodeTool.FindEnclosingIncludeDirective(
|
||||
const CursorPos: TCodeXYPosition; out NewPos: TCodeXYPosition;
|
||||
var NewTopLine: integer): boolean;
|
||||
const CursorPos: TCodeXYPosition; out NewPos: TCodeXYPosition; out
|
||||
NewTopLine: integer): boolean;
|
||||
var
|
||||
CleanCursorPos, LinkIndex, NewCleanPos: integer;
|
||||
begin
|
||||
Result:=false;
|
||||
NewPos:=CleanCodeXYPosition;
|
||||
NewTopLine:=-1;
|
||||
try
|
||||
BuildTreeAndGetCleanPos(trTillCursor,lsrEnd,CursorPos,CleanCursorPos,
|
||||
[btSetIgnoreErrorPos]);
|
||||
|
Loading…
Reference in New Issue
Block a user