|
@@ -29,6 +29,35 @@
|
|
Basic Types/constants
|
|
Basic Types/constants
|
|
*****************************************************************************}
|
|
*****************************************************************************}
|
|
|
|
|
|
|
|
+ type
|
|
|
|
+ TextFile = Text;
|
|
|
|
+
|
|
|
|
+ PGuid = ^TGuid;
|
|
|
|
+ TGuid = packed record
|
|
|
|
+ case integer of
|
|
|
|
+ 1 : (
|
|
|
|
+ Data1 : DWord;
|
|
|
|
+ Data2 : word;
|
|
|
|
+ Data3 : word;
|
|
|
|
+ Data4 : array[0..7] of byte;
|
|
|
|
+ );
|
|
|
|
+ 2 : (
|
|
|
|
+ D1 : DWord;
|
|
|
|
+ D2 : word;
|
|
|
|
+ D3 : word;
|
|
|
|
+ D4 : array[0..7] of byte;
|
|
|
|
+ );
|
|
|
|
+ 3 : ( { uuid fields according to RFC4122 }
|
|
|
|
+ time_low : dword; // The low field of the timestamp
|
|
|
|
+ time_mid : word; // The middle field of the timestamp
|
|
|
|
+ time_hi_and_version : word; // The high field of the timestamp multiplexed with the version number
|
|
|
|
+ clock_seq_hi_and_reserved : byte; // The high field of the clock sequence multiplexed with the variant
|
|
|
|
+ clock_seq_low : byte; // The low field of the clock sequence
|
|
|
|
+ node : array[0..5] of byte; // The spatially unique node identifier
|
|
|
|
+ );
|
|
|
|
+ end;
|
|
|
|
+
|
|
|
|
+{$ifdef FPC_HAS_FEATURE_CLASSES}
|
|
const
|
|
const
|
|
vmtInstanceSize = 0;
|
|
vmtInstanceSize = 0;
|
|
vmtParent = sizeof(SizeInt)*2;
|
|
vmtParent = sizeof(SizeInt)*2;
|
|
@@ -68,8 +97,6 @@
|
|
E_NOTIMPL = hresult($80004001);
|
|
E_NOTIMPL = hresult($80004001);
|
|
|
|
|
|
type
|
|
type
|
|
- TextFile = Text;
|
|
|
|
-
|
|
|
|
{ now the let's declare the base classes for the class object
|
|
{ now the let's declare the base classes for the class object
|
|
model. The compiler expects TObject and IUnknown to be defined
|
|
model. The compiler expects TObject and IUnknown to be defined
|
|
first as forward classes }
|
|
first as forward classes }
|
|
@@ -130,31 +157,6 @@
|
|
property vParent: PVmt read GetvParent;
|
|
property vParent: PVmt read GetvParent;
|
|
end;
|
|
end;
|
|
|
|
|
|
- PGuid = ^TGuid;
|
|
|
|
- TGuid = packed record
|
|
|
|
- case integer of
|
|
|
|
- 1 : (
|
|
|
|
- Data1 : DWord;
|
|
|
|
- Data2 : word;
|
|
|
|
- Data3 : word;
|
|
|
|
- Data4 : array[0..7] of byte;
|
|
|
|
- );
|
|
|
|
- 2 : (
|
|
|
|
- D1 : DWord;
|
|
|
|
- D2 : word;
|
|
|
|
- D3 : word;
|
|
|
|
- D4 : array[0..7] of byte;
|
|
|
|
- );
|
|
|
|
- 3 : ( { uuid fields according to RFC4122 }
|
|
|
|
- time_low : dword; // The low field of the timestamp
|
|
|
|
- time_mid : word; // The middle field of the timestamp
|
|
|
|
- time_hi_and_version : word; // The high field of the timestamp multiplexed with the version number
|
|
|
|
- clock_seq_hi_and_reserved : byte; // The high field of the clock sequence multiplexed with the variant
|
|
|
|
- clock_seq_low : byte; // The low field of the clock sequence
|
|
|
|
- node : array[0..5] of byte; // The spatially unique node identifier
|
|
|
|
- );
|
|
|
|
- end;
|
|
|
|
-
|
|
|
|
// This enumerate is found both in the rtl and compiler. Do not change the order of the fields.
|
|
// This enumerate is found both in the rtl and compiler. Do not change the order of the fields.
|
|
tinterfaceentrytype = (etStandard,
|
|
tinterfaceentrytype = (etStandard,
|
|
etVirtualMethodResult,
|
|
etVirtualMethodResult,
|
|
@@ -467,6 +469,11 @@
|
|
Calling this method is only valid within an except block. }
|
|
Calling this method is only valid within an except block. }
|
|
procedure ReleaseExceptionObject;
|
|
procedure ReleaseExceptionObject;
|
|
|
|
|
|
|
|
+ const
|
|
|
|
+ { for safe as operator support }
|
|
|
|
+ IObjectInstance: TGuid = '{D91C9AF4-3C93-420F-A303-BF5BA82BFD23}';
|
|
|
|
+{$endif FPC_HAS_FEATURE_CLASSES}
|
|
|
|
+
|
|
{*****************************************************************************
|
|
{*****************************************************************************
|
|
Array of const support
|
|
Array of const support
|
|
*****************************************************************************}
|
|
*****************************************************************************}
|
|
@@ -515,8 +522,10 @@
|
|
vtString : (VString: PShortString);
|
|
vtString : (VString: PShortString);
|
|
vtPointer : (VPointer: Pointer);
|
|
vtPointer : (VPointer: Pointer);
|
|
vtPChar : (VPChar: PAnsiChar);
|
|
vtPChar : (VPChar: PAnsiChar);
|
|
|
|
+{$ifdef FPC_HAS_FEATURE_CLASSES}
|
|
vtObject : (VObject: TObject);
|
|
vtObject : (VObject: TObject);
|
|
vtClass : (VClass: TClass);
|
|
vtClass : (VClass: TClass);
|
|
|
|
+{$endif FPC_HAS_FEATURE_CLASSES}
|
|
vtPWideChar : (VPWideChar: PWideChar);
|
|
vtPWideChar : (VPWideChar: PWideChar);
|
|
vtAnsiString : (VAnsiString: Pointer);
|
|
vtAnsiString : (VAnsiString: Pointer);
|
|
vtCurrency : (VCurrency: PCurrency);
|
|
vtCurrency : (VCurrency: PCurrency);
|
|
@@ -533,11 +542,6 @@
|
|
var
|
|
var
|
|
DispCallByIDProc : codepointer;
|
|
DispCallByIDProc : codepointer;
|
|
|
|
|
|
- const
|
|
|
|
- { for safe as operator support }
|
|
|
|
- IObjectInstance: TGuid = '{D91C9AF4-3C93-420F-A303-BF5BA82BFD23}';
|
|
|
|
-
|
|
|
|
-
|
|
|
|
{*****************************************************************************
|
|
{*****************************************************************************
|
|
Resourcestring support
|
|
Resourcestring support
|
|
*****************************************************************************}
|
|
*****************************************************************************}
|