mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-15 12:09:18 +02:00
+ Merged revision 241
git-svn-id: branches/fixes_2_0@243 -
This commit is contained in:
parent
e71ac7f647
commit
0b6ef7f14e
@ -542,7 +542,5 @@ begin
|
|||||||
{$ifdef HASVARIANT}
|
{$ifdef HASVARIANT}
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
{$endif HASVARIANT}
|
{$endif HASVARIANT}
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
initwidestringmanager;
|
initwidestringmanager;
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
end.
|
end.
|
||||||
|
@ -257,7 +257,5 @@ Begin
|
|||||||
{$ifdef HASVARIANT}
|
{$ifdef HASVARIANT}
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
{$endif HASVARIANT}
|
{$endif HASVARIANT}
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
initwidestringmanager;
|
initwidestringmanager;
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
End.
|
End.
|
||||||
|
@ -651,7 +651,5 @@ Begin
|
|||||||
{$ifdef HASVARIANT}
|
{$ifdef HASVARIANT}
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
{$endif HASVARIANT}
|
{$endif HASVARIANT}
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
initwidestringmanager;
|
initwidestringmanager;
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
End.
|
End.
|
||||||
|
@ -177,11 +177,9 @@ Procedure fpc_WideStr_CheckRange(len,index : SizeInt); compilerproc;
|
|||||||
Procedure fpc_WideStr_SetLength (Var S : WideString; l : SizeInt); compilerproc;
|
Procedure fpc_WideStr_SetLength (Var S : WideString; l : SizeInt); compilerproc;
|
||||||
function fpc_widestr_Unique(Var S : Pointer): Pointer; compilerproc;
|
function fpc_widestr_Unique(Var S : Pointer): Pointer; compilerproc;
|
||||||
|
|
||||||
{$ifdef HASWIDECHAR}
|
|
||||||
Function fpc_PWideChar_To_AnsiStr(const p : pwidechar): ansistring; compilerproc;
|
Function fpc_PWideChar_To_AnsiStr(const p : pwidechar): ansistring; compilerproc;
|
||||||
Function fpc_PWideChar_To_WideStr(const p : pwidechar): widestring; compilerproc;
|
Function fpc_PWideChar_To_WideStr(const p : pwidechar): widestring; compilerproc;
|
||||||
Function fpc_PWideChar_To_ShortStr(const p : pwidechar): shortstring; compilerproc;
|
Function fpc_PWideChar_To_ShortStr(const p : pwidechar): shortstring; compilerproc;
|
||||||
{$endif HASWIDECHAR}
|
|
||||||
|
|
||||||
{ from text.inc }
|
{ from text.inc }
|
||||||
Function fpc_get_input:PText;{$ifdef hascompilerproc}compilerproc;{$endif}
|
Function fpc_get_input:PText;{$ifdef hascompilerproc}compilerproc;{$endif}
|
||||||
@ -192,9 +190,7 @@ Procedure fpc_Write_Text_ShortStr(Len : Longint;var f : Text;const s : String);
|
|||||||
Procedure fpc_Write_Text_Pchar_as_Array(Len : Longint;var f : Text;const s : array of char); compilerproc;
|
Procedure fpc_Write_Text_Pchar_as_Array(Len : Longint;var f : Text;const s : array of char); compilerproc;
|
||||||
Procedure fpc_Write_Text_PChar_As_Pointer(Len : Longint;var f : Text;p : PChar); compilerproc;
|
Procedure fpc_Write_Text_PChar_As_Pointer(Len : Longint;var f : Text;p : PChar); compilerproc;
|
||||||
Procedure fpc_Write_Text_AnsiStr (Len : Longint; Var f : Text; S : AnsiString); compilerproc;
|
Procedure fpc_Write_Text_AnsiStr (Len : Longint; Var f : Text; S : AnsiString); compilerproc;
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
Procedure fpc_Write_Text_WideStr (Len : Longint; Var f : Text; S : WideString); compilerproc;
|
Procedure fpc_Write_Text_WideStr (Len : Longint; Var f : Text; S : WideString); compilerproc;
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
Procedure fpc_Write_Text_SInt(Len : Longint;var t : Text;l : ValSInt); compilerproc;
|
Procedure fpc_Write_Text_SInt(Len : Longint;var t : Text;l : ValSInt); compilerproc;
|
||||||
Procedure fpc_Write_Text_UInt(Len : Longint;var t : Text;l : ValUInt); compilerproc;
|
Procedure fpc_Write_Text_UInt(Len : Longint;var t : Text;l : ValUInt); compilerproc;
|
||||||
{$ifndef CPU64}
|
{$ifndef CPU64}
|
||||||
@ -204,9 +200,7 @@ procedure fpc_write_text_int64(len : longint;var t : text;i : int64); compilerpr
|
|||||||
Procedure fpc_Write_Text_Float(rt,fixkomma,Len : Longint;var t : Text;r : ValReal); compilerproc;
|
Procedure fpc_Write_Text_Float(rt,fixkomma,Len : Longint;var t : Text;r : ValReal); compilerproc;
|
||||||
Procedure fpc_Write_Text_Boolean(Len : Longint;var t : Text;b : Boolean); compilerproc;
|
Procedure fpc_Write_Text_Boolean(Len : Longint;var t : Text;b : Boolean); compilerproc;
|
||||||
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;
|
||||||
{$ifdef HASWIDECHAR}
|
|
||||||
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;
|
||||||
{$endif HASWIDECHAR}
|
|
||||||
|
|
||||||
{$ifdef HASVARIANT}
|
{$ifdef HASVARIANT}
|
||||||
procedure fpc_variant_copy(d,s : pointer);compilerproc;
|
procedure fpc_variant_copy(d,s : pointer);compilerproc;
|
||||||
|
@ -762,7 +762,6 @@ end;
|
|||||||
|
|
||||||
{$endif ndef FPC_SYSTEM_HAS_FPC_PCHAR_LENGTH}
|
{$endif ndef FPC_SYSTEM_HAS_FPC_PCHAR_LENGTH}
|
||||||
|
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
{$ifndef FPC_SYSTEM_HAS_FPC_PWIDECHAR_LENGTH}
|
{$ifndef FPC_SYSTEM_HAS_FPC_PWIDECHAR_LENGTH}
|
||||||
|
|
||||||
function fpc_pwidechar_length(p:pwidechar):longint;[public,alias:'FPC_PWIDECHAR_LENGTH']; {$ifdef hascompilerproc} compilerproc; {$endif}
|
function fpc_pwidechar_length(p:pwidechar):longint;[public,alias:'FPC_PWIDECHAR_LENGTH']; {$ifdef hascompilerproc} compilerproc; {$endif}
|
||||||
@ -774,7 +773,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
{$endif ndef FPC_SYSTEM_HAS_FPC_PWIDECHAR_LENGTH}
|
{$endif ndef FPC_SYSTEM_HAS_FPC_PWIDECHAR_LENGTH}
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
|
|
||||||
{****************************************************************************
|
{****************************************************************************
|
||||||
Caller/StackFrame Helpers
|
Caller/StackFrame Helpers
|
||||||
|
@ -152,13 +152,11 @@ begin
|
|||||||
fpc_AnsiStr_Decr_Ref(PPointer(Data)^);
|
fpc_AnsiStr_Decr_Ref(PPointer(Data)^);
|
||||||
PPointer(Data)^:=nil;
|
PPointer(Data)^:=nil;
|
||||||
end;
|
end;
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
tkWstring :
|
tkWstring :
|
||||||
begin
|
begin
|
||||||
fpc_WideStr_Decr_Ref(PPointer(Data)^);
|
fpc_WideStr_Decr_Ref(PPointer(Data)^);
|
||||||
PPointer(Data)^:=nil;
|
PPointer(Data)^:=nil;
|
||||||
end;
|
end;
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
tkArray :
|
tkArray :
|
||||||
arrayrtti(data,typeinfo,@int_finalize);
|
arrayrtti(data,typeinfo,@int_finalize);
|
||||||
tkObject,
|
tkObject,
|
||||||
@ -184,10 +182,8 @@ begin
|
|||||||
case PByte(TypeInfo)^ of
|
case PByte(TypeInfo)^ of
|
||||||
tkAstring :
|
tkAstring :
|
||||||
fpc_AnsiStr_Incr_Ref(PPointer(Data)^);
|
fpc_AnsiStr_Incr_Ref(PPointer(Data)^);
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
tkWstring :
|
tkWstring :
|
||||||
fpc_WideStr_Incr_Ref(PPointer(Data)^);
|
fpc_WideStr_Incr_Ref(PPointer(Data)^);
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
tkArray :
|
tkArray :
|
||||||
arrayrtti(data,typeinfo,@int_addref);
|
arrayrtti(data,typeinfo,@int_addref);
|
||||||
tkobject,
|
tkobject,
|
||||||
@ -215,10 +211,8 @@ begin
|
|||||||
{ see AddRef for comment about below construct (JM) }
|
{ see AddRef for comment about below construct (JM) }
|
||||||
tkAstring:
|
tkAstring:
|
||||||
fpc_AnsiStr_Decr_Ref(PPointer(Data)^);
|
fpc_AnsiStr_Decr_Ref(PPointer(Data)^);
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
tkWstring:
|
tkWstring:
|
||||||
fpc_WideStr_Decr_Ref(PPointer(Data)^);
|
fpc_WideStr_Decr_Ref(PPointer(Data)^);
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
tkArray:
|
tkArray:
|
||||||
arrayrtti(data,typeinfo,@fpc_systemDecRef);
|
arrayrtti(data,typeinfo,@fpc_systemDecRef);
|
||||||
tkobject,
|
tkobject,
|
||||||
|
@ -259,9 +259,7 @@ end;
|
|||||||
{Requires int64.inc, since that contains the VAL functions for int64 and qword}
|
{Requires int64.inc, since that contains the VAL functions for int64 and qword}
|
||||||
{$i astrings.inc}
|
{$i astrings.inc}
|
||||||
|
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
{$i wstrings.inc}
|
{$i wstrings.inc}
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
|
|
||||||
{$i aliases.inc}
|
{$i aliases.inc}
|
||||||
|
|
||||||
|
@ -267,20 +267,12 @@ Type
|
|||||||
POleVariant = ^OleVariant;
|
POleVariant = ^OleVariant;
|
||||||
{$endif HASVARIANT}
|
{$endif HASVARIANT}
|
||||||
|
|
||||||
{$ifdef HASWIDECHAR}
|
|
||||||
PWideChar = ^WideChar;
|
PWideChar = ^WideChar;
|
||||||
PPWideChar = ^PWideChar;
|
PPWideChar = ^PWideChar;
|
||||||
{ 1.0.x also has HASWIDECHAR defined, but doesn't support it
|
|
||||||
fully, setting WChar to Word as fallback (PFV) }
|
|
||||||
WChar = Widechar;
|
WChar = Widechar;
|
||||||
UCS2Char = WideChar;
|
UCS2Char = WideChar;
|
||||||
PUCS2Char = PWideChar;
|
PUCS2Char = PWideChar;
|
||||||
{$else}
|
|
||||||
WChar = Word;
|
|
||||||
{$endif HASWIDECHAR}
|
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
PWideString = ^WideString;
|
PWideString = ^WideString;
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
|
|
||||||
{ Needed for fpc_get_output }
|
{ Needed for fpc_get_output }
|
||||||
PText = ^Text;
|
PText = ^Text;
|
||||||
@ -551,9 +543,7 @@ function lowercase(const s : ansistring) : ansistring;
|
|||||||
WideString Handling
|
WideString Handling
|
||||||
****************************************************************************}
|
****************************************************************************}
|
||||||
|
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
{$i wstringh.inc}
|
{$i wstringh.inc}
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
|
|
||||||
|
|
||||||
{****************************************************************************
|
{****************************************************************************
|
||||||
|
@ -608,7 +608,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
Procedure fpc_Write_Text_WideStr (Len : Longint; Var f : Text; S : WideString); iocheck; [Public,alias:'FPC_WRITE_TEXT_WIDESTR']; {$ifdef hascompilerproc} compilerproc; {$endif}
|
Procedure fpc_Write_Text_WideStr (Len : Longint; Var f : Text; S : WideString); iocheck; [Public,alias:'FPC_WRITE_TEXT_WIDESTR']; {$ifdef hascompilerproc} compilerproc; {$endif}
|
||||||
{
|
{
|
||||||
Writes a WideString to the Text file T
|
Writes a WideString to the Text file T
|
||||||
@ -630,7 +629,6 @@ begin
|
|||||||
else InOutRes:=103;
|
else InOutRes:=103;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
|
|
||||||
Procedure fpc_Write_Text_SInt(Len : Longint;var t : Text;l : ValSInt); iocheck; [Public,Alias:'FPC_WRITE_TEXT_SINT']; {$ifdef hascompilerproc} compilerproc; {$endif}
|
Procedure fpc_Write_Text_SInt(Len : Longint;var t : Text;l : ValSInt); iocheck; [Public,Alias:'FPC_WRITE_TEXT_SINT']; {$ifdef hascompilerproc} compilerproc; {$endif}
|
||||||
var
|
var
|
||||||
@ -722,7 +720,6 @@ Begin
|
|||||||
End;
|
End;
|
||||||
|
|
||||||
|
|
||||||
{$ifdef HASWIDECHAR}
|
|
||||||
Procedure fpc_Write_Text_WideChar(Len : Longint;var t : Text;c : WideChar); iocheck; [Public,Alias:'FPC_WRITE_TEXT_WIDECHAR']; {$ifdef hascompilerproc} compilerproc; {$endif}
|
Procedure fpc_Write_Text_WideChar(Len : Longint;var t : Text;c : WideChar); iocheck; [Public,Alias:'FPC_WRITE_TEXT_WIDECHAR']; {$ifdef hascompilerproc} compilerproc; {$endif}
|
||||||
var
|
var
|
||||||
ch : char;
|
ch : char;
|
||||||
@ -745,7 +742,6 @@ Begin
|
|||||||
TextRec(t).Bufptr^[TextRec(t).BufPos]:=ch;
|
TextRec(t).Bufptr^[TextRec(t).BufPos]:=ch;
|
||||||
Inc(TextRec(t).BufPos);
|
Inc(TextRec(t).BufPos);
|
||||||
End;
|
End;
|
||||||
{$endif HASWIDECHAR}
|
|
||||||
|
|
||||||
|
|
||||||
{*****************************************************************************
|
{*****************************************************************************
|
||||||
|
@ -246,7 +246,5 @@ Begin
|
|||||||
{$ifdef HASVARIANT}
|
{$ifdef HASVARIANT}
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
{$endif HASVARIANT}
|
{$endif HASVARIANT}
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
initwidestringmanager;
|
initwidestringmanager;
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
End.
|
End.
|
||||||
|
@ -545,9 +545,7 @@ begin
|
|||||||
{$ifdef HASVARIANT}
|
{$ifdef HASVARIANT}
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
{$endif HASVARIANT}
|
{$endif HASVARIANT}
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
initwidestringmanager;
|
initwidestringmanager;
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
|
|
||||||
if StandAlone = 0 then
|
if StandAlone = 0 then
|
||||||
begin
|
begin
|
||||||
|
@ -328,7 +328,5 @@ begin
|
|||||||
{$ifdef HASVARIANT}
|
{$ifdef HASVARIANT}
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
{$endif HASVARIANT}
|
{$endif HASVARIANT}
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
initwidestringmanager;
|
initwidestringmanager;
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
end.
|
end.
|
||||||
|
@ -482,7 +482,5 @@ Begin
|
|||||||
{$ifdef HASVARIANT}
|
{$ifdef HASVARIANT}
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
{$endif HASVARIANT}
|
{$endif HASVARIANT}
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
initwidestringmanager;
|
initwidestringmanager;
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
End.
|
End.
|
||||||
|
@ -553,7 +553,5 @@ Begin
|
|||||||
{$ifdef HASVARIANT}
|
{$ifdef HASVARIANT}
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
{$endif HASVARIANT}
|
{$endif HASVARIANT}
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
initwidestringmanager;
|
initwidestringmanager;
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
End.
|
End.
|
||||||
|
@ -1915,9 +1915,7 @@ end;
|
|||||||
|
|
||||||
Function StrCharLength(const Str: PChar): Integer;
|
Function StrCharLength(const Str: PChar): Integer;
|
||||||
begin
|
begin
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
result:=widestringmanager.CharLengthPCharProc(Str);
|
result:=widestringmanager.CharLengthPCharProc(Str);
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
@ -226,12 +226,10 @@ Function GetStrProp(Instance: TObject; const PropName: string): string;
|
|||||||
Procedure SetStrProp(Instance: TObject; const PropName: string; const Value: AnsiString);
|
Procedure SetStrProp(Instance: TObject; const PropName: string; const Value: AnsiString);
|
||||||
Procedure SetStrProp(Instance: TObject; PropInfo : PPropInfo; const Value : Ansistring);
|
Procedure SetStrProp(Instance: TObject; PropInfo : PPropInfo; const Value : Ansistring);
|
||||||
|
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
Function GetWideStrProp(Instance: TObject; PropInfo: PPropInfo): WideString;
|
Function GetWideStrProp(Instance: TObject; PropInfo: PPropInfo): WideString;
|
||||||
Function GetWideStrProp(Instance: TObject; const PropName: string): WideString;
|
Function GetWideStrProp(Instance: TObject; const PropName: string): WideString;
|
||||||
Procedure SetWideStrProp(Instance: TObject; const PropName: string; const Value: WideString);
|
Procedure SetWideStrProp(Instance: TObject; const PropName: string; const Value: WideString);
|
||||||
Procedure SetWideStrProp(Instance: TObject; PropInfo: PPropInfo; const Value: WideString);
|
Procedure SetWideStrProp(Instance: TObject; PropInfo: PPropInfo; const Value: WideString);
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
|
|
||||||
Function GetFloatProp(Instance: TObject; PropInfo : PPropInfo) : Extended;
|
Function GetFloatProp(Instance: TObject; PropInfo : PPropInfo) : Extended;
|
||||||
Function GetFloatProp(Instance: TObject; const PropName: string): Extended;
|
Function GetFloatProp(Instance: TObject; const PropName: string): Extended;
|
||||||
@ -1005,10 +1003,8 @@ var
|
|||||||
begin
|
begin
|
||||||
Result:='';
|
Result:='';
|
||||||
case Propinfo^.PropType^.Kind of
|
case Propinfo^.PropType^.Kind of
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
tkWString:
|
tkWString:
|
||||||
Result:=GetWideStrProp(Instance,PropInfo);
|
Result:=GetWideStrProp(Instance,PropInfo);
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
tkSString:
|
tkSString:
|
||||||
begin
|
begin
|
||||||
case (PropInfo^.PropProcs) and 3 of
|
case (PropInfo^.PropProcs) and 3 of
|
||||||
@ -1063,10 +1059,8 @@ var
|
|||||||
AMethod : TMethod;
|
AMethod : TMethod;
|
||||||
begin
|
begin
|
||||||
case Propinfo^.PropType^.Kind of
|
case Propinfo^.PropType^.Kind of
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
tkWString:
|
tkWString:
|
||||||
SetWideStrProp(Instance,PropInfo,Value);
|
SetWideStrProp(Instance,PropInfo,Value);
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
tkSString:
|
tkSString:
|
||||||
begin
|
begin
|
||||||
case (PropInfo^.PropProcs shr 2) and 3 of
|
case (PropInfo^.PropProcs shr 2) and 3 of
|
||||||
@ -1123,7 +1117,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
Function GetWideStrProp(Instance: TObject; const PropName: string): WideString;
|
Function GetWideStrProp(Instance: TObject; const PropName: string): WideString;
|
||||||
begin
|
begin
|
||||||
Result:=GetWideStrProp(Instance, FindPropInfo(Instance, PropName));
|
Result:=GetWideStrProp(Instance, FindPropInfo(Instance, PropName));
|
||||||
@ -1204,7 +1197,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
|
|
||||||
|
|
||||||
{ ---------------------------------------------------------------------
|
{ ---------------------------------------------------------------------
|
||||||
|
@ -227,7 +227,5 @@ Begin
|
|||||||
{$ifdef HASVARIANT}
|
{$ifdef HASVARIANT}
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
{$endif HASVARIANT}
|
{$endif HASVARIANT}
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
initwidestringmanager;
|
initwidestringmanager;
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
End.
|
End.
|
||||||
|
@ -19,13 +19,10 @@ unit cwstring;
|
|||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
procedure SetCWidestringManager;
|
procedure SetCWidestringManager;
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
{$linklib c}
|
{$linklib c}
|
||||||
|
|
||||||
Uses
|
Uses
|
||||||
@ -244,4 +241,3 @@ initialization
|
|||||||
finalization
|
finalization
|
||||||
iconv_close(iconv_ansi2wide);
|
iconv_close(iconv_ansi2wide);
|
||||||
end.
|
end.
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
|
@ -1532,7 +1532,5 @@ Begin
|
|||||||
{$ifdef HASVARIANT}
|
{$ifdef HASVARIANT}
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
{$endif HASVARIANT}
|
{$endif HASVARIANT}
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
initwidestringmanager;
|
initwidestringmanager;
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
End.
|
End.
|
||||||
|
@ -910,7 +910,6 @@ end;
|
|||||||
{$endif Set_i386_Exception_handler}
|
{$endif Set_i386_Exception_handler}
|
||||||
|
|
||||||
|
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
{****************************************************************************
|
{****************************************************************************
|
||||||
OS dependend widestrings
|
OS dependend widestrings
|
||||||
****************************************************************************}
|
****************************************************************************}
|
||||||
@ -945,7 +944,6 @@ procedure InitWin32Widestrings;
|
|||||||
widestringmanager.LowerWideStringProc:=@Win32WideLower;
|
widestringmanager.LowerWideStringProc:=@Win32WideLower;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
|
|
||||||
|
|
||||||
{****************************************************************************
|
{****************************************************************************
|
||||||
@ -1097,8 +1095,6 @@ begin
|
|||||||
{$ifdef HASVARIANT}
|
{$ifdef HASVARIANT}
|
||||||
initvariantmanager;
|
initvariantmanager;
|
||||||
{$endif HASVARIANT}
|
{$endif HASVARIANT}
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
initwidestringmanager;
|
initwidestringmanager;
|
||||||
InitWin32Widestrings
|
InitWin32Widestrings
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
end.
|
end.
|
||||||
|
@ -995,7 +995,6 @@ end;
|
|||||||
Target Dependent WideString stuff
|
Target Dependent WideString stuff
|
||||||
****************************************************************************}
|
****************************************************************************}
|
||||||
|
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
|
|
||||||
function Win32CompareWideString(const s1, s2 : WideString) : PtrInt;
|
function Win32CompareWideString(const s1, s2 : WideString) : PtrInt;
|
||||||
begin
|
begin
|
||||||
@ -1103,13 +1102,10 @@ procedure InitWin32Widestrings;
|
|||||||
widestringmanager.CompareTextWideStringProc:=@Win32CompareTextWideString;
|
widestringmanager.CompareTextWideStringProc:=@Win32CompareTextWideString;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
|
|
||||||
|
|
||||||
Initialization
|
Initialization
|
||||||
{$ifdef HASWIDESTRING}
|
|
||||||
InitWin32Widestrings;
|
InitWin32Widestrings;
|
||||||
{$endif HASWIDESTRING}
|
|
||||||
InitExceptions; { Initialize exceptions. OS independent }
|
InitExceptions; { Initialize exceptions. OS independent }
|
||||||
InitInternational; { Initialize internationalization settings }
|
InitInternational; { Initialize internationalization settings }
|
||||||
LoadVersionInfo;
|
LoadVersionInfo;
|
||||||
|
Loading…
Reference in New Issue
Block a user