mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 16:49:07 +02:00
fixes for current fpc 1.1
git-svn-id: trunk@4049 -
This commit is contained in:
parent
db8349a1c6
commit
3a990fdfbb
@ -1366,7 +1366,12 @@ const
|
|||||||
{ only set using environment variables }
|
{ only set using environment variables }
|
||||||
outputstr : shortstring = '';
|
outputstr : shortstring = '';
|
||||||
|
|
||||||
|
const
|
||||||
|
NullCall = {$IFDEF NEW1_1}nil{$ELSE}0{$ENDIF};
|
||||||
|
|
||||||
type
|
type
|
||||||
|
TCall = {$IFDEF New1_1}pointer{$ELSE}longint{$ENDIF};
|
||||||
|
|
||||||
pheap_extra_info = ^theap_extra_info;
|
pheap_extra_info = ^theap_extra_info;
|
||||||
theap_extra_info = record
|
theap_extra_info = record
|
||||||
check : cardinal; { used to check if the procvar is still valid }
|
check : cardinal; { used to check if the procvar is still valid }
|
||||||
@ -1392,12 +1397,13 @@ type
|
|||||||
release_sig : longword;
|
release_sig : longword;
|
||||||
prev_valid : pheap_mem_info;
|
prev_valid : pheap_mem_info;
|
||||||
{$endif EXTRA}
|
{$endif EXTRA}
|
||||||
calls : array [1..tracesize] of longint;
|
calls : array [1..tracesize] of TCall;
|
||||||
exact_info_size : word;
|
exact_info_size : word;
|
||||||
extra_info_size : word;
|
extra_info_size : word;
|
||||||
extra_info : pheap_extra_info;
|
extra_info : pheap_extra_info;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
var
|
var
|
||||||
ptext : ^text;
|
ptext : ^text;
|
||||||
ownfile : text;
|
ownfile : text;
|
||||||
@ -1610,7 +1616,7 @@ var
|
|||||||
begin
|
begin
|
||||||
writeln(ptext,'Call trace for block 0x',hexstr(longint(pointer(pp)+sizeof(theap_mem_info)),8),' size ',pp^.size);
|
writeln(ptext,'Call trace for block 0x',hexstr(longint(pointer(pp)+sizeof(theap_mem_info)),8),' size ',pp^.size);
|
||||||
for i:=1 to tracesize do
|
for i:=1 to tracesize do
|
||||||
if pp^.calls[i]<>0 then
|
if pp^.calls[i]<>NullCall then
|
||||||
writeln(ptext,BackTraceStrFunc(pp^.calls[i]));
|
writeln(ptext,BackTraceStrFunc(pp^.calls[i]));
|
||||||
{ the check is done to be sure that the procvar is not overwritten }
|
{ the check is done to be sure that the procvar is not overwritten }
|
||||||
if assigned(pp^.extra_info) and
|
if assigned(pp^.extra_info) and
|
||||||
@ -1626,11 +1632,11 @@ var
|
|||||||
begin
|
begin
|
||||||
writeln(ptext,'Call trace for block at 0x',hexstr(longint(pointer(pp)+sizeof(theap_mem_info)),8),' size ',pp^.size);
|
writeln(ptext,'Call trace for block at 0x',hexstr(longint(pointer(pp)+sizeof(theap_mem_info)),8),' size ',pp^.size);
|
||||||
for i:=1 to tracesize div 2 do
|
for i:=1 to tracesize div 2 do
|
||||||
if pp^.calls[i]<>0 then
|
if pp^.calls[i]<>NullCall then
|
||||||
writeln(ptext,BackTraceStrFunc(pp^.calls[i]));
|
writeln(ptext,BackTraceStrFunc(pp^.calls[i]));
|
||||||
writeln(ptext,' was released at ');
|
writeln(ptext,' was released at ');
|
||||||
for i:=(tracesize div 2)+1 to tracesize do
|
for i:=(tracesize div 2)+1 to tracesize do
|
||||||
if pp^.calls[i]<>0 then
|
if pp^.calls[i]<>NullCall then
|
||||||
writeln(ptext,BackTraceStrFunc(pp^.calls[i]));
|
writeln(ptext,BackTraceStrFunc(pp^.calls[i]));
|
||||||
{ the check is done to be sure that the procvar is not overwritten }
|
{ the check is done to be sure that the procvar is not overwritten }
|
||||||
if assigned(pp^.extra_info) and
|
if assigned(pp^.extra_info) and
|
||||||
@ -1724,7 +1730,8 @@ end;
|
|||||||
|
|
||||||
Function TraceGetMem(size:longint):pointer;
|
Function TraceGetMem(size:longint):pointer;
|
||||||
var
|
var
|
||||||
allocsize,i,bp : longint;
|
allocsize,i: longint;
|
||||||
|
bp : TCall;
|
||||||
pl : pdword;
|
pl : pdword;
|
||||||
p : pointer;
|
p : pointer;
|
||||||
pp : pheap_mem_info;
|
pp : pheap_mem_info;
|
||||||
@ -1807,7 +1814,8 @@ end;
|
|||||||
|
|
||||||
function TraceFreeMemSize(p:pointer;size:longint):longint;
|
function TraceFreeMemSize(p:pointer;size:longint):longint;
|
||||||
var
|
var
|
||||||
i,bp, ppsize : longint;
|
i, ppsize : longint;
|
||||||
|
bp: TCall;
|
||||||
pp : pheap_mem_info;
|
pp : pheap_mem_info;
|
||||||
{$ifdef EXTRA}
|
{$ifdef EXTRA}
|
||||||
pp2 : pheap_mem_info;
|
pp2 : pheap_mem_info;
|
||||||
@ -1967,7 +1975,8 @@ var
|
|||||||
newP: pointer;
|
newP: pointer;
|
||||||
oldsize,
|
oldsize,
|
||||||
allocsize,
|
allocsize,
|
||||||
i,bp : longint;
|
i : longint;
|
||||||
|
bp: TCall;
|
||||||
pl : pdword;
|
pl : pdword;
|
||||||
pp : pheap_mem_info;
|
pp : pheap_mem_info;
|
||||||
oldextrasize,
|
oldextrasize,
|
||||||
@ -2551,6 +2560,9 @@ end.
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.19 2003/04/12 09:26:58 mattias
|
||||||
|
fixes for current fpc 1.1
|
||||||
|
|
||||||
Revision 1.18 2003/03/30 20:37:15 mattias
|
Revision 1.18 2003/03/30 20:37:15 mattias
|
||||||
ipro now shows simple HTML pages
|
ipro now shows simple HTML pages
|
||||||
|
|
||||||
|
@ -210,8 +210,8 @@ Type
|
|||||||
|
|
||||||
|
|
||||||
Type
|
Type
|
||||||
TGridCoord = Type TPoint;
|
TGridCoord = {$IFNDEF New1_1}Type{$ENDIF} TPoint;
|
||||||
TGridRect = Type TRect;
|
TGridRect = {$IFNDEF New1_1}Type{$ENDIF} TRect;
|
||||||
|
|
||||||
TGridDataCache=Record
|
TGridDataCache=Record
|
||||||
FixedWidth: Integer; // Sum( Fixed ColsWidths[i] )
|
FixedWidth: Integer; // Sum( Fixed ColsWidths[i] )
|
||||||
|
@ -79,6 +79,20 @@ type
|
|||||||
pByte = ^byte;
|
pByte = ^byte;
|
||||||
HGLOBAL = THAndle;
|
HGLOBAL = THAndle;
|
||||||
|
|
||||||
|
TgComponentStyle = LongInt;
|
||||||
|
AnsiChar = Char; //Should be moved
|
||||||
|
WideChar = Char;
|
||||||
|
Short = SmallInt;
|
||||||
|
THAndle = Integer;
|
||||||
|
hwnd = THandle;
|
||||||
|
TCaption = string;
|
||||||
|
//TMessage = Pointer;
|
||||||
|
HMENU = type LongWord;
|
||||||
|
HBitmap = type LongWord;
|
||||||
|
HPalette = type LongWord;
|
||||||
|
|
||||||
|
HBRUSH = type LongWord;
|
||||||
|
|
||||||
// from Delphis sysutils.pas
|
// from Delphis sysutils.pas
|
||||||
PByteArray = ^TByteArray;
|
PByteArray = ^TByteArray;
|
||||||
TByteArray = array[0..32767] of Byte;
|
TByteArray = array[0..32767] of Byte;
|
||||||
@ -1797,6 +1811,9 @@ end.
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.36 2003/04/12 09:26:58 mattias
|
||||||
|
fixes for current fpc 1.1
|
||||||
|
|
||||||
Revision 1.35 2003/03/29 17:20:05 mattias
|
Revision 1.35 2003/03/29 17:20:05 mattias
|
||||||
added TMemoScrollBar
|
added TMemoScrollBar
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
Author: Mattias Gaertner
|
Author: Mattias Gaertner
|
||||||
|
|
||||||
Abstract:
|
Abstract:
|
||||||
TPackageOptionsDialog is the form for the options of a package.
|
TPackageOptionsDialog is the form for the general options of a package.
|
||||||
}
|
}
|
||||||
unit PkgOptionsDlg;
|
unit PkgOptionsDlg;
|
||||||
|
|
||||||
@ -44,12 +44,16 @@ uses
|
|||||||
type
|
type
|
||||||
TPackageOptionsDialog = class(TForm)
|
TPackageOptionsDialog = class(TForm)
|
||||||
Notebook: TNotebook;
|
Notebook: TNotebook;
|
||||||
// general page
|
// description page
|
||||||
GeneralPage: TPage;
|
DescriptionPage: TPage;
|
||||||
DescriptionGroupBox: TGroupBox;
|
DescriptionGroupBox: TGroupBox;
|
||||||
DescriptionMemo: TMemo;
|
DescriptionMemo: TMemo;
|
||||||
UsageRadioGroup: TRadioGroup;
|
UsageRadioGroup: TRadioGroup;
|
||||||
BuildRadioGroup: TRadioGroup;
|
BuildRadioGroup: TRadioGroup;
|
||||||
|
AuthorLabel: TLabel;
|
||||||
|
AuthorEdit: TEdit;
|
||||||
|
// usage page
|
||||||
|
UsagePage: TPage;
|
||||||
|
|
||||||
public
|
public
|
||||||
constructor Create(TheOwner: TComponent); override;
|
constructor Create(TheOwner: TComponent); override;
|
||||||
|
Loading…
Reference in New Issue
Block a user