mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-29 02:43:41 +02:00
codetools: started parsing pas2js output
git-svn-id: trunk@57846 -
This commit is contained in:
parent
2e95e24d2f
commit
aa2b29544e
@ -978,6 +978,7 @@ type
|
||||
function GetUnitSetID: string;
|
||||
function GetFirstFPCCfg: string;
|
||||
function GetUnitScopes: string;
|
||||
function GetCompilerKind: TPascalCompiler;
|
||||
end;
|
||||
|
||||
{ TCompilerDefinesCache }
|
||||
@ -10413,6 +10414,15 @@ begin
|
||||
Delete(Result,1,1);
|
||||
end;
|
||||
|
||||
function TFPCUnitSetCache.GetCompilerKind: TPascalCompiler;
|
||||
var
|
||||
Cfg: TPCTargetConfigCache;
|
||||
begin
|
||||
Cfg:=GetConfigCache(false);
|
||||
if Cfg=nil then exit(pcFPC);
|
||||
Result:=Cfg.Kind;
|
||||
end;
|
||||
|
||||
initialization
|
||||
InitDefaultFPCSourceRules;
|
||||
|
||||
|
@ -138,10 +138,6 @@ const
|
||||
CTPascalExtension: array[TCTPascalExtType] of string =
|
||||
('', '.pas', '.pp', '.p');
|
||||
|
||||
function FileAgeToStr(aFileAge: longint): string;
|
||||
|
||||
function AVLTreeHasDoubles(Tree: TAVLTree): TAVLTreeNode;
|
||||
|
||||
// store date locale independent, thread safe
|
||||
const DateAsCfgStrFormat='YYYYMMDD';
|
||||
const DateTimeAsCfgStrFormat='YYYY/MM/DD HH:NN:SS';
|
||||
@ -152,6 +148,10 @@ procedure CTIncreaseChangeStamp(var ChangeStamp: integer); inline;
|
||||
procedure CTIncreaseChangeStamp64(var ChangeStamp: int64); inline;
|
||||
function SimpleFormat(const Fmt: String; const Args: Array of const): String;
|
||||
|
||||
// misc
|
||||
function FileAgeToStr(aFileAge: longint): string;
|
||||
function AVLTreeHasDoubles(Tree: TAVLTree): TAVLTreeNode;
|
||||
|
||||
// debugging
|
||||
var
|
||||
CTConsoleVerbosity: integer = {$IFDEF VerboseCodetools}1{$ELSE}0{$ENDIF}; // 0=quiet, 1=normal, 2=verbose
|
||||
|
@ -859,6 +859,7 @@ function IndexOfCodeInUniqueList(ACode: Pointer;
|
||||
UniqueSortedCodeList: TList): integer;
|
||||
function IndexOfCodeInUniqueList(ACode: Pointer;
|
||||
UniqueSortedCodeList: TFPList): integer;
|
||||
function dbgs(k: TPascalCompiler): string; overload;
|
||||
function dbgs(r: TLinkScannerRange): string; overload;
|
||||
function dbgs(const ModeSwitches: TCompilerModeSwitches): string; overload;
|
||||
function dbgs(k: TSourceLinkKind): string; overload;
|
||||
@ -911,6 +912,11 @@ begin
|
||||
Result:=-1;
|
||||
end;
|
||||
|
||||
function dbgs(k: TPascalCompiler): string;
|
||||
begin
|
||||
WriteStr(Result, k);
|
||||
end;
|
||||
|
||||
function dbgs(r: TLinkScannerRange): string; overload;
|
||||
begin
|
||||
WriteStr(Result, r);
|
||||
|
Loading…
Reference in New Issue
Block a user