|
@@ -380,8 +380,11 @@ implementation
|
|
|
openchararraytype:=carraydef.create(0,-1,sizesinttype);
|
|
|
tarraydef(openchararraytype).elementdef:=cansichartype;
|
|
|
cfiletype:=cfiledef.createuntyped;
|
|
|
- cvarianttype:=cvariantdef.create(vt_normalvariant);
|
|
|
- colevarianttype:=cvariantdef.create(vt_olevariant);
|
|
|
+ if f_variants in features then
|
|
|
+ begin
|
|
|
+ cvarianttype:=cvariantdef.create(vt_normalvariant);
|
|
|
+ colevarianttype:=cvariantdef.create(vt_olevariant);
|
|
|
+ end;
|
|
|
|
|
|
{$ifdef cpufpemu}
|
|
|
{ Normal types }
|
|
@@ -469,8 +472,11 @@ implementation
|
|
|
addtype('WideChar',cwidechartype);
|
|
|
addtype('Text',cfiledef.createtext);
|
|
|
addtype('TypedFile',cfiledef.createtyped(voidtype));
|
|
|
- addtype('Variant',cvarianttype);
|
|
|
- addtype('OleVariant',colevarianttype);
|
|
|
+ if f_variants in features then
|
|
|
+ begin
|
|
|
+ addtype('Variant',cvarianttype);
|
|
|
+ addtype('OleVariant',colevarianttype);
|
|
|
+ end;
|
|
|
{ Internal types }
|
|
|
addtype('$undefined',cundefinedtype);
|
|
|
addtype('$formal',cformaltype);
|
|
@@ -530,8 +536,11 @@ implementation
|
|
|
{$endif x86}
|
|
|
addtype('$openchararray',openchararraytype);
|
|
|
addtype('$file',cfiletype);
|
|
|
- addtype('$variant',cvarianttype);
|
|
|
- addtype('$olevariant',colevarianttype);
|
|
|
+ if f_variants in features then
|
|
|
+ begin
|
|
|
+ addtype('$variant',cvarianttype);
|
|
|
+ addtype('$olevariant',colevarianttype);
|
|
|
+ end;
|
|
|
if init_settings.fputype<>fpu_none then
|
|
|
begin
|
|
|
addtype('$s32real',s32floattype);
|
|
@@ -678,8 +687,11 @@ implementation
|
|
|
loadtype('vtblarray',vmtarraytype);
|
|
|
loadtype('__vtbl_ptr_type',vmttype);
|
|
|
end;
|
|
|
- loadtype('variant',cvarianttype);
|
|
|
- loadtype('olevariant',colevarianttype);
|
|
|
+ if f_threading in features then
|
|
|
+ begin
|
|
|
+ loadtype('variant',cvarianttype);
|
|
|
+ loadtype('olevariant',colevarianttype);
|
|
|
+ end;
|
|
|
loadtype('methodpointer',methodpointertype);
|
|
|
loadtype('nestedprocpointer',nestedprocpointertype);
|
|
|
loadtype('HRESULT',hresultdef);
|