mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-07 21:31:02 +02:00
* PChar -> PAnsiChar
This commit is contained in:
parent
8d173d7190
commit
b1a86854d6
@ -1,7 +1,13 @@
|
|||||||
{$mode objfpc} {$h+} {$typedaddress on} {$modeswitch advancedrecords} {$coperators on} {$modeswitch anonymousfunctions}
|
{$mode objfpc}
|
||||||
|
{$h+}
|
||||||
|
{$typedaddress on}
|
||||||
|
{$modeswitch advancedrecords}
|
||||||
|
{$coperators on}
|
||||||
|
{$modeswitch anonymousfunctions}
|
||||||
{$modeswitch duplicatelocals}
|
{$modeswitch duplicatelocals}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
|
{$ifdef unix}cwstring,{$endif}
|
||||||
SysUtils, Generics.Collections, Generics.Defaults;
|
SysUtils, Generics.Collections, Generics.Defaults;
|
||||||
|
|
||||||
var
|
var
|
||||||
@ -186,11 +192,11 @@ begin
|
|||||||
function(id: SizeUint): string
|
function(id: SizeUint): string
|
||||||
begin
|
begin
|
||||||
SetLength((@result)^, 5);
|
SetLength((@result)^, 5);
|
||||||
result[5] := char(ord('A') + id mod 26); id := id div 26;
|
result[5] := Char(ord('A') + id mod 26); id := id div 26;
|
||||||
result[4] := char(ord('A') + id mod 26); id := id div 26;
|
result[4] := Char(ord('A') + id mod 26); id := id div 26;
|
||||||
result[3] := char(ord('A') + id mod 26); id := id div 26;
|
result[3] := Char(ord('A') + id mod 26); id := id div 26;
|
||||||
result[2] := char(ord('A') + id mod 26); id := id div 26;
|
result[2] := Char(ord('A') + id mod 26); id := id div 26;
|
||||||
result[1] := char(ord('A') + id mod 26);
|
result[1] := Char(ord('A') + id mod 26);
|
||||||
end, 'strings', 0.15);
|
end, 'strings', 0.15);
|
||||||
|
|
||||||
specialize SortBenchmark<single>.Run(
|
specialize SortBenchmark<single>.Run(
|
||||||
|
Loading…
Reference in New Issue
Block a user