mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-30 11:00:06 +02:00
+ Removed HASVARIANT define
git-svn-id: trunk@244 -
This commit is contained in:
parent
393101a64d
commit
21425e303c
@ -766,7 +766,5 @@ begin
|
|||||||
errno := 0;
|
errno := 0;
|
||||||
{ Setup command line arguments }
|
{ Setup command line arguments }
|
||||||
argc:=GetParamCount(args);
|
argc:=GetParamCount(args);
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
{$endif HASVARIANT}
|
|
||||||
end.
|
end.
|
||||||
|
@ -539,8 +539,6 @@ begin
|
|||||||
(* This should be changed to a real value during *)
|
(* This should be changed to a real value during *)
|
||||||
(* thread driver initialization if appropriate. *)
|
(* thread driver initialization if appropriate. *)
|
||||||
ThreadID := 1;
|
ThreadID := 1;
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
{$endif HASVARIANT}
|
|
||||||
initwidestringmanager;
|
initwidestringmanager;
|
||||||
end.
|
end.
|
||||||
|
@ -254,8 +254,6 @@ Begin
|
|||||||
SetupCmdLine;
|
SetupCmdLine;
|
||||||
{ threading }
|
{ threading }
|
||||||
InitSystemThreads;
|
InitSystemThreads;
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
{$endif HASVARIANT}
|
|
||||||
initwidestringmanager;
|
initwidestringmanager;
|
||||||
End.
|
End.
|
||||||
|
@ -571,9 +571,7 @@ begin
|
|||||||
|
|
||||||
InitSystemThreads;
|
InitSystemThreads;
|
||||||
|
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
{$endif HASVARIANT}
|
|
||||||
|
|
||||||
if os_Mode in [osDOS,osDPMI] then
|
if os_Mode in [osDOS,osDPMI] then
|
||||||
DosEnvInit;
|
DosEnvInit;
|
||||||
|
@ -648,8 +648,6 @@ Begin
|
|||||||
InitDPMIExcp;
|
InitDPMIExcp;
|
||||||
InstallDefaultHandlers;
|
InstallDefaultHandlers;
|
||||||
{$endif EXCEPTIONS_IN_SYSTEM}
|
{$endif EXCEPTIONS_IN_SYSTEM}
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
{$endif HASVARIANT}
|
|
||||||
initwidestringmanager;
|
initwidestringmanager;
|
||||||
End.
|
End.
|
||||||
|
@ -202,7 +202,6 @@ Procedure fpc_Write_Text_Boolean(Len : Longint;var t : Text;b : Boolean); compil
|
|||||||
Procedure fpc_Write_Text_Char(Len : Longint;var t : Text;c : Char); compilerproc;
|
Procedure fpc_Write_Text_Char(Len : Longint;var t : Text;c : Char); compilerproc;
|
||||||
Procedure fpc_Write_Text_WideChar(Len : Longint;var t : Text;c : WideChar); compilerproc;
|
Procedure fpc_Write_Text_WideChar(Len : Longint;var t : Text;c : WideChar); compilerproc;
|
||||||
|
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
procedure fpc_variant_copy(d,s : pointer);compilerproc;
|
procedure fpc_variant_copy(d,s : pointer);compilerproc;
|
||||||
procedure fpc_write_text_variant(Len : Longint;var f : Text;const v : variant); compilerproc;
|
procedure fpc_write_text_variant(Len : Longint;var f : Text;const v : variant); compilerproc;
|
||||||
function fpc_variant_to_dynarray(const v : variant;typeinfo : pointer) : pointer;compilerproc;
|
function fpc_variant_to_dynarray(const v : variant;typeinfo : pointer) : pointer;compilerproc;
|
||||||
@ -211,7 +210,6 @@ function fpc_variant_to_interface(const v : variant) : iinterface;compilerproc;
|
|||||||
function fpc_interface_to_variant(const i : iinterface) : variant;compilerproc;
|
function fpc_interface_to_variant(const i : iinterface) : variant;compilerproc;
|
||||||
procedure fpc_vararray_get(var d : variant;const s : variant;indices : psizeint;len : sizeint);compilerproc;
|
procedure fpc_vararray_get(var d : variant;const s : variant;indices : psizeint;len : sizeint);compilerproc;
|
||||||
procedure fpc_vararray_put(var d : variant;const s : variant;indices : psizeint;len : sizeint);compilerproc;
|
procedure fpc_vararray_put(var d : variant;const s : variant;indices : psizeint;len : sizeint);compilerproc;
|
||||||
{$endif HASVARIANT}
|
|
||||||
|
|
||||||
Procedure fpc_Read_End(var f:Text); compilerproc;
|
Procedure fpc_Read_End(var f:Text); compilerproc;
|
||||||
Procedure fpc_ReadLn_End(var f : Text); compilerproc;
|
Procedure fpc_ReadLn_End(var f : Text); compilerproc;
|
||||||
|
@ -296,9 +296,7 @@
|
|||||||
{$ifdef HASCURRENCY}
|
{$ifdef HASCURRENCY}
|
||||||
vtCurrency : (VCurrency: PCurrency);
|
vtCurrency : (VCurrency: PCurrency);
|
||||||
{$endif HASCURRENCY}
|
{$endif HASCURRENCY}
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
vtVariant : (VVariant: PVariant);
|
vtVariant : (VVariant: PVariant);
|
||||||
{$endif HASVARIANT}
|
|
||||||
vtInterface : (VInterface: Pointer);
|
vtInterface : (VInterface: Pointer);
|
||||||
vtWideString : (VWideString: Pointer);
|
vtWideString : (VWideString: Pointer);
|
||||||
vtInt64 : (VInt64: PInt64);
|
vtInt64 : (VInt64: PInt64);
|
||||||
|
@ -136,10 +136,8 @@ begin
|
|||||||
tkObject,
|
tkObject,
|
||||||
tkRecord:
|
tkRecord:
|
||||||
recordrtti(data,typeinfo,@int_initialize);
|
recordrtti(data,typeinfo,@int_initialize);
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
tkVariant:
|
tkVariant:
|
||||||
variant_init(PVarData(Data)^);
|
variant_init(PVarData(Data)^);
|
||||||
{$endif HASVARIANT}
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -169,10 +167,8 @@ begin
|
|||||||
end;
|
end;
|
||||||
tkDynArray:
|
tkDynArray:
|
||||||
fpc_dynarray_decr_ref(PPointer(Data)^,TypeInfo);
|
fpc_dynarray_decr_ref(PPointer(Data)^,TypeInfo);
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
tkVariant:
|
tkVariant:
|
||||||
variant_clear(PVarData(Data)^);
|
variant_clear(PVarData(Data)^);
|
||||||
{$endif HASVARIANT}
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -193,10 +189,8 @@ begin
|
|||||||
fpc_dynarray_incr_ref(PPointer(Data)^);
|
fpc_dynarray_incr_ref(PPointer(Data)^);
|
||||||
tkInterface:
|
tkInterface:
|
||||||
Intf_Incr_Ref(PPointer(Data)^);
|
Intf_Incr_Ref(PPointer(Data)^);
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
tkVariant:
|
tkVariant:
|
||||||
variant_addref(pvardata(Data)^);
|
variant_addref(pvardata(Data)^);
|
||||||
{$endif HASVARIANT}
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -222,10 +216,8 @@ begin
|
|||||||
fpc_dynarray_decr_ref(PPointer(Data)^,TypeInfo);
|
fpc_dynarray_decr_ref(PPointer(Data)^,TypeInfo);
|
||||||
tkInterface:
|
tkInterface:
|
||||||
Intf_Decr_Ref(PPointer(Data)^);
|
Intf_Decr_Ref(PPointer(Data)^);
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
tkVariant:
|
tkVariant:
|
||||||
variant_clear(pvardata(data)^);
|
variant_clear(pvardata(data)^);
|
||||||
{$endif HASVARIANT}
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -279,9 +279,7 @@ end;
|
|||||||
Variant support
|
Variant support
|
||||||
*****************************************************************************}
|
*****************************************************************************}
|
||||||
|
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
{$i variant.inc}
|
{$i variant.inc}
|
||||||
{$endif HASVARIANT}
|
|
||||||
{****************************************************************************
|
{****************************************************************************
|
||||||
Run-Time Type Information (RTTI)
|
Run-Time Type Information (RTTI)
|
||||||
****************************************************************************}
|
****************************************************************************}
|
||||||
|
@ -262,10 +262,8 @@ Type
|
|||||||
|
|
||||||
PDate = ^TDateTime;
|
PDate = ^TDateTime;
|
||||||
PError = ^Error;
|
PError = ^Error;
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
PVariant = ^Variant;
|
PVariant = ^Variant;
|
||||||
POleVariant = ^OleVariant;
|
POleVariant = ^OleVariant;
|
||||||
{$endif HASVARIANT}
|
|
||||||
|
|
||||||
PWideChar = ^WideChar;
|
PWideChar = ^WideChar;
|
||||||
PPWideChar = ^PWideChar;
|
PPWideChar = ^PWideChar;
|
||||||
@ -712,9 +710,7 @@ const
|
|||||||
Variant support
|
Variant support
|
||||||
*****************************************************************************}
|
*****************************************************************************}
|
||||||
|
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
{$i varianth.inc}
|
{$i varianth.inc}
|
||||||
{$endif HASVARIANT}
|
|
||||||
|
|
||||||
{*****************************************************************************
|
{*****************************************************************************
|
||||||
Internal helper routines support
|
Internal helper routines support
|
||||||
|
@ -243,8 +243,6 @@ Begin
|
|||||||
InOutRes:=0;
|
InOutRes:=0;
|
||||||
{ threading }
|
{ threading }
|
||||||
InitSystemThreads;
|
InitSystemThreads;
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
{$endif HASVARIANT}
|
|
||||||
initwidestringmanager;
|
initwidestringmanager;
|
||||||
End.
|
End.
|
||||||
|
@ -542,9 +542,7 @@ begin
|
|||||||
InOutRes:=0;
|
InOutRes:=0;
|
||||||
errno:=0;
|
errno:=0;
|
||||||
InitSystemThreads;
|
InitSystemThreads;
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
{$endif HASVARIANT}
|
|
||||||
initwidestringmanager;
|
initwidestringmanager;
|
||||||
|
|
||||||
if StandAlone = 0 then
|
if StandAlone = 0 then
|
||||||
|
@ -325,8 +325,6 @@ begin
|
|||||||
{ Arguments }
|
{ Arguments }
|
||||||
GenerateArgs;
|
GenerateArgs;
|
||||||
InitSystemThreads;
|
InitSystemThreads;
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
{$endif HASVARIANT}
|
|
||||||
initwidestringmanager;
|
initwidestringmanager;
|
||||||
end.
|
end.
|
||||||
|
@ -479,8 +479,6 @@ Begin
|
|||||||
IsConsole := TRUE;
|
IsConsole := TRUE;
|
||||||
ExitCode := 0;
|
ExitCode := 0;
|
||||||
InitSystemThreads;
|
InitSystemThreads;
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
{$endif HASVARIANT}
|
|
||||||
initwidestringmanager;
|
initwidestringmanager;
|
||||||
End.
|
End.
|
||||||
|
@ -550,8 +550,6 @@ Begin
|
|||||||
IsConsole := TRUE;
|
IsConsole := TRUE;
|
||||||
ExitCode := 0;
|
ExitCode := 0;
|
||||||
InitSystemThreads;
|
InitSystemThreads;
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
{$endif HASVARIANT}
|
|
||||||
initwidestringmanager;
|
initwidestringmanager;
|
||||||
End.
|
End.
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
|
||||||
**********************************************************************}
|
**********************************************************************}
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
|
|
||||||
Resourcestring
|
Resourcestring
|
||||||
|
|
||||||
@ -633,5 +632,4 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$endif HASVARIANT}
|
|
||||||
|
|
||||||
|
@ -29,9 +29,6 @@ unit typinfo;
|
|||||||
// temporary types:
|
// temporary types:
|
||||||
|
|
||||||
type
|
type
|
||||||
{$ifndef HASVARIANT}
|
|
||||||
Variant = Pointer;
|
|
||||||
{$endif}
|
|
||||||
|
|
||||||
{$MINENUMSIZE 1 this saves a lot of memory }
|
{$MINENUMSIZE 1 this saves a lot of memory }
|
||||||
// if you change one of the following enumeration types
|
// if you change one of the following enumeration types
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
**********************************************************************}
|
**********************************************************************}
|
||||||
|
|
||||||
|
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
Type
|
Type
|
||||||
EVarianterror = Class(Exception)
|
EVarianterror = Class(Exception)
|
||||||
ErrCode : longint;
|
ErrCode : longint;
|
||||||
@ -99,5 +98,4 @@ const
|
|||||||
ARR_DISPATCH = $0400;
|
ARR_DISPATCH = $0400;
|
||||||
ARR_VARIANT = $0800;
|
ARR_VARIANT = $0800;
|
||||||
|
|
||||||
{$endif HASVARIANT}
|
|
||||||
|
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
|
|
||||||
**********************************************************************}
|
**********************************************************************}
|
||||||
|
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
{ ---------------------------------------------------------------------
|
{ ---------------------------------------------------------------------
|
||||||
Some general stuff: Error handling and so on.
|
Some general stuff: Error handling and so on.
|
||||||
---------------------------------------------------------------------}
|
---------------------------------------------------------------------}
|
||||||
@ -718,4 +717,3 @@ begin
|
|||||||
Result:=psa^.ElementSize;
|
Result:=psa^.ElementSize;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$endif HASVARIANT}
|
|
||||||
|
@ -757,9 +757,7 @@ begin
|
|||||||
DefaultFileType := '';
|
DefaultFileType := '';
|
||||||
|
|
||||||
InitSystemThreads;
|
InitSystemThreads;
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
{$endif HASVARIANT}
|
|
||||||
|
|
||||||
{$IFDEF EXTDUMPGROW}
|
{$IFDEF EXTDUMPGROW}
|
||||||
{ Int_HeapSize := high (cardinal);}
|
{ Int_HeapSize := high (cardinal);}
|
||||||
|
@ -224,8 +224,6 @@ Begin
|
|||||||
{ Arguments }
|
{ Arguments }
|
||||||
SetupCmdLine;
|
SetupCmdLine;
|
||||||
InitSystemThreads;
|
InitSystemThreads;
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
{$endif HASVARIANT}
|
|
||||||
initwidestringmanager;
|
initwidestringmanager;
|
||||||
End.
|
End.
|
||||||
|
@ -1529,8 +1529,6 @@ Begin
|
|||||||
InitDPMIExcp;
|
InitDPMIExcp;
|
||||||
InstallDefaultHandlers;
|
InstallDefaultHandlers;
|
||||||
{$endif EXCEPTIONS_IN_SYSTEM}
|
{$endif EXCEPTIONS_IN_SYSTEM}
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
{$endif HASVARIANT}
|
|
||||||
initwidestringmanager;
|
initwidestringmanager;
|
||||||
End.
|
End.
|
||||||
|
@ -1092,9 +1092,7 @@ begin
|
|||||||
InitSystemThreads;
|
InitSystemThreads;
|
||||||
{ Reset internal error variable }
|
{ Reset internal error variable }
|
||||||
errno:=0;
|
errno:=0;
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
{$endif HASVARIANT}
|
|
||||||
initwidestringmanager;
|
initwidestringmanager;
|
||||||
InitWin32Widestrings
|
InitWin32Widestrings
|
||||||
end.
|
end.
|
||||||
|
@ -35,7 +35,6 @@ Implementation
|
|||||||
Windows external definitions.
|
Windows external definitions.
|
||||||
---------------------------------------------------------------------}
|
---------------------------------------------------------------------}
|
||||||
|
|
||||||
{$ifdef HASVARIANT}
|
|
||||||
const
|
const
|
||||||
oleaut = 'oleaut32.dll';
|
oleaut = 'oleaut32.dll';
|
||||||
|
|
||||||
@ -69,6 +68,5 @@ function SafeArrayPutElement(psa: PVarArray; Indices: PVarArrayCoorArray; const
|
|||||||
function SafeArrayRedim(psa: PVarArray; const NewBound: TVarArrayBound): HRESULT; stdcall;external oleaut;
|
function SafeArrayRedim(psa: PVarArray; const NewBound: TVarArrayBound): HRESULT; stdcall;external oleaut;
|
||||||
function SafeArrayUnaccessData(psa: PVarArray): HRESULT; stdcall;external oleaut;
|
function SafeArrayUnaccessData(psa: PVarArray): HRESULT; stdcall;external oleaut;
|
||||||
function SafeArrayUnlock(psa: PVarArray): HRESULT; stdcall;external oleaut;
|
function SafeArrayUnlock(psa: PVarArray): HRESULT; stdcall;external oleaut;
|
||||||
{$endif HASVARIANT}
|
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
@ -6651,44 +6651,6 @@
|
|||||||
TWOHandleArray = array[0..MAXIMUM_WAIT_OBJECTS-1] of HANDLE;
|
TWOHandleArray = array[0..MAXIMUM_WAIT_OBJECTS-1] of HANDLE;
|
||||||
PWOHandleArray = ^TWOHandleArray;
|
PWOHandleArray = ^TWOHandleArray;
|
||||||
|
|
||||||
{$ifndef HASVARIANT}
|
|
||||||
{ This causes trouble with a compiler which has real variant support FK }
|
|
||||||
{ Variant support }
|
|
||||||
TVarType = Word;
|
|
||||||
PVariant = ^TVariant;
|
|
||||||
|
|
||||||
{ This variant type definition doesn't contain _all_ possible variant
|
|
||||||
types - some are not possible atm with FPC, e.g. VT_BSTR to mention
|
|
||||||
This is part of the variant definition used by Windows API not that Borland
|
|
||||||
TVarRec one which is already partially implemented.
|
|
||||||
Needed for some COM objects }
|
|
||||||
|
|
||||||
TVariant = record
|
|
||||||
vt: TVarType;
|
|
||||||
wReserved1: Word;
|
|
||||||
wReserved2: Word;
|
|
||||||
wReserved3: Word;
|
|
||||||
case Integer of
|
|
||||||
VT_UI1: (bVal: Byte);
|
|
||||||
VT_I2: (iVal: Smallint);
|
|
||||||
VT_I4: (lVal: Longint);
|
|
||||||
VT_R4: (fltVal: Single);
|
|
||||||
VT_R8: (dblVal: Double);
|
|
||||||
VT_BOOL: (vbool: WordBool);
|
|
||||||
VT_ERROR: (scode: HResult);
|
|
||||||
VT_BYREF or VT_UI1: (pbVal: ^Byte);
|
|
||||||
VT_BYREF or VT_I2: (piVal: ^Smallint);
|
|
||||||
VT_BYREF or VT_I4: (plVal: ^Longint);
|
|
||||||
VT_BYREF or VT_R4: (pfltVal: ^Single);
|
|
||||||
VT_BYREF or VT_R8: (pdblVal: ^Double);
|
|
||||||
VT_BYREF or VT_BOOL: (pbool: ^WordBool);
|
|
||||||
VT_BYREF or VT_ERROR: (pscode: ^HResult);
|
|
||||||
VT_BYREF: (byRef: Pointer);
|
|
||||||
end;
|
|
||||||
|
|
||||||
VARIANT = TVariant;
|
|
||||||
{$endif HASVARIANT}
|
|
||||||
|
|
||||||
MMRESULT = Longint;
|
MMRESULT = Longint;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
Loading…
Reference in New Issue
Block a user