mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 13:30:37 +02:00
clean up of fpcadds
git-svn-id: trunk@8101 -
This commit is contained in:
parent
eee77db4e6
commit
afe0734734
@ -26,7 +26,7 @@ unit ActnList;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, FPCAdds,
|
Classes, SysUtils,
|
||||||
LCLStrConsts, LCLType, LCLProc, LCLIntf, ImgList, LCLClasses, LMessages;
|
LCLStrConsts, LCLType, LCLProc, LCLIntf, ImgList, LCLClasses, LMessages;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
@ -38,7 +38,7 @@ interface
|
|||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, FPCAdds, LCLType, LCLProc, LCLIntf, LCLStrConsts,
|
Classes, SysUtils, LCLType, LCLProc, LCLIntf, LCLStrConsts,
|
||||||
GraphType, Graphics, ImgList, ActnList, Controls, StdCtrls, lMessages, Forms,
|
GraphType, Graphics, ImgList, ActnList, Controls, StdCtrls, lMessages, Forms,
|
||||||
Menus {for ShortCut procedures};
|
Menus {for ShortCut procedures};
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ unit ComCtrls;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
SysUtils, Classes, Math, FPCAdds, LCLStrConsts, LResources, LCLIntf, LCLType,
|
SysUtils, Classes, Math, LCLStrConsts, LResources, LCLIntf, LCLType,
|
||||||
LCLProc, AvgLvlTree, LMessages, ImgList, ActnList, GraphType, Graphics, Menus,
|
LCLProc, AvgLvlTree, LMessages, ImgList, ActnList, GraphType, Graphics, Menus,
|
||||||
Controls, Forms, StdCtrls, ExtCtrls, ToolWin, CommCtrl, Buttons;
|
Controls, Forms, StdCtrls, ExtCtrls, ToolWin, CommCtrl, Buttons;
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ interface
|
|||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, TypInfo, FPCAdds, DynHashArray, LCLStrConsts, LCLType,
|
Classes, SysUtils, TypInfo, DynHashArray, LCLStrConsts, LCLType,
|
||||||
LCLProc, GraphType, Graphics, LMessages, LCLIntf, InterfaceBase, ImgList,
|
LCLProc, GraphType, Graphics, LMessages, LCLIntf, InterfaceBase, ImgList,
|
||||||
UTrace, PropertyStorage, Menus, ActnList, LCLClasses;
|
UTrace, PropertyStorage, Menus, ActnList, LCLClasses;
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ interface
|
|||||||
{$DEFINE HasDefaultValues}
|
{$DEFINE HasDefaultValues}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, Math, FPCAdds, LCLStrConsts, LCLType, LCLProc, LCLIntf,
|
Classes, SysUtils, Math, LCLStrConsts, LCLType, LCLProc, LCLIntf,
|
||||||
InterfaceBase, LResources, GraphType, Graphics, Menus, LMessages, CustomTimer,
|
InterfaceBase, LResources, GraphType, Graphics, Menus, LMessages, CustomTimer,
|
||||||
ActnList, ClipBrd, CustApp, LCLClasses, Controls;
|
ActnList, ClipBrd, CustApp, LCLClasses, Controls;
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ type
|
|||||||
TMemStreamSeekType = integer;
|
TMemStreamSeekType = integer;
|
||||||
TCompareMemSize = integer;
|
TCompareMemSize = integer;
|
||||||
PHandle = ^THandle;
|
PHandle = ^THandle;
|
||||||
|
|
||||||
function StrToWord(const s: string): word;
|
function StrToWord(const s: string): word;
|
||||||
|
|
||||||
{$IFDEF VER2_0_0}
|
{$IFDEF VER2_0_0}
|
||||||
@ -43,8 +43,6 @@ function ExceptFrameCount: Longint;
|
|||||||
function ExceptFrames: PPointer;
|
function ExceptFrames: PPointer;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
procedure SwapIntegers(var a, b: integer); inline;
|
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
function StrToWord(const s: string): word;
|
function StrToWord(const s: string): word;
|
||||||
@ -59,15 +57,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure SwapIntegers(var a, b: integer); inline;
|
|
||||||
var
|
|
||||||
h: integer;
|
|
||||||
begin
|
|
||||||
h:=a;
|
|
||||||
a:=b;
|
|
||||||
b:=h;
|
|
||||||
end;
|
|
||||||
|
|
||||||
{$IFDEF VER2_0_0}
|
{$IFDEF VER2_0_0}
|
||||||
function ExceptFrameCount: Longint;
|
function ExceptFrameCount: Longint;
|
||||||
begin
|
begin
|
||||||
|
@ -42,7 +42,7 @@ unit Grids;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, FPCAdds, LCLStrConsts, LCLProc, LCLType, LCLIntf, Controls,
|
Classes, SysUtils, LCLStrConsts, LCLProc, LCLType, LCLIntf, Controls,
|
||||||
GraphType, Graphics, Forms, DynamicArray, LMessages, XMLCfg, StdCtrls,
|
GraphType, Graphics, Forms, DynamicArray, LMessages, XMLCfg, StdCtrls,
|
||||||
LResources, MaskEdit, Buttons, Clipbrd;
|
LResources, MaskEdit, Buttons, Clipbrd;
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ interface
|
|||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, Math, FPCAdds, LCLStrConsts, LCLType, LCLProc, LMessages,
|
Classes, SysUtils, Math, LCLStrConsts, LCLType, LCLProc, LMessages,
|
||||||
GraphType, GraphMath;
|
GraphType, GraphMath;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
@ -382,8 +382,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
function TWin32WSMenuItem.SetRightJustify(const AMenuItem: TMenuItem; const Justified: boolean): boolean;
|
function TWin32WSMenuItem.SetRightJustify(const AMenuItem: TMenuItem; const Justified: boolean): boolean;
|
||||||
var
|
|
||||||
MenuInfo: MENUITEMINFO;
|
|
||||||
begin
|
begin
|
||||||
Result := ChangeMenuFlag(AMenuItem, MFT_RIGHTJUSTIFY, Justified);
|
Result := ChangeMenuFlag(AMenuItem, MFT_RIGHTJUSTIFY, Justified);
|
||||||
end;
|
end;
|
||||||
|
@ -52,7 +52,7 @@ uses
|
|||||||
{$ifdef win32}
|
{$ifdef win32}
|
||||||
windows,
|
windows,
|
||||||
{$endif win32}
|
{$endif win32}
|
||||||
Classes, SysUtils, FPCAdds;
|
Classes, SysUtils;
|
||||||
|
|
||||||
type
|
type
|
||||||
{$IFDEF USE_UTF8BIDI_LCL}
|
{$IFDEF USE_UTF8BIDI_LCL}
|
||||||
|
@ -29,7 +29,7 @@ unit LMessages;
|
|||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
||||||
uses Classes, SysUtils, FPCAdds, LCLType, GraphType
|
uses Classes, SysUtils, LCLType, GraphType
|
||||||
{$ifdef win32}
|
{$ifdef win32}
|
||||||
,messages
|
,messages
|
||||||
{$endif win32}
|
{$endif win32}
|
||||||
|
@ -495,7 +495,7 @@ function FindLFMClassName(LFMStream:TStream):ansistring;
|
|||||||
-> the classname is the last word of the first line
|
-> the classname is the last word of the first line
|
||||||
}
|
}
|
||||||
var c:char;
|
var c:char;
|
||||||
StartPos, EndPos: TStreamSeekType;
|
StartPos, EndPos: Int64;
|
||||||
begin
|
begin
|
||||||
Result:='';
|
Result:='';
|
||||||
StartPos:=-1;
|
StartPos:=-1;
|
||||||
|
Loading…
Reference in New Issue
Block a user