* Use cdecl instead of stdcall on non-Windows

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1346 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
Loesje_ 2010-10-13 19:00:37 +00:00
parent 1f22a672ad
commit 2ce72c0953
26 changed files with 5092 additions and 4980 deletions

View File

@ -34,6 +34,14 @@
* ***** END LICENSE BLOCK ***** *) * ***** END LICENSE BLOCK ***** *)
unit GeckoBrowser; unit GeckoBrowser;
{$MACRO on}
{$IFDEF Windows}
{$DEFINE extdecl:=stdcall}
{$ELSE Windows}
{$DEFINE extdecl:=cdecl}
{$ENDIF}
{$IFDEF LCLCocoa} {$IFDEF LCLCocoa}
{$MODESWITCH ObjectiveC1} {$MODESWITCH ObjectiveC1}
{$ENDIF} {$ENDIF}
@ -507,7 +515,7 @@ type
procedure SetTitle(const aTitle: PWideChar); override; procedure SetTitle(const aTitle: PWideChar); override;
function GetSiteWindow(): Pointer; override; {$IFDEF FPC} safecall; {$ENDIF} function GetSiteWindow(): Pointer; override; {$IFDEF FPC} safecall; {$ENDIF}
// nsIInterfaceRequestor // nsIInterfaceRequestor
function NS_GetInterface(const uuid: TGUID; out _result): nsresult; stdcall; function NS_GetInterface(const uuid: TGUID; out _result): nsresult; extdecl;
function nsIInterfaceRequestor_std19.GetInterface = NS_GetInterface; function nsIInterfaceRequestor_std19.GetInterface = NS_GetInterface;
// nsIContextMenuListener2 // nsIContextMenuListener2
procedure OnShowContextMenu(aContextFlags: PRUint32; procedure OnShowContextMenu(aContextFlags: PRUint32;
@ -555,12 +563,12 @@ type
FOnNewWindow: TGeckoBrowserNewWindow; FOnNewWindow: TGeckoBrowserNewWindow;
// nsISHistoryListener // nsISHistoryListener
function OnHistoryNewEntry(aNewURI: nsIURI): Longword; stdcall; function OnHistoryNewEntry(aNewURI: nsIURI): Longword; extdecl;
function OnHistoryGoBack(aBackURI: nsIURI; out aContinue: LongBool): Longword; stdcall; function OnHistoryGoBack(aBackURI: nsIURI; out aContinue: LongBool): Longword; extdecl;
function OnHistoryGoForward(aForwardURI: nsIURI; out aContinue: LongBool): Longword; stdcall; function OnHistoryGoForward(aForwardURI: nsIURI; out aContinue: LongBool): Longword; extdecl;
function OnHistoryReload(aReloadURI: nsIURI; aReloadFlags: Longword; out aContinue: LongBool): Longword; stdcall; function OnHistoryReload(aReloadURI: nsIURI; aReloadFlags: Longword; out aContinue: LongBool): Longword; extdecl;
function OnHistoryGotoIndex(aIndex: Longint; aGotoURI: nsIURI; out aContinue: LongBool): Longword; stdcall; function OnHistoryGotoIndex(aIndex: Longint; aGotoURI: nsIURI; out aContinue: LongBool): Longword; extdecl;
function OnHistoryPurge(aNumEntries: Longint; out aContinue: LongBool): Longword; stdcall; function OnHistoryPurge(aNumEntries: Longint; out aContinue: LongBool): Longword; extdecl;
function GetHistoryEntry(index: Integer): TGeckoBrowserHisoty; function GetHistoryEntry(index: Integer): TGeckoBrowserHisoty;
function GetHistoryPosition: Integer; function GetHistoryPosition: Integer;

View File

@ -34,6 +34,14 @@
* ***** END LICENSE BLOCK ***** *) * ***** END LICENSE BLOCK ***** *)
unit GeckoChromeWindow; unit GeckoChromeWindow;
{$MACRO on}
{$IFDEF Windows}
{$DEFINE extdecl:=stdcall}
{$ELSE Windows}
{$DEFINE extdecl:=cdecl}
{$ENDIF}
{$IFDEF LCLCocoa} {$IFDEF LCLCocoa}
{$MODESWITCH ObjectiveC1} {$MODESWITCH ObjectiveC1}
{$ENDIF} {$ENDIF}
@ -91,7 +99,7 @@ type
procedure OnStatusChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStatus: nsresult; const aMessage: PWideChar); safecall; procedure OnStatusChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStatus: nsresult; const aMessage: PWideChar); safecall;
procedure OnSecurityChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; state: PRUint32); safecall; procedure OnSecurityChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; state: PRUint32); safecall;
// nsIInterfaceRequestor // nsIInterfaceRequestor
function NS_GetInterface(const uuid: TGUID; out Intf): nsresult; stdcall; function NS_GetInterface(const uuid: TGUID; out Intf): nsresult; extdecl;
function nsIInterfaceRequestor_std19.GetInterface = NS_GetInterface; function nsIInterfaceRequestor_std19.GetInterface = NS_GetInterface;
// for nsIWeakReference // for nsIWeakReference
procedure QueryReferent(const IID: TGUID; out Obj); safecall; procedure QueryReferent(const IID: TGUID; out Obj); safecall;

View File

@ -1,5 +1,13 @@
unit GeckoDirectoryService; unit GeckoDirectoryService;
{$MACRO on}
{$IFDEF Windows}
{$DEFINE extdecl:=stdcall}
{$ELSE Windows}
{$DEFINE extdecl:=cdecl}
{$ENDIF}
interface interface
uses uses
@ -70,9 +78,9 @@ type
FOwner: TCustomDirectoryServiceProvider; FOwner: TCustomDirectoryServiceProvider;
constructor Create(AOwner: TCustomDirectoryServiceProvider); constructor Create(AOwner: TCustomDirectoryServiceProvider);
function GetFile(const prop: PAnsiChar; out persistent: PRBool; function GetFile(const prop: PAnsiChar; out persistent: PRBool;
out _retval: nsIFile_std19): nsresult; stdcall; out _retval: nsIFile_std19): nsresult; extdecl;
function GetFiles(const prop: PAnsiChar; function GetFiles(const prop: PAnsiChar;
out _retval: nsISimpleEnumerator_std19): nsresult; stdcall; out _retval: nsISimpleEnumerator_std19): nsresult; extdecl;
end; end;
procedure Register; procedure Register;

View File

@ -3,5 +3,5 @@
const aFromSegment: Pointer; const aFromSegment: Pointer;
aToOffset: PRUint32; aToOffset: PRUint32;
aCount: PRUint32; aCount: PRUint32;
out aWriteCount: PRUint32): nsresult; stdcall; out aWriteCount: PRUint32): nsresult; extdecl;

View File

@ -3,5 +3,5 @@
const aFromSegment: Pointer; const aFromSegment: Pointer;
aToOffset: PRUint32; aToOffset: PRUint32;
aCount: PRUint32; aCount: PRUint32;
out aWriteCount: PRUint32): nsresult; stdcall; out aWriteCount: PRUint32): nsresult; extdecl;

View File

@ -3,5 +3,5 @@
const aFromSegment: Pointer; const aFromSegment: Pointer;
aToOffset: PRUint32; aToOffset: PRUint32;
aCount: PRUint32; aCount: PRUint32;
out aWriteCount: PRUint32): nsresult; stdcall; out aWriteCount: PRUint32): nsresult; extdecl;

View File

@ -3,5 +3,5 @@
const aFromSegment: Pointer; const aFromSegment: Pointer;
aToOffset: PRUint32; aToOffset: PRUint32;
aCount: PRUint32; aCount: PRUint32;
out aWriteCount: PRUint32): nsresult; stdcall; out aWriteCount: PRUint32): nsresult; extdecl;

View File

@ -3,5 +3,5 @@
const aFromSegment: Pointer; const aFromSegment: Pointer;
aToOffset: PRUint32; aToOffset: PRUint32;
aCount: PRUint32; aCount: PRUint32;
out aWriteCount: PRUint32): nsresult; stdcall; out aWriteCount: PRUint32): nsresult; extdecl;

View File

@ -3,5 +3,5 @@
const aFromSegment: Pointer; const aFromSegment: Pointer;
aToOffset: PRUint32; aToOffset: PRUint32;
aCount: PRUint32; aCount: PRUint32;
out aWriteCount: PRUint32): nsresult; stdcall; out aWriteCount: PRUint32): nsresult; extdecl;

View File

@ -3,5 +3,5 @@
aToSegment: Pointer; aToSegment: Pointer;
aFromOffset: PRUint32; aFromOffset: PRUint32;
aCount: PRUint32; aCount: PRUint32;
out aReadCount: PRUint32): nsresult; stdcall; out aReadCount: PRUint32): nsresult; extdecl;

View File

@ -3,5 +3,5 @@
aToSegment: Pointer; aToSegment: Pointer;
aFromOffset: PRUint32; aFromOffset: PRUint32;
aCount: PRUint32; aCount: PRUint32;
out aReadCount: PRUint32): nsresult; stdcall; out aReadCount: PRUint32): nsresult; extdecl;

View File

@ -3,5 +3,5 @@
aToSegment: Pointer; aToSegment: Pointer;
aFromOffset: PRUint32; aFromOffset: PRUint32;
aCount: PRUint32; aCount: PRUint32;
out aReadCount: PRUint32): nsresult; stdcall; out aReadCount: PRUint32): nsresult; extdecl;

View File

@ -3,5 +3,5 @@
aToSegment: Pointer; aToSegment: Pointer;
aFromOffset: PRUint32; aFromOffset: PRUint32;
aCount: PRUint32; aCount: PRUint32;
out aReadCount: PRUint32): nsresult; stdcall; out aReadCount: PRUint32): nsresult; extdecl;

View File

@ -3,5 +3,5 @@
aToSegment: Pointer; aToSegment: Pointer;
aFromOffset: PRUint32; aFromOffset: PRUint32;
aCount: PRUint32; aCount: PRUint32;
out aReadCount: PRUint32): nsresult; stdcall; out aReadCount: PRUint32): nsresult; extdecl;

View File

@ -3,5 +3,5 @@
aToSegment: Pointer; aToSegment: Pointer;
aFromOffset: PRUint32; aFromOffset: PRUint32;
aCount: PRUint32; aCount: PRUint32;
out aReadCount: PRUint32): nsresult; stdcall; out aReadCount: PRUint32): nsresult; extdecl;

View File

@ -1,5 +1,13 @@
unit nsXPCOM_safe17; unit nsXPCOM_safe17;
{$MACRO on}
{$IFDEF Windows}
{$DEFINE extdecl:=stdcall}
{$ELSE Windows}
{$DEFINE extdecl:=cdecl}
{$ENDIF}
interface interface
uses uses
@ -1017,7 +1025,7 @@ type
const aFromSegment: Pointer; const aFromSegment: Pointer;
aToOffset: PRUint32; aToOffset: PRUint32;
aCount: PRUint32; aCount: PRUint32;
out aWriteCount: PRUint32): nsresult; stdcall; out aWriteCount: PRUint32): nsresult; extdecl;
nsReadSegmentFun = function (aOutStream: nsIOutputStream_safe17; nsReadSegmentFun = function (aOutStream: nsIOutputStream_safe17;
@ -1025,7 +1033,7 @@ type
aToSegment: Pointer; aToSegment: Pointer;
aFromOffset: PRUint32; aFromOffset: PRUint32;
aCount: PRUint32; aCount: PRUint32;
out aReadCount: PRUint32): nsresult; stdcall; out aReadCount: PRUint32): nsresult; extdecl;
DOMTimeStamp = PRUint64; DOMTimeStamp = PRUint64;
@ -3015,9 +3023,9 @@ type
nsIMemory_safe17 = interface(nsISupports_safe17) nsIMemory_safe17 = interface(nsISupports_safe17)
['{59e7e77a-38e4-11d4-8cf5-0060b0fc14a3}'] ['{59e7e77a-38e4-11d4-8cf5-0060b0fc14a3}']
function Alloc(size: size_t): Pointer; stdcall; function Alloc(size: size_t): Pointer; extdecl;
function Realloc(ptr: Pointer; newSize: size_t): Pointer; stdcall; function Realloc(ptr: Pointer; newSize: size_t): Pointer; extdecl;
procedure Free(ptr: Pointer); stdcall; procedure Free(ptr: Pointer); extdecl;
procedure HeapMinimize(immediate: PRBool); safecall; procedure HeapMinimize(immediate: PRBool); safecall;
function IsLowMemory(): PRBool; safecall; function IsLowMemory(): PRBool; safecall;
end; end;

View File

@ -1,5 +1,13 @@
unit nsXPCOM_safe18; unit nsXPCOM_safe18;
{$MACRO on}
{$IFDEF Windows}
{$DEFINE extdecl:=stdcall}
{$ELSE Windows}
{$DEFINE extdecl:=cdecl}
{$ENDIF}
interface interface
uses uses
@ -1035,7 +1043,7 @@ type
const aFromSegment: Pointer; const aFromSegment: Pointer;
aToOffset: PRUint32; aToOffset: PRUint32;
aCount: PRUint32; aCount: PRUint32;
out aWriteCount: PRUint32): nsresult; stdcall; out aWriteCount: PRUint32): nsresult; extdecl;
nsReadSegmentFun = function (aOutStream: nsIOutputStream_safe18; nsReadSegmentFun = function (aOutStream: nsIOutputStream_safe18;
@ -1043,7 +1051,7 @@ type
aToSegment: Pointer; aToSegment: Pointer;
aFromOffset: PRUint32; aFromOffset: PRUint32;
aCount: PRUint32; aCount: PRUint32;
out aReadCount: PRUint32): nsresult; stdcall; out aReadCount: PRUint32): nsresult; extdecl;
DOMTimeStamp = PRUint64; DOMTimeStamp = PRUint64;
@ -3053,9 +3061,9 @@ type
nsIMemory_safe18 = interface(nsISupports_safe18) nsIMemory_safe18 = interface(nsISupports_safe18)
['{59e7e77a-38e4-11d4-8cf5-0060b0fc14a3}'] ['{59e7e77a-38e4-11d4-8cf5-0060b0fc14a3}']
function Alloc(size: size_t): Pointer; stdcall; function Alloc(size: size_t): Pointer; extdecl;
function Realloc(ptr: Pointer; newSize: size_t): Pointer; stdcall; function Realloc(ptr: Pointer; newSize: size_t): Pointer; extdecl;
procedure Free(ptr: Pointer); stdcall; procedure Free(ptr: Pointer); extdecl;
procedure HeapMinimize(immediate: PRBool); safecall; procedure HeapMinimize(immediate: PRBool); safecall;
function IsLowMemory(): PRBool; safecall; function IsLowMemory(): PRBool; safecall;
end; end;

View File

@ -1,5 +1,13 @@
unit nsXPCOM_safe19; unit nsXPCOM_safe19;
{$MACRO on}
{$IFDEF Windows}
{$DEFINE extdecl:=stdcall}
{$ELSE Windows}
{$DEFINE extdecl:=cdecl}
{$ENDIF}
interface interface
uses uses
@ -1071,7 +1079,7 @@ type
const aFromSegment: Pointer; const aFromSegment: Pointer;
aToOffset: PRUint32; aToOffset: PRUint32;
aCount: PRUint32; aCount: PRUint32;
out aWriteCount: PRUint32): nsresult; stdcall; out aWriteCount: PRUint32): nsresult; extdecl;
nsReadSegmentFun = function (aOutStream: nsIOutputStream_safe19; nsReadSegmentFun = function (aOutStream: nsIOutputStream_safe19;
@ -1079,7 +1087,7 @@ type
aToSegment: Pointer; aToSegment: Pointer;
aFromOffset: PRUint32; aFromOffset: PRUint32;
aCount: PRUint32; aCount: PRUint32;
out aReadCount: PRUint32): nsresult; stdcall; out aReadCount: PRUint32): nsresult; extdecl;
DOMTimeStamp = PRUint64; DOMTimeStamp = PRUint64;
@ -3161,9 +3169,9 @@ type
nsIMemory_safe19 = interface(nsISupports_safe19) nsIMemory_safe19 = interface(nsISupports_safe19)
['{59e7e77a-38e4-11d4-8cf5-0060b0fc14a3}'] ['{59e7e77a-38e4-11d4-8cf5-0060b0fc14a3}']
function Alloc(size: size_t): Pointer; stdcall; function Alloc(size: size_t): Pointer; extdecl;
function Realloc(ptr: Pointer; newSize: size_t): Pointer; stdcall; function Realloc(ptr: Pointer; newSize: size_t): Pointer; extdecl;
procedure Free(ptr: Pointer); stdcall; procedure Free(ptr: Pointer); extdecl;
procedure HeapMinimize(immediate: PRBool); safecall; procedure HeapMinimize(immediate: PRBool); safecall;
function IsLowMemory(): PRBool; safecall; function IsLowMemory(): PRBool; safecall;
end; end;

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,13 @@
unit nsEnumerators; unit nsEnumerators;
{$MACRO on}
{$IFDEF Windows}
{$DEFINE extdecl:=stdcall}
{$ELSE Windows}
{$DEFINE extdecl:=cdecl}
{$ENDIF}
interface interface
uses uses
@ -20,8 +28,8 @@ type
FOwn: Boolean; FOwn: Boolean;
FIndex: Integer; FIndex: Integer;
destructor Destroy; override; destructor Destroy; override;
function HasMoreElements(out _retval: PRBool): nsresult; stdcall; function HasMoreElements(out _retval: PRBool): nsresult; extdecl;
function GetNext(out _retval: nsISupports_std19): nsresult; stdcall; function GetNext(out _retval: nsISupports_std19): nsresult; extdecl;
end; end;
function NewSimpleEnumeratorFromTInterfaceList(AList: TInterfaceList; function NewSimpleEnumeratorFromTInterfaceList(AList: TInterfaceList;

View File

@ -1,5 +1,13 @@
unit nsErrorUtils; unit nsErrorUtils;
{$MACRO on}
{$IFDEF Windows}
{$DEFINE extdecl:=stdcall}
{$ELSE Windows}
{$DEFINE extdecl:=cdecl}
{$ENDIF}
interface interface
uses uses
@ -20,20 +28,20 @@ type
['{e72f94b2-5f85-11d4-9877-00c04fa0cf4a}'] ['{e72f94b2-5f85-11d4-9877-00c04fa0cf4a}']
function registerErrorStringBundle( function registerErrorStringBundle(
aErrorModule: PRInt16; aErrorModule: PRInt16;
aStringBundleURL: PAnsiChar): nsresult; stdcall; aStringBundleURL: PAnsiChar): nsresult; extdecl;
function unregisterErrorStringBundle( function unregisterErrorStringBundle(
aErrorModule: PRInt16): nsresult; stdcall; aErrorModule: PRInt16): nsresult; extdecl;
function getErrorStringBundle( function getErrorStringBundle(
aErrorModule: PRInt16; aErrorModule: PRInt16;
out aResult: PAnsiChar): nsresult; stdcall; out aResult: PAnsiChar): nsresult; extdecl;
function registerErrorStringBundleKey( function registerErrorStringBundleKey(
aError: nsresult; aError: nsresult;
aStringBundleKey: PAnsiChar): nsresult; stdcall; aStringBundleKey: PAnsiChar): nsresult; extdecl;
function unregisterErrorStringBundleKey( function unregisterErrorStringBundleKey(
aError: nsresult): nsresult; stdcall; aError: nsresult): nsresult; extdecl;
function getErrorStringBundleKey( function getErrorStringBundleKey(
aError: nsresult; aError: nsresult;
out aResult: PAnsiChar): nsresult; stdcall; out aResult: PAnsiChar): nsresult; extdecl;
end; end;
const const

View File

@ -34,6 +34,14 @@
* ***** END LICENSE BLOCK ***** *) * ***** END LICENSE BLOCK ***** *)
unit nsInit; unit nsInit;
{$MACRO on}
{$IFDEF Windows}
{$DEFINE extdecl:=stdcall}
{$ELSE Windows}
{$DEFINE extdecl:=cdecl}
{$ENDIF}
interface interface
uses uses
@ -205,7 +213,7 @@ type
end; end;
nsIXPTCProxy = interface(nsISupports) nsIXPTCProxy = interface(nsISupports)
function CallMethod(aMethodIndex: PRUint16; const aInfo: XPTMethodDescriptor; aParams: PXPTCMiniVariantArray): nsresult; stdcall; function CallMethod(aMethodIndex: PRUint16; const aInfo: XPTMethodDescriptor; aParams: PXPTCMiniVariantArray): nsresult; extdecl;
end; end;
@ -305,7 +313,7 @@ type
type type
nsIDirectoryServiceProvider_stdcall = interface(nsISupports) nsIDirectoryServiceProvider_stdcall = interface(nsISupports)
['{bbf8cab0-d43a-11d3-8cc2-00609792278c}'] ['{bbf8cab0-d43a-11d3-8cc2-00609792278c}']
function GetFile(const prop: PAnsiChar; out persistent: PRBool; out AFile: nsIFile): nsresult; stdcall; function GetFile(const prop: PAnsiChar; out persistent: PRBool; out AFile: nsIFile): nsresult; extdecl;
end; end;
nsGREDirServiceProvider = class(TInterfacedObject, nsGREDirServiceProvider = class(TInterfacedObject,
@ -314,7 +322,7 @@ type
FPathEnvString: TMaxPathChar; FPathEnvString: TMaxPathChar;
class function NewInstance: TObject; override; class function NewInstance: TObject; override;
procedure FreeInstance; override; procedure FreeInstance; override;
function GetFile(const prop: PAnsiChar; out persistent: PRBool; out AFile: nsIFile): nsresult; stdcall; function GetFile(const prop: PAnsiChar; out persistent: PRBool; out AFile: nsIFile): nsresult; extdecl;
function GetGreDirectory(out AFile: nsILocalFile): nsresult; function GetGreDirectory(out AFile: nsILocalFile): nsresult;
end; end;
@ -330,7 +338,7 @@ type
{$IFNDEF MSWINDOWS} {$IFNDEF MSWINDOWS}
HINST = TLibHandle; HINST = TLibHandle;
{$ENDIF} {$ENDIF}
XPCOMExitRoutine = function : Longword; stdcall; XPCOMExitRoutine = function : Longword; extdecl;
InitFunc = function(out servMgr: nsIServiceManager; binDir: nsIFile; provider: nsIDirectoryServiceProvider): Longword; cdecl; InitFunc = function(out servMgr: nsIServiceManager; binDir: nsIFile; provider: nsIDirectoryServiceProvider): Longword; cdecl;
ShutdownFunc = function (servMgr: nsIServiceManager): Longword; cdecl; ShutdownFunc = function (servMgr: nsIServiceManager): Longword; cdecl;

View File

@ -1,5 +1,13 @@
unit nsThreadUtils; unit nsThreadUtils;
{$MACRO on}
{$IFDEF Windows}
{$DEFINE extdecl:=stdcall}
{$ELSE Windows}
{$DEFINE extdecl:=cdecl}
{$ENDIF}
interface interface
uses uses
@ -91,7 +99,7 @@ type
nsIThreadEventFilter = interface(nsISupports) nsIThreadEventFilter = interface(nsISupports)
['{a0605c0b-17f5-4681-b8cd-a1cd75d42559}'] ['{a0605c0b-17f5-4681-b8cd-a1cd75d42559}']
function acceptEvent(aEvent: nsIRunnable): PRBool; stdcall; function acceptEvent(aEvent: nsIRunnable): PRBool; extdecl;
end; end;
nsIThreadManager = interface(nsISupports) nsIThreadManager = interface(nsISupports)

View File

@ -1,5 +1,13 @@
unit nsXPCOM; unit nsXPCOM;
{$MACRO on}
{$IFDEF Windows}
{$DEFINE extdecl:=stdcall}
{$ELSE Windows}
{$DEFINE extdecl:=cdecl}
{$ENDIF}
interface interface
uses uses
@ -1075,7 +1083,7 @@ type
const aFromSegment: Pointer; const aFromSegment: Pointer;
aToOffset: PRUint32; aToOffset: PRUint32;
aCount: PRUint32; aCount: PRUint32;
out aWriteCount: PRUint32): nsresult; stdcall; out aWriteCount: PRUint32): nsresult; extdecl;
nsReadSegmentFun = function (aOutStream: nsIOutputStream; nsReadSegmentFun = function (aOutStream: nsIOutputStream;
@ -1083,7 +1091,7 @@ type
aToSegment: Pointer; aToSegment: Pointer;
aFromOffset: PRUint32; aFromOffset: PRUint32;
aCount: PRUint32; aCount: PRUint32;
out aReadCount: PRUint32): nsresult; stdcall; out aReadCount: PRUint32): nsresult; extdecl;
DOMTimeStamp = PRUint64; DOMTimeStamp = PRUint64;
@ -3165,9 +3173,9 @@ type
nsIMemory = interface(nsISupports) nsIMemory = interface(nsISupports)
['{59e7e77a-38e4-11d4-8cf5-0060b0fc14a3}'] ['{59e7e77a-38e4-11d4-8cf5-0060b0fc14a3}']
function Alloc(size: size_t): Pointer; stdcall; function Alloc(size: size_t): Pointer; extdecl;
function Realloc(ptr: Pointer; newSize: size_t): Pointer; stdcall; function Realloc(ptr: Pointer; newSize: size_t): Pointer; extdecl;
procedure Free(ptr: Pointer); stdcall; procedure Free(ptr: Pointer); extdecl;
procedure HeapMinimize(immediate: PRBool); safecall; procedure HeapMinimize(immediate: PRBool); safecall;
function IsLowMemory(): PRBool; safecall; function IsLowMemory(): PRBool; safecall;
end; end;