mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 19:49:22 +02:00
* reverted partially r11598 because it breaks delphi compatibility and e.g. tw3721.pp
git-svn-id: trunk@13398 -
This commit is contained in:
parent
3f98f6a5d0
commit
87df99a53d
@ -35,6 +35,7 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
{ declaring this breaks delphi compatibility and e.g. tw3721.pp
|
||||
FUNCTION NewStr (Const S: ShortString): PShortString;
|
||||
VAR P: PShortString;
|
||||
BEGIN
|
||||
@ -47,6 +48,7 @@ BEGIN
|
||||
End;
|
||||
NewStr := P; { Return result }
|
||||
END;
|
||||
}
|
||||
|
||||
{ DisposeStr frees the memory occupied by S }
|
||||
|
||||
|
@ -67,7 +67,8 @@ Const
|
||||
Var TrueBoolStrs,
|
||||
FalseBoolStrs : Array of String;
|
||||
|
||||
function NewStr(Const S: ShortString): PShortString; overload;
|
||||
// declaring this breaks delphi compatibility and e.g. tw3721.pp
|
||||
// function NewStr(Const S: ShortString): PShortString; overload;
|
||||
function NewStr(const S: string): PString; overload;
|
||||
procedure DisposeStr(S: PString); overload;
|
||||
procedure DisposeStr(S: PShortString); overload;
|
||||
|
Loading…
Reference in New Issue
Block a user