mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 15:59:35 +02:00
* String -> ansistring
This commit is contained in:
parent
3aefada11a
commit
b9a1a90d6e
@ -18,8 +18,8 @@ interface
|
|||||||
|
|
||||||
{$MODE objfpc}
|
{$MODE objfpc}
|
||||||
{$MODESWITCH OUT}
|
{$MODESWITCH OUT}
|
||||||
{ force ansistrings }
|
{$H+} // will result in unicode string in unicode RTL
|
||||||
{$H+}
|
|
||||||
{$modeswitch typehelpers}
|
{$modeswitch typehelpers}
|
||||||
{$modeswitch advancedrecords}
|
{$modeswitch advancedrecords}
|
||||||
|
|
||||||
@ -1527,11 +1527,8 @@ end;
|
|||||||
OS utility functions
|
OS utility functions
|
||||||
****************************************************************************}
|
****************************************************************************}
|
||||||
|
|
||||||
Function GetEnvironmentVariable(Const EnvVar : String) : String;
|
Function GetEnvironmentVariable(Const EnvVar : AnsiString) : AnsiString;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
{ no need to adjust the code page of EnvVar to DefaultSystemCodePage, as only
|
|
||||||
ASCII identifiers are supported }
|
|
||||||
Result:=BaseUnix.FPGetenv(PAnsiChar(pointer(EnvVar)));
|
Result:=BaseUnix.FPGetenv(PAnsiChar(pointer(EnvVar)));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -1541,7 +1538,7 @@ begin
|
|||||||
Result:=FPCCountEnvVar(EnvP);
|
Result:=FPCCountEnvVar(EnvP);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Function GetEnvironmentString(Index : Integer) : {$ifdef FPC_RTL_UNICODE}UnicodeString{$else}AnsiString{$endif};
|
Function GetEnvironmentString(Index : Integer) : RTLString;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
Result:=FPCGetEnvStrFromP(Envp,Index);
|
Result:=FPCGetEnvStrFromP(Envp,Index);
|
||||||
|
Loading…
Reference in New Issue
Block a user